Changes between Version 216 and Version 217 of AndroidPort
- Timestamp:
- Feb 8, 2012, 9:12:50 PM (12 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
AndroidPort
v216 v217 228 228 Spidermonkey 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.: 229 229 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: 230 Copy 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 237 Apply [https://gist.github.com/1754817 this patch] somehow. 238 239 Now regenerate the `configure` script in the Spidermonkey directory: 233 240 234 241 {{{ … … 236 243 $ autoconf2.13 237 244 }}} 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 \ 245 Then execute the following commands to compile the package for the target device: 246 247 {{{ 248 $ configure \ 245 249 --target=arm-android-eabi \ 250 --prefix=$SYSROOT/usr/local \ 246 251 --with-android-ndk=$NDK \ 247 252 --with-android-sdk=$SDK \ … … 250 255 --disable-shared \ 251 256 --enable-static 252 $ make -s257 $ make install 253 258 }}} 254 259 Set up the environment for cross-compiling using the standalone toolchain: