- Timestamp:
- 07/17/11 00:31:10 (13 years ago)
- Location:
- ps/trunk/libraries/spidermonkey
- Files:
-
- 2 added
- 2 copied
-
. (added)
-
README.txt (copied) (copied from ps/trunk/libraries/spidermonkey-tip/README.txt ) (2 diffs)
-
build.sh (copied) (copied from ps/trunk/libraries/spidermonkey-tip/build.sh ) (5 diffs)
-
js185-1.0.0.tar.gz (added)
Legend:
- Unmodified
- Added
- Removed
-
ps/trunk/libraries/spidermonkey/README.txt
r9833 r9850 5 5 then run start-msvc8.bat and run ./build.sh here. 6 6 7 This version of SpiderMonkey comes from http://hg.mozilla.org/tracemonkey/ 8 revision a4ed852d402a 9 plus the patch https://bug610228.bugzilla.mozilla.org/attachment.cgi?id=489277 10 plus the patch https://bug613089.bugzilla.mozilla.org/attachment.cgi?id=491381 11 plus the patch https://bug617596.bugzilla.mozilla.org/attachment.cgi?id=496149 12 plus the patch https://bug609024.bugzilla.mozilla.org/attachment.cgi?id=491526 13 plus a trivial patch to build with python2.7 7 This version of SpiderMonkey comes from 8 http://ftp.mozilla.org/pub/mozilla.org/js/js185-1.0.0.tar.gz 9 (see also https://developer.mozilla.org/en/SpiderMonkey/1.8.5) 14 10 15 11 The game must be compiled with precisely this version, and must not use a … … 17 13 guarantee API stability and may have behavioural changes that cause subtle 18 14 bugs or network out-of-sync errors. 19 20 To save space, the src/ directory only contains files from Mozilla's js/src/21 plus the following subdirectories:22 assembler23 build24 config25 editline26 jsapi-tests27 lirasm28 methodjit29 nanojit30 perf31 ref-config32 shell33 tracejit34 v8-dtoa35 vprof36 yarr37 38 Also, the output of autoconf-2.13 is included in src/ -
ps/trunk/libraries/spidermonkey/build.sh
r9833 r9850 33 33 fi 34 34 35 #CONF_OPTS="${CONF_OPTS} --enable-threadsafe --with-system-nspr" 36 #CONF_OPTS="${CONF_OPTS} --enable-trace-jscalls" 37 35 38 # We need to be able to override CHOST in case it is 32bit userland on 64bit kernel 36 39 CONF_OPTS="${CONF_OPTS} \ … … 41 44 echo "SpiderMonkey build options: ${CONF_OPTS}" 42 45 43 cd src 46 # Extract the tarball 47 tar xzf js185-1.0.0.tar.gz 44 48 45 # autoconf-2.13 # this generates ./configure, which we've added to SVN instead 49 cd js-1.8.5/js/src 46 50 47 51 # We want separate debug/release versions of the library, so we have to change … … 49 53 # (We use perl instead of sed so that it works with MozillaBuild on Windows, 50 54 # which has an ancient sed.) 51 perl -i.bak -pe 's/^(LIBRARY_NAME\s+= mozjs ).*/$1-ps-debug/' Makefile.in55 perl -i.bak -pe 's/^(LIBRARY_NAME\s+= mozjs185)(-ps-debug|-ps-release)?/$1-ps-debug/' Makefile.in 52 56 mkdir -p build-debug 53 57 cd build-debug … … 56 60 cd .. 57 61 58 perl -i.bak -pe 's/^(LIBRARY_NAME\s+= mozjs ).*/$1-ps-release/' Makefile.in62 perl -i.bak -pe 's/^(LIBRARY_NAME\s+= mozjs185)(-ps-debug|-ps-release)?/$1-ps-release/' Makefile.in 59 63 mkdir -p build-release 60 64 cd build-release … … 64 68 65 69 # Remove the library suffixes to avoid spurious SVN diffs 66 perl -i.bak -pe 's/^(LIBRARY_NAME\s+= mozjs ).*/$1/' Makefile.in70 perl -i.bak -pe 's/^(LIBRARY_NAME\s+= mozjs185)(-ps-debug|-ps-release)?/$1/' Makefile.in 67 71 68 cd .. 72 cd ../../.. 69 73 70 74 if [ "${OS}" = "Windows_NT" ] 71 75 then 72 76 INCLUDE_DIR=include-win32 73 DLL_ EXTN=dll74 LIB_EXTN=lib77 DLL_SRC_SUFFIX=-1.0.dll 78 DLL_DST_SUFFIX=-1.0.dll 75 79 LIB_PREFIX= 80 LIB_SRC_SUFFIX=-1.0.lib 81 LIB_DST_SUFFIX=.lib 76 82 elif [ "`uname -s`" = "Darwin" ] 77 83 then 78 84 INCLUDE_DIR=include-unix 79 DLL_ EXTN=dylib80 LIB_EXTN=dylib85 DLL_SRC_SUFFIX=.dylib 86 DLL_DST_SUFFIX=.1.0.dylib 81 87 LIB_PREFIX=lib 88 LIB_SRC_SUFFIX=.dylib 89 LIB_DST_SUFFIX=.dylib 82 90 else 83 91 INCLUDE_DIR=include-unix 84 DLL_ EXTN=so85 LIB_EXTN=so92 DLL_SRC_SUFFIX=.so 93 DLL_DST_SUFFIX=.so.1.0 86 94 LIB_PREFIX=lib 95 LIB_SRC_SUFFIX=.so 96 LIB_DST_SUFFIX=.so 87 97 fi 88 98 89 99 # Copy files into the necessary locations for building and running the game 90 mkdir -p ${INCLUDE_DIR}/debug/js 91 mkdir -p ${INCLUDE_DIR}/release/js 100 101 # js-config.h is the same for both debug and release builds, so we only need to copy one 102 mkdir -p ${INCLUDE_DIR}/js 103 cp -L js-1.8.5/js/src/build-release/dist/include/* ${INCLUDE_DIR}/js/ 104 92 105 mkdir -p lib/ 93 cp -L src/build-debug/dist/include/* ${INCLUDE_DIR}/debug/js/ 94 cp -L src/build-release/dist/include/* ${INCLUDE_DIR}/release/js/ 95 cp -L src/build-debug/dist/lib/${LIB_PREFIX}mozjs-ps-debug.${LIB_EXTN} lib/ 96 cp -L src/build-release/dist/lib/${LIB_PREFIX}mozjs-ps-release.${LIB_EXTN} lib/ 97 cp -L src/build-debug/dist/bin/${LIB_PREFIX}mozjs-ps-debug.${DLL_EXTN} ../../binaries/system/ 98 cp -L src/build-release/dist/bin/${LIB_PREFIX}mozjs-ps-release.${DLL_EXTN} ../../binaries/system/ 106 cp -L js-1.8.5/js/src/build-debug/dist/lib/${LIB_PREFIX}mozjs185-ps-debug${LIB_SRC_SUFFIX} lib/${LIB_PREFIX}mozjs185-ps-debug${LIB_DST_SUFFIX} 107 cp -L js-1.8.5/js/src/build-release/dist/lib/${LIB_PREFIX}mozjs185-ps-release${LIB_SRC_SUFFIX} lib/${LIB_PREFIX}mozjs185-ps-release${LIB_DST_SUFFIX} 108 cp -L js-1.8.5/js/src/build-debug/dist/bin/${LIB_PREFIX}mozjs185-ps-debug${DLL_SRC_SUFFIX} ../../binaries/system/${LIB_PREFIX}mozjs185-ps-debug${DLL_DST_SUFFIX} 109 cp -L js-1.8.5/js/src/build-release/dist/bin/${LIB_PREFIX}mozjs185-ps-release${DLL_SRC_SUFFIX} ../../binaries/system/${LIB_PREFIX}mozjs185-ps-release${DLL_DST_SUFFIX} 99 110 100 111 # Flag that it's already been built successfully so we can skip it next time
Note:
See TracChangeset
for help on using the changeset viewer.
