This Trac instance is not used for development anymore!

We migrated our development workflow to git and Gitea.
To test the future redirection, replace trac by ariadne in the page URL.

Changeset 9850 for ps


Ignore:
Timestamp:
07/17/11 00:31:10 (13 years ago)
Author:
philip
Message:

Import SpiderMonkey 1.8.5

Location:
ps/trunk/libraries/spidermonkey
Files:
2 added
2 copied

Legend:

Unmodified
Added
Removed
  • ps/trunk/libraries/spidermonkey/README.txt

    r9833 r9850  
    55then run start-msvc8.bat and run ./build.sh here.
    66
    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
     7This version of SpiderMonkey comes from
     8http://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)
    1410
    1511The game must be compiled with precisely this version, and must not use a
     
    1713guarantee API stability and may have behavioural changes that cause subtle
    1814bugs 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     assembler
    23     build
    24     config
    25     editline
    26     jsapi-tests
    27     lirasm
    28     methodjit
    29     nanojit
    30     perf
    31     ref-config
    32     shell
    33     tracejit
    34     v8-dtoa
    35     vprof
    36     yarr
    37 
    38 Also, the output of autoconf-2.13 is included in src/
  • ps/trunk/libraries/spidermonkey/build.sh

    r9833 r9850  
    3333fi
    3434
     35#CONF_OPTS="${CONF_OPTS} --enable-threadsafe --with-system-nspr"
     36#CONF_OPTS="${CONF_OPTS} --enable-trace-jscalls"
     37
    3538# We need to be able to override CHOST in case it is 32bit userland on 64bit kernel
    3639CONF_OPTS="${CONF_OPTS} \
     
    4144echo "SpiderMonkey build options: ${CONF_OPTS}"
    4245
    43 cd src
     46# Extract the tarball
     47tar xzf js185-1.0.0.tar.gz
    4448
    45 # autoconf-2.13   # this generates ./configure, which we've added to SVN instead
     49cd js-1.8.5/js/src
    4650
    4751# We want separate debug/release versions of the library, so we have to change
     
    4953# (We use perl instead of sed so that it works with MozillaBuild on Windows,
    5054# which has an ancient sed.)
    51 perl -i.bak -pe 's/^(LIBRARY_NAME\s+= mozjs).*/$1-ps-debug/' Makefile.in
     55perl -i.bak -pe 's/^(LIBRARY_NAME\s+= mozjs185)(-ps-debug|-ps-release)?/$1-ps-debug/' Makefile.in
    5256mkdir -p build-debug
    5357cd build-debug
     
    5660cd ..
    5761
    58 perl -i.bak -pe 's/^(LIBRARY_NAME\s+= mozjs).*/$1-ps-release/' Makefile.in
     62perl -i.bak -pe 's/^(LIBRARY_NAME\s+= mozjs185)(-ps-debug|-ps-release)?/$1-ps-release/' Makefile.in
    5963mkdir -p build-release
    6064cd build-release
     
    6468
    6569# Remove the library suffixes to avoid spurious SVN diffs
    66 perl -i.bak -pe 's/^(LIBRARY_NAME\s+= mozjs).*/$1/' Makefile.in
     70perl -i.bak -pe 's/^(LIBRARY_NAME\s+= mozjs185)(-ps-debug|-ps-release)?/$1/' Makefile.in
    6771
    68 cd ..
     72cd ../../..
    6973
    7074if [ "${OS}" = "Windows_NT" ]
    7175then
    7276  INCLUDE_DIR=include-win32
    73   DLL_EXTN=dll
    74   LIB_EXTN=lib
     77  DLL_SRC_SUFFIX=-1.0.dll
     78  DLL_DST_SUFFIX=-1.0.dll
    7579  LIB_PREFIX=
     80  LIB_SRC_SUFFIX=-1.0.lib
     81  LIB_DST_SUFFIX=.lib
    7682elif [ "`uname -s`" = "Darwin" ]
    7783then
    7884  INCLUDE_DIR=include-unix
    79   DLL_EXTN=dylib
    80   LIB_EXTN=dylib
     85  DLL_SRC_SUFFIX=.dylib
     86  DLL_DST_SUFFIX=.1.0.dylib
    8187  LIB_PREFIX=lib
     88  LIB_SRC_SUFFIX=.dylib
     89  LIB_DST_SUFFIX=.dylib
    8290else
    8391  INCLUDE_DIR=include-unix
    84   DLL_EXTN=so
    85   LIB_EXTN=so
     92  DLL_SRC_SUFFIX=.so
     93  DLL_DST_SUFFIX=.so.1.0
    8694  LIB_PREFIX=lib
     95  LIB_SRC_SUFFIX=.so
     96  LIB_DST_SUFFIX=.so
    8797fi
    8898
    8999# 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
     102mkdir -p ${INCLUDE_DIR}/js
     103cp -L js-1.8.5/js/src/build-release/dist/include/* ${INCLUDE_DIR}/js/
     104
    92105mkdir -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/
     106cp -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}
     107cp -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}
     108cp -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}
     109cp -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}
    99110
    100111# 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.