[+] Readded a check for staticlibs before running post build actions
This commit is contained in:
parent
675c40d5c1
commit
a7fbe70511
@ -33,6 +33,10 @@ local function archiveShipPdb(pdbPath)
|
|||||||
-- TODO (reece):
|
-- TODO (reece):
|
||||||
end
|
end
|
||||||
|
|
||||||
|
local function isNoLinkType(projectType)
|
||||||
|
return projectType == "StaticLib" or projectType == "Blank" or projectType == "Utility"
|
||||||
|
end
|
||||||
|
|
||||||
local function addUserDestCopy(name, type, config, platformName, arch, dir)
|
local function addUserDestCopy(name, type, config, platformName, arch, dir)
|
||||||
local isWin = platformName == "win32"
|
local isWin = platformName == "win32"
|
||||||
local debugSymbolPath = nil
|
local debugSymbolPath = nil
|
||||||
@ -67,6 +71,10 @@ local function addDest(name, projectType, dest)
|
|||||||
local lookup = {}
|
local lookup = {}
|
||||||
local append = ""
|
local append = ""
|
||||||
|
|
||||||
|
if (isNoLinkType(projectType)) then
|
||||||
|
return
|
||||||
|
end
|
||||||
|
|
||||||
if (dest:starts(kPathPrefix)) then
|
if (dest:starts(kPathPrefix)) then
|
||||||
append = dest:sub(#kPathPrefix + 1)
|
append = dest:sub(#kPathPrefix + 1)
|
||||||
local fu = auFilterConfig(Aurora.Settings.sNameOfDebug)
|
local fu = auFilterConfig(Aurora.Settings.sNameOfDebug)
|
||||||
@ -132,6 +140,10 @@ local function startProject(name, projectType)
|
|||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
|
||||||
|
if (isNoLinkType(projectType)) then
|
||||||
|
return
|
||||||
|
end
|
||||||
|
|
||||||
auFilterForConfigPlatforms(function(config, platform, arch)
|
auFilterForConfigPlatforms(function(config, platform, arch)
|
||||||
postBuildCommands(name, projectType, config, platform, arch)
|
postBuildCommands(name, projectType, config, platform, arch)
|
||||||
end)
|
end)
|
||||||
|
@ -270,6 +270,7 @@ local function setupProject(prj)
|
|||||||
|
|
||||||
project(prj.name)
|
project(prj.name)
|
||||||
language("C++") -- C and MASM drivers are still available to files requiring different compilers
|
language("C++") -- C and MASM drivers are still available to files requiring different compilers
|
||||||
|
justmycode("Off") -- HACK: default off
|
||||||
|
|
||||||
targetname(prj.name) -- TODO (reece): you know what to do
|
targetname(prj.name) -- TODO (reece): you know what to do
|
||||||
kind(prj.projectType)
|
kind(prj.projectType)
|
||||||
|
Loading…
Reference in New Issue
Block a user