Ticket #4893: mozjs52.patch
File mozjs52.patch, 4.6 KB (added by , 6 years ago) |
---|
-
build/premake/extern_libs4.lua
Author: Ludovic Rousseau <rousseau@debian.org> Subject: build using libmozjs provided by Debian Last-Update: 2017-12-07
old new extern_lib_defs = { 591 591 }, 592 592 spidermonkey = { 593 593 compile_settings = function() 594 if _OPTIONS["with-system-mozjs 38"] then594 if _OPTIONS["with-system-mozjs52"] then 595 595 if not _OPTIONS["android"] then 596 pkgconfig_cflags("mozjs- 38")596 pkgconfig_cflags("mozjs-52") 597 597 end 598 598 else 599 599 if os.is("windows") then … … extern_lib_defs = { 611 611 end 612 612 end, 613 613 link_settings = function() 614 if _OPTIONS["with-system-mozjs 38"] then614 if _OPTIONS["with-system-mozjs52"] then 615 615 if _OPTIONS["android"] then 616 links { "mozjs- 38" }616 links { "mozjs-52" } 617 617 else 618 618 pkgconfig_libs("nspr") 619 pkgconfig_libs("mozjs- 38")619 pkgconfig_libs("mozjs-52") 620 620 end 621 621 else 622 622 if os.is("macosx") then … … extern_lib_defs = { 624 624 links { "nspr4", "plc4", "plds4" } 625 625 end 626 626 configuration "Debug" 627 links { "mozjs 38-ps-debug" }627 links { "mozjs52-ps-debug" } 628 628 configuration "Release" 629 links { "mozjs 38-ps-release" }629 links { "mozjs52-ps-release" } 630 630 configuration { } 631 631 add_source_lib_paths("spidermonkey") 632 632 end -
build/workspaces/update-workspaces.sh
old new premake_args="" 35 35 36 36 without_nvtt=false 37 37 with_system_nvtt=false 38 with_system_mozjs 38=false38 with_system_mozjs52=false 39 39 enable_atlas=true 40 40 41 41 for i in "$@" … … do 43 43 case $i in 44 44 --without-nvtt ) without_nvtt=true; premake_args="${premake_args} --without-nvtt" ;; 45 45 --with-system-nvtt ) with_system_nvtt=true; premake_args="${premake_args} --with-system-nvtt" ;; 46 --with-system-mozjs 38 ) with_system_mozjs38=true; premake_args="${premake_args} --with-system-mozjs38" ;;46 --with-system-mozjs52 ) with_system_mozjs52=true; premake_args="${premake_args} --with-system-mozjs52" ;; 47 47 --enable-atlas ) enable_atlas=true ;; 48 48 --disable-atlas ) enable_atlas=false ;; 49 49 -j* ) JOBS=$i ;; … … if [ "`uname -s`" != "Darwin" ]; then 78 78 # Build/update bundled external libraries 79 79 (cd ../../libraries/source/fcollada/src && ${MAKE} ${JOBS}) || die "FCollada build failed" 80 80 echo 81 if [ "$with_system_mozjs 38" = "false" ]; then81 if [ "$with_system_mozjs52" = "false" ]; then 82 82 (cd ../../libraries/source/spidermonkey && MAKE=${MAKE} JOBS=${JOBS} ./build.sh) || die "SpiderMonkey build failed" 83 83 fi 84 84 echo -
build/premake/premake4.lua
old new newoption { trigger = "icc", description 7 7 newoption { trigger = "jenkins-tests", description = "Configure CxxTest to use the XmlPrinter runner which produces Jenkins-compatible output" } 8 8 newoption { trigger = "minimal-flags", description = "Only set compiler/linker flags that are really needed. Has no effect on Windows builds" } 9 9 newoption { trigger = "outpath", description = "Location for generated project files" } 10 newoption { trigger = "with-system-mozjs 38", description = "Search standard paths for libmozjs38, instead of using bundled copy" }10 newoption { trigger = "with-system-mozjs52", description = "Search standard paths for libmozjs52, instead of using bundled copy" } 11 11 newoption { trigger = "with-system-nvtt", description = "Search standard paths for nvidia-texture-tools library, instead of using bundled copy" } 12 12 newoption { trigger = "without-audio", description = "Disable use of OpenAL/Ogg/Vorbis APIs" } 13 13 newoption { trigger = "without-lobby", description = "Disable the use of gloox and the multiplayer lobby" } -
source/scriptinterface/ScriptTypes.h
old new 71 71 # pragma GCC diagnostic pop 72 72 #endif 73 73 74 #if MOZJS_MAJOR_VERSION != 3874 #if MOZJS_MAJOR_VERSION != 52 75 75 #error Your compiler is trying to use an incorrect major version of the \ 76 76 SpiderMonkey library. The only version that works is the one in the \ 77 77 libraries/spidermonkey/ directory, and it will not work with a typical \