forked from 0ad/0ad
Added all external libraries
This was SVN commit r1424.
This commit is contained in:
parent
e459e93ab4
commit
b50ddcc9bc
@ -84,10 +84,10 @@ package.includepaths = {
|
|||||||
"../../maths",
|
"../../maths",
|
||||||
"../../renderer",
|
"../../renderer",
|
||||||
"../../terrain",
|
"../../terrain",
|
||||||
"../.." }
|
"../.."
|
||||||
|
}
|
||||||
|
|
||||||
package.libpaths = {
|
package.libpaths = {}
|
||||||
}
|
|
||||||
|
|
||||||
package.buildflags = { "no-rtti" }
|
package.buildflags = { "no-rtti" }
|
||||||
|
|
||||||
@ -102,11 +102,30 @@ package.config["Debug"].buildflags = { "with-symbols" }
|
|||||||
|
|
||||||
-- Platform Specifics
|
-- Platform Specifics
|
||||||
if (OS == "windows") then
|
if (OS == "windows") then
|
||||||
|
|
||||||
|
-- Directories under 'libraries', each containing 'lib' and 'include':
|
||||||
|
external_libraries = {
|
||||||
|
"misc",
|
||||||
|
"libpng",
|
||||||
|
"zlib",
|
||||||
|
"openal",
|
||||||
|
"spidermonkey",
|
||||||
|
"xerces",
|
||||||
|
"vorbis"
|
||||||
|
}
|
||||||
|
|
||||||
|
-- Add '../../../libraries/<libraryname>/lib' and '/include' to the includepaths and libpaths
|
||||||
|
foreach(external_libraries, function (i,v)
|
||||||
|
tinsert(package.includepaths, "../../../libraries/" .. v .. "/include")
|
||||||
|
tinsert(package.libpaths, "../../../libraries/" .. v .. "/lib")
|
||||||
|
end)
|
||||||
|
|
||||||
-- Libraries
|
-- Libraries
|
||||||
package.links = { "opengl32" }
|
package.links = { "opengl32" }
|
||||||
-- package.defines = { "XERCES_STATIC_LIB" }
|
-- package.defines = { "XERCES_STATIC_LIB" }
|
||||||
tinsert(package.files, sourcesfromdirs("../../lib/sysdep/win"))
|
tinsert(package.files, sourcesfromdirs("../../lib/sysdep/win"))
|
||||||
tinsert(package.files, {"../../lib/sysdep/win/assert_dlg.rc"})
|
tinsert(package.files, {"../../lib/sysdep/win/assert_dlg.rc"})
|
||||||
|
|
||||||
package.linkoptions = { "/ENTRY:entry",
|
package.linkoptions = { "/ENTRY:entry",
|
||||||
"/DELAYLOAD:opengl32.dll",
|
"/DELAYLOAD:opengl32.dll",
|
||||||
"/DELAYLOAD:advapi32.dll",
|
"/DELAYLOAD:advapi32.dll",
|
||||||
@ -120,13 +139,14 @@ if (OS == "windows") then
|
|||||||
"/DELAYLOAD:openal32.dll",
|
"/DELAYLOAD:openal32.dll",
|
||||||
"/DELAY:UNLOAD" -- allow manual unload of delay-loaded DLLs
|
"/DELAY:UNLOAD" -- allow manual unload of delay-loaded DLLs
|
||||||
}
|
}
|
||||||
|
|
||||||
package.config["Debug"].linkoptions = {
|
package.config["Debug"].linkoptions = {
|
||||||
"/DELAYLOAD:js32d.dll",
|
"/DELAYLOAD:js32d.dll",
|
||||||
"/DELAYLOAD:zlib1d.dll",
|
"/DELAYLOAD:zlib1d.dll",
|
||||||
"/DELAYLOAD:libpng13d.dll",
|
"/DELAYLOAD:libpng13d.dll",
|
||||||
}
|
}
|
||||||
|
|
||||||
-- Testing uses Debug DLL's
|
-- 'Testing' uses 'Debug' DLL's
|
||||||
package.config["Testing"].linkoptions = package.config["Debug"].linkoptions
|
package.config["Testing"].linkoptions = package.config["Debug"].linkoptions
|
||||||
|
|
||||||
package.config["Release"].linkoptions = {
|
package.config["Release"].linkoptions = {
|
||||||
|
Loading…
Reference in New Issue
Block a user