Changes between Version 216 and Version 217 of AndroidPort


Ignore:
Timestamp:
Feb 8, 2012, 9:12:50 PM (12 years ago)
Author:
Anders Feder
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • AndroidPort

    v216 v217  
    228228Spidermonkey is designed to build against an older version of the NDK than that of our main compiler toolchain. Download [http://ftp.mozilla.org/pub/mozilla.org/mobile/source/android-ndk-r4c-0moz3.tar.bz2 Mozilla's own toolchain] to the working directory and then unpack it there, e.g.:
    229229
    230 Apply [https://gist.github.com/1754817 this patch] somehow to libraries/spidermonkey/js-1.8.5.
    231 
    232 Now regenerate configure in the js dir:
     230Copy the Spidermonkey source directory from the game sources to the working directory, e.g.:
     231
     232{{{
     233$ cp $GAME/libraries/spidermonkey/js-1.8.5 ~/android/
     234}}}
     235
     236
     237Apply [https://gist.github.com/1754817 this patch] somehow.
     238
     239Now regenerate the `configure` script in the Spidermonkey directory:
    233240
    234241{{{
     
    236243$ autoconf2.13
    237244}}}
    238 Then create a js directory, configure js, and build it:
    239 
    240 {{{
    241 $ cd $SYSROOT/usr/
    242 $ mkdir js
    243 $ cd js
    244 $ $TODO/js-1.8.5/js/src/configure \
     245Then execute the following commands to compile the package for the target device:
     246
     247{{{
     248$ configure \
    245249  --target=arm-android-eabi \
     250  --prefix=$SYSROOT/usr/local \
    246251  --with-android-ndk=$NDK \
    247252  --with-android-sdk=$SDK \
     
    250255  --disable-shared \
    251256  --enable-static
    252 $ make -s
     257$ make install
    253258}}}
    254259Set up the environment for cross-compiling using the standalone toolchain: