SpiderMonkey 38 upgrade: 05/35

Update premake scripts.

This was SVN commit r18659.
This commit is contained in:
Nicolas Auvray 2016-09-02 16:18:57 +00:00
parent 7e6a960e83
commit ca80797dcc
4 changed files with 13 additions and 12 deletions

View File

@ -591,9 +591,9 @@ extern_lib_defs = {
},
spidermonkey = {
compile_settings = function()
if _OPTIONS["with-system-mozjs31"] then
if _OPTIONS["with-system-mozjs38"] then
if not _OPTIONS["android"] then
pkgconfig_cflags("mozjs-31")
pkgconfig_cflags("mozjs-38")
end
else
if os.is("windows") then
@ -611,12 +611,12 @@ extern_lib_defs = {
end
end,
link_settings = function()
if _OPTIONS["with-system-mozjs31"] then
if _OPTIONS["with-system-mozjs38"] then
if _OPTIONS["android"] then
links { "mozjs-31" }
links { "mozjs-38" }
else
pkgconfig_libs("nspr")
pkgconfig_libs("mozjs-31")
pkgconfig_libs("mozjs-38")
end
else
if os.is("macosx") then
@ -624,9 +624,9 @@ extern_lib_defs = {
links { "nspr4", "plc4", "plds4" }
end
configuration "Debug"
links { "mozjs31-ps-debug" }
links { "mozjs38-ps-debug" }
configuration "Release"
links { "mozjs31-ps-release" }
links { "mozjs38-ps-release" }
configuration { }
add_source_lib_paths("spidermonkey")
end

View File

@ -7,7 +7,7 @@ newoption { trigger = "icc", description = "Use Intel C++ Compiler (Linux only;
newoption { trigger = "jenkins-tests", description = "Configure CxxTest to use the XmlPrinter runner which produces Jenkins-compatible output" }
newoption { trigger = "minimal-flags", description = "Only set compiler/linker flags that are really needed. Has no effect on Windows builds" }
newoption { trigger = "outpath", description = "Location for generated project files" }
newoption { trigger = "with-system-mozjs31", description = "Search standard paths for libmozjs31, instead of using bundled copy" }
newoption { trigger = "with-system-mozjs38", description = "Search standard paths for libmozjs38, instead of using bundled copy" }
newoption { trigger = "with-system-nvtt", description = "Search standard paths for nvidia-texture-tools library, instead of using bundled copy" }
newoption { trigger = "without-audio", description = "Disable use of OpenAL/Ogg/Vorbis APIs" }
newoption { trigger = "without-lobby", description = "Disable the use of gloox and the multiplayer lobby" }

View File

@ -24,9 +24,10 @@ if [ "`uname -s`" != "Darwin" ]; then
(cd ../../libraries/source/fcollada/src && rm -rf ./output)
(cd ../../libraries/source/spidermonkey && rm -f .already-built)
(cd ../../libraries/source/spidermonkey && rm -rf ./mozjs31)
(cd ../../libraries/source/spidermonkey && rm -rf ./mozjs-38.0.0)
# Still delete the directory of the previous SpiderMonkey version to
# avoid wasting disk space if people clean workspaces after updating.
(cd ../../libraries/source/spidermonkey && rm -rf ./mozjs31)
(cd ../../libraries/source/spidermonkey && rm -rf ./mozjs24)
(cd ../../libraries/source/nvtt/src && rm -rf ./build)
fi

View File

@ -40,7 +40,7 @@ premake_args=""
without_nvtt=false
with_system_nvtt=false
with_system_mozjs31=false
with_system_mozjs38=false
enable_atlas=true
for i in "$@"
@ -48,7 +48,7 @@ do
case $i in
--without-nvtt ) without_nvtt=true; premake_args="${premake_args} --without-nvtt" ;;
--with-system-nvtt ) with_system_nvtt=true; premake_args="${premake_args} --with-system-nvtt" ;;
--with-system-mozjs31 ) with_system_mozjs31=true; premake_args="${premake_args} --with-system-mozjs31" ;;
--with-system-mozjs38 ) with_system_mozjs38=true; premake_args="${premake_args} --with-system-mozjs38" ;;
--enable-atlas ) enable_atlas=true ;;
--disable-atlas ) enable_atlas=false ;;
-j* ) JOBS=$i ;;
@ -83,7 +83,7 @@ if [ "`uname -s`" != "Darwin" ]; then
# Build/update bundled external libraries
(cd ../../libraries/source/fcollada/src && ${MAKE} ${JOBS}) || die "FCollada build failed"
echo
if [ "$with_system_mozjs31" = "false" ]; then
if [ "$with_system_mozjs38" = "false" ]; then
(cd ../../libraries/source/spidermonkey && MAKE=${MAKE} JOBS=${JOBS} ./build.sh) || die "SpiderMonkey build failed"
fi
echo