[*] Linux builds would've been screwed without this. Still untested
This commit is contained in:
parent
f4e1bfa241
commit
baa55a507f
@ -98,9 +98,7 @@ local function addDest(name, projectType, dest)
|
||||
end
|
||||
|
||||
local function postBuildCommands(name, type, config, platformName, arch)
|
||||
local isWin = platformName == "win32"
|
||||
|
||||
if (isWin) then
|
||||
if (platformName == "win32") then
|
||||
postbuildcommands(formatCpy(Aurora.Settings.sLibPrefix .. name, type, normalizeCpyPath(Aurora.Settings.sAbsSymbols), ".pdb", true, config, platformName, arch, name))
|
||||
|
||||
if (type == "SharedLib" or
|
||||
@ -110,6 +108,7 @@ local function postBuildCommands(name, type, config, platformName, arch)
|
||||
else
|
||||
if (type == "SharedLib" or
|
||||
type == "StaticLib") then
|
||||
local ext = (auFetchGlobal("Platforms")[platformName][type] or "")
|
||||
postbuildcommands(formatCpy(Aurora.Settings.sLibPrefix .. name, type, normalizeCpyPath(Aurora.Settings.sRelLinkLibs), ext, true, config, platformName, arch, name))
|
||||
end
|
||||
end
|
||||
|
@ -16,7 +16,8 @@ local platforms = {
|
||||
devChainCoreUtils = true,
|
||||
elfSupportsRPath = true,
|
||||
exts = {
|
||||
SharedLib = ".so"
|
||||
SharedLib = ".so",
|
||||
StaticLib = ".a"
|
||||
}
|
||||
},
|
||||
linux = {
|
||||
@ -28,7 +29,8 @@ local platforms = {
|
||||
devChainCoreUtils = true,
|
||||
elfSupportsRPath = true,
|
||||
exts = {
|
||||
SharedLib = ".so"
|
||||
SharedLib = ".so",
|
||||
StaticLib = ".a"
|
||||
}
|
||||
},
|
||||
mac = {
|
||||
@ -36,7 +38,8 @@ local platforms = {
|
||||
targetLocal = true,
|
||||
devChainCoreUtils = true,
|
||||
exts = {
|
||||
SharedLib = ".dynlib"
|
||||
SharedLib = ".dynlib",
|
||||
StaticLib = ".a"
|
||||
}
|
||||
},
|
||||
ios = {
|
||||
@ -47,7 +50,8 @@ local platforms = {
|
||||
defines = "_ANDROID_AURORA_PREPROCESSOR",
|
||||
requiresElfStrip = true,
|
||||
exts = {
|
||||
SharedLib = ".so"
|
||||
SharedLib = ".so",
|
||||
StaticLib = ".a"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -5,10 +5,6 @@ local bugHack = targetingCmake or targetingWindows
|
||||
|
||||
local kPathPrefix = "!"
|
||||
|
||||
local addDest = function(name, projectType, dest)
|
||||
buildHooks.addDest(name, projectType, dest)
|
||||
end
|
||||
|
||||
local function configureProjectForSolution(prj)
|
||||
filter(auFilterConfig(Aurora.Settings.sNameOfDebug))
|
||||
defines { "DEBUG" }
|
||||
@ -386,7 +382,7 @@ local function setupProject(prj)
|
||||
buildHooks.startProject(prj.name, prj.projectType)
|
||||
|
||||
auForEach(prj.dest, function(v)
|
||||
addDest(prj.name, prj.projectType, v)
|
||||
buildHooks.addDest(prj.name, prj.projectType, v)
|
||||
end)
|
||||
|
||||
print()
|
||||
|
@ -125,7 +125,3 @@ end
|
||||
function auProcessSolution()
|
||||
processSolution()
|
||||
end
|
||||
|
||||
function auAddVist(vist)
|
||||
addVisit(vist)
|
||||
end
|
Loading…
Reference in New Issue
Block a user