Changeset View
Changeset View
Standalone View
Standalone View
build/premake/extern_libs5.lua
Show First 20 Lines • Show All 528 Lines • ▼ Show 20 Lines | link_settings = function() | ||||
add_default_lib_paths("sdl2") | add_default_lib_paths("sdl2") | ||||
elseif not _OPTIONS["android"] then | elseif not _OPTIONS["android"] then | ||||
pkgconfig.add_links("sdl2", os.getenv("SDL2_CONFIG")) | pkgconfig.add_links("sdl2", os.getenv("SDL2_CONFIG")) | ||||
end | end | ||||
end, | end, | ||||
}, | }, | ||||
spidermonkey = { | spidermonkey = { | ||||
compile_settings = function() | compile_settings = function() | ||||
if _OPTIONS["with-system-mozjs45"] then | if _OPTIONS["with-system-mozjs52"] then | ||||
if not _OPTIONS["android"] then | if not _OPTIONS["android"] then | ||||
pkgconfig.add_includes("mozjs-45") | pkgconfig.add_includes("mozjs-52") | ||||
end | end | ||||
else | else | ||||
if os.istarget("windows") then | if os.istarget("windows") then | ||||
include_dir = "include-win32" | include_dir = "include-win32" | ||||
buildoptions { "/FI\"js/RequiredDefines.h\"" } | buildoptions { "/FI\"js/RequiredDefines.h\"" } | ||||
else | else | ||||
include_dir = "include-unix" | include_dir = "include-unix" | ||||
end | end | ||||
filter "Debug" | filter "Debug" | ||||
sysincludedirs { libraries_source_dir.."spidermonkey/"..include_dir.."-debug" } | sysincludedirs { libraries_source_dir.."spidermonkey/"..include_dir.."-debug" } | ||||
defines { "DEBUG" } | defines { "DEBUG" } | ||||
filter "Release" | filter "Release" | ||||
sysincludedirs { libraries_source_dir.."spidermonkey/"..include_dir.."-release" } | sysincludedirs { libraries_source_dir.."spidermonkey/"..include_dir.."-release" } | ||||
filter { } | filter { } | ||||
end | end | ||||
end, | end, | ||||
link_settings = function() | link_settings = function() | ||||
if _OPTIONS["with-system-mozjs45"] then | if _OPTIONS["with-system-mozjs52"] then | ||||
if _OPTIONS["android"] then | if _OPTIONS["android"] then | ||||
links { "mozjs-45" } | links { "mozjs-52" } | ||||
else | else | ||||
pkgconfig.add_links("mozjs-45") | pkgconfig.add_links("mozjs-52") | ||||
end | end | ||||
else | else | ||||
filter { "Debug", "action:vs2015" } | filter { "Debug", "action:vs2015" } | ||||
links { "mozjs45-ps-debug-vc140" } | links { "mozjs52-ps-debug-vc140" } | ||||
filter { "Release", "action:vs2015" } | filter { "Release", "action:vs2015" } | ||||
links { "mozjs45-ps-release-vc140" } | links { "mozjs52-ps-release-vc140" } | ||||
filter { "Debug", "action:not vs*" } | filter { "Debug", "action:not vs*" } | ||||
links { "mozjs45-ps-debug" } | links { "mozjs52-ps-debug" } | ||||
filter { "Release", "action:not vs*" } | filter { "Release", "action:not vs*" } | ||||
links { "mozjs45-ps-release" } | links { "mozjs52-ps-release" } | ||||
filter { } | filter { } | ||||
add_source_lib_paths("spidermonkey") | add_source_lib_paths("spidermonkey") | ||||
end | end | ||||
end, | end, | ||||
}, | }, | ||||
tinygettext = { | tinygettext = { | ||||
compile_settings = function() | compile_settings = function() | ||||
add_third_party_include_paths("tinygettext") | add_third_party_include_paths("tinygettext") | ||||
▲ Show 20 Lines • Show All 123 Lines • Show Last 20 Lines |
Wildfire Games · Phabricator