Build: Fix build on Premake4
Former-commit-id: 90e0b92e48bbb285a95db0300a8eeaa4125f4d81 [formerly c9fe9513e9e4b6ce4fb53a2f2a2f61f779f756e8] Former-commit-id: ca9ea9c6931d4857af7f0aab8f43465eb462dd2e
This commit is contained in:
parent
d08ac3fed1
commit
70167ce106
|
|
@ -7,9 +7,9 @@ function NazaraBuild:Execute()
|
||||||
|
|
||||||
local platformData
|
local platformData
|
||||||
if (os.is64bit()) then
|
if (os.is64bit()) then
|
||||||
platformData = {"x64", "x86"}
|
platformData = {"x64", "x32"}
|
||||||
else
|
else
|
||||||
platformData = {"x86", "x64"}
|
platformData = {"x32", "x64"}
|
||||||
end
|
end
|
||||||
|
|
||||||
if (self.Actions[_ACTION] == nil) then
|
if (self.Actions[_ACTION] == nil) then
|
||||||
|
|
@ -30,13 +30,13 @@ function NazaraBuild:Execute()
|
||||||
location(_ACTION)
|
location(_ACTION)
|
||||||
kind("StaticLib")
|
kind("StaticLib")
|
||||||
|
|
||||||
configuration("x86")
|
configuration("x32")
|
||||||
libdirs("../extlibs/lib/common/x86")
|
libdirs("../extlibs/lib/common/x86")
|
||||||
|
|
||||||
configuration("x64")
|
configuration("x64")
|
||||||
libdirs("../extlibs/lib/common/x64")
|
libdirs("../extlibs/lib/common/x64")
|
||||||
|
|
||||||
configuration({"codeblocks or codelite or gmake", "x86"})
|
configuration({"codeblocks or codelite or gmake", "x32"})
|
||||||
libdirs("../extlibs/lib/" .. makeLibDir .. "/x86")
|
libdirs("../extlibs/lib/" .. makeLibDir .. "/x86")
|
||||||
targetdir("../extlibs/lib/" .. makeLibDir .. "/x86")
|
targetdir("../extlibs/lib/" .. makeLibDir .. "/x86")
|
||||||
|
|
||||||
|
|
@ -47,7 +47,7 @@ function NazaraBuild:Execute()
|
||||||
configuration("vs*")
|
configuration("vs*")
|
||||||
buildoptions("/MP")
|
buildoptions("/MP")
|
||||||
|
|
||||||
configuration({"vs*", "x86"})
|
configuration({"vs*", "x32"})
|
||||||
libdirs("../extlibs/lib/msvc/x86")
|
libdirs("../extlibs/lib/msvc/x86")
|
||||||
targetdir("../extlibs/lib/msvc/x86")
|
targetdir("../extlibs/lib/msvc/x86")
|
||||||
|
|
||||||
|
|
@ -55,7 +55,7 @@ function NazaraBuild:Execute()
|
||||||
libdirs("../extlibs/lib/msvc/x64")
|
libdirs("../extlibs/lib/msvc/x64")
|
||||||
targetdir("../extlibs/lib/msvc/x64")
|
targetdir("../extlibs/lib/msvc/x64")
|
||||||
|
|
||||||
configuration({"xcode3 or xcode4", "x86"})
|
configuration({"xcode3 or xcode4", "x32"})
|
||||||
libdirs("../extlibs/lib/xcode/x86")
|
libdirs("../extlibs/lib/xcode/x86")
|
||||||
targetdir("../extlibs/lib/xcode/x86")
|
targetdir("../extlibs/lib/xcode/x86")
|
||||||
|
|
||||||
|
|
@ -178,14 +178,14 @@ function NazaraBuild:Execute()
|
||||||
libdirs("../lib")
|
libdirs("../lib")
|
||||||
libdirs("../extlibs/lib/common")
|
libdirs("../extlibs/lib/common")
|
||||||
|
|
||||||
configuration("x86")
|
configuration("x32")
|
||||||
libdirs("../extlibs/lib/common/x86")
|
libdirs("../extlibs/lib/common/x86")
|
||||||
|
|
||||||
configuration("x64")
|
configuration("x64")
|
||||||
defines("NAZARA_PLATFORM_x64")
|
defines("NAZARA_PLATFORM_x64")
|
||||||
libdirs("../extlibs/lib/common/x64")
|
libdirs("../extlibs/lib/common/x64")
|
||||||
|
|
||||||
configuration({"codeblocks or codelite or gmake", "x86"})
|
configuration({"codeblocks or codelite or gmake", "x32"})
|
||||||
libdirs("../extlibs/lib/" .. makeLibDir .. "/x86")
|
libdirs("../extlibs/lib/" .. makeLibDir .. "/x86")
|
||||||
libdirs("../lib/" .. makeLibDir .. "/x86")
|
libdirs("../lib/" .. makeLibDir .. "/x86")
|
||||||
targetdir("../lib/" .. makeLibDir .. "/x86")
|
targetdir("../lib/" .. makeLibDir .. "/x86")
|
||||||
|
|
@ -198,7 +198,7 @@ function NazaraBuild:Execute()
|
||||||
-- Copy the module binaries to the example folder
|
-- Copy the module binaries to the example folder
|
||||||
self:MakeCopyAfterBuild(moduleTable)
|
self:MakeCopyAfterBuild(moduleTable)
|
||||||
|
|
||||||
configuration({"vs*", "x86"})
|
configuration({"vs*", "x32"})
|
||||||
libdirs("../extlibs/lib/msvc/x86")
|
libdirs("../extlibs/lib/msvc/x86")
|
||||||
libdirs("../lib/msvc/x86")
|
libdirs("../lib/msvc/x86")
|
||||||
targetdir("../lib/msvc/x86")
|
targetdir("../lib/msvc/x86")
|
||||||
|
|
@ -208,7 +208,7 @@ function NazaraBuild:Execute()
|
||||||
libdirs("../lib/msvc/x64")
|
libdirs("../lib/msvc/x64")
|
||||||
targetdir("../lib/msvc/x64")
|
targetdir("../lib/msvc/x64")
|
||||||
|
|
||||||
configuration({"xcode3 or xcode4", "x86"})
|
configuration({"xcode3 or xcode4", "x32"})
|
||||||
libdirs("../extlibs/lib/xcode/x86")
|
libdirs("../extlibs/lib/xcode/x86")
|
||||||
libdirs("../lib/xcode/x86")
|
libdirs("../lib/xcode/x86")
|
||||||
targetdir("../lib/xcode/x86")
|
targetdir("../lib/xcode/x86")
|
||||||
|
|
@ -283,14 +283,14 @@ function NazaraBuild:Execute()
|
||||||
libdirs("../lib")
|
libdirs("../lib")
|
||||||
libdirs("../extlibs/lib/common")
|
libdirs("../extlibs/lib/common")
|
||||||
|
|
||||||
configuration("x86")
|
configuration("x32")
|
||||||
libdirs("../extlibs/lib/common/x86")
|
libdirs("../extlibs/lib/common/x86")
|
||||||
|
|
||||||
configuration("x64")
|
configuration("x64")
|
||||||
defines("NAZARA_PLATFORM_x64")
|
defines("NAZARA_PLATFORM_x64")
|
||||||
libdirs("../extlibs/lib/common/x64")
|
libdirs("../extlibs/lib/common/x64")
|
||||||
|
|
||||||
configuration({"codeblocks or codelite or gmake", "x86"})
|
configuration({"codeblocks or codelite or gmake", "x32"})
|
||||||
libdirs("../extlibs/lib/" .. makeLibDir .. "/x86")
|
libdirs("../extlibs/lib/" .. makeLibDir .. "/x86")
|
||||||
libdirs("../lib/" .. makeLibDir .. "/x86")
|
libdirs("../lib/" .. makeLibDir .. "/x86")
|
||||||
if (toolTable.Kind == "library") then
|
if (toolTable.Kind == "library") then
|
||||||
|
|
@ -313,7 +313,7 @@ function NazaraBuild:Execute()
|
||||||
self:MakeCopyAfterBuild(toolTable)
|
self:MakeCopyAfterBuild(toolTable)
|
||||||
end
|
end
|
||||||
|
|
||||||
configuration({"vs*", "x86"})
|
configuration({"vs*", "x32"})
|
||||||
libdirs("../extlibs/lib/msvc/x86")
|
libdirs("../extlibs/lib/msvc/x86")
|
||||||
libdirs("../lib/msvc/x86")
|
libdirs("../lib/msvc/x86")
|
||||||
if (toolTable.Kind == "library") then
|
if (toolTable.Kind == "library") then
|
||||||
|
|
@ -331,7 +331,7 @@ function NazaraBuild:Execute()
|
||||||
targetdir("../plugins/" .. toolTable.Name .. "/lib/msvc/x64")
|
targetdir("../plugins/" .. toolTable.Name .. "/lib/msvc/x64")
|
||||||
end
|
end
|
||||||
|
|
||||||
configuration({"xcode3 or xcode4", "x86"})
|
configuration({"xcode3 or xcode4", "x32"})
|
||||||
libdirs("../extlibs/lib/xcode/x86")
|
libdirs("../extlibs/lib/xcode/x86")
|
||||||
libdirs("../lib/xcode/x86")
|
libdirs("../lib/xcode/x86")
|
||||||
if (toolTable.Kind == "library") then
|
if (toolTable.Kind == "library") then
|
||||||
|
|
@ -411,26 +411,26 @@ function NazaraBuild:Execute()
|
||||||
includedirs(exampleTable.Includes)
|
includedirs(exampleTable.Includes)
|
||||||
links(exampleTable.Libraries)
|
links(exampleTable.Libraries)
|
||||||
|
|
||||||
configuration("x86")
|
configuration("x32")
|
||||||
libdirs("../extlibs/lib/common/x86")
|
libdirs("../extlibs/lib/common/x86")
|
||||||
|
|
||||||
configuration("x64")
|
configuration("x64")
|
||||||
defines("NAZARA_PLATFORM_x64")
|
defines("NAZARA_PLATFORM_x64")
|
||||||
libdirs("../extlibs/lib/common/x64")
|
libdirs("../extlibs/lib/common/x64")
|
||||||
|
|
||||||
configuration({"codeblocks or codelite or gmake", "x86"})
|
configuration({"codeblocks or codelite or gmake", "x32"})
|
||||||
libdirs("../lib/" .. makeLibDir .. "/x86")
|
libdirs("../lib/" .. makeLibDir .. "/x86")
|
||||||
|
|
||||||
configuration({"codeblocks or codelite or gmake", "x64"})
|
configuration({"codeblocks or codelite or gmake", "x64"})
|
||||||
libdirs("../lib/" .. makeLibDir .. "/x64")
|
libdirs("../lib/" .. makeLibDir .. "/x64")
|
||||||
|
|
||||||
configuration({"vs*", "x86"})
|
configuration({"vs*", "x32"})
|
||||||
libdirs("../lib/msvc/x86")
|
libdirs("../lib/msvc/x86")
|
||||||
|
|
||||||
configuration({"vs*", "x64"})
|
configuration({"vs*", "x64"})
|
||||||
libdirs("../lib/msvc/x64")
|
libdirs("../lib/msvc/x64")
|
||||||
|
|
||||||
configuration({"xcode3 or xcode4", "x86"})
|
configuration({"xcode3 or xcode4", "x32"})
|
||||||
libdirs("../lib/xcode/x86")
|
libdirs("../lib/xcode/x86")
|
||||||
|
|
||||||
configuration({"xcode3 or xcode4", "x64"})
|
configuration({"xcode3 or xcode4", "x64"})
|
||||||
|
|
@ -906,8 +906,8 @@ function NazaraBuild:MakeCopyAfterBuild(infoTable)
|
||||||
|
|
||||||
for k,v in pairs(table.join(infoTable.Libraries, infoTable.DynLib)) do
|
for k,v in pairs(table.join(infoTable.Libraries, infoTable.DynLib)) do
|
||||||
local paths = {}
|
local paths = {}
|
||||||
table.insert(paths, {"x86", "../extlibs/lib/common/x86/" .. v .. ".dll"})
|
table.insert(paths, {"x32", "../extlibs/lib/common/x86/" .. v .. ".dll"})
|
||||||
table.insert(paths, {"x86", "../extlibs/lib/common/x86/lib" .. v .. ".dll"})
|
table.insert(paths, {"x32", "../extlibs/lib/common/x86/lib" .. v .. ".dll"})
|
||||||
table.insert(paths, {"x64", "../extlibs/lib/common/x64/" .. v .. ".dll"})
|
table.insert(paths, {"x64", "../extlibs/lib/common/x64/" .. v .. ".dll"})
|
||||||
table.insert(paths, {"x64", "../extlibs/lib/common/x64/lib" .. v .. ".dll"})
|
table.insert(paths, {"x64", "../extlibs/lib/common/x64/lib" .. v .. ".dll"})
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue