Changes between Version 210 and Version 211 of AndroidPort


Ignore:
Timestamp:
Feb 7, 2012, 8:07:28 AM (12 years ago)
Author:
Anders Feder
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • AndroidPort

    v210 v211  
    213213$ cp -r build/* ~/android/toolchain/sysroot/usr/
    214214}}}
     215Get [http://ftp.mozilla.org/pub/mozilla.org/mobile/source/android-ndk-r4c-0moz3.tar.bz2 android-ndk-r4c-0moz3].
     216
     217Get js-1.8.5.
     218
     219Apply [http://wiki.apache.org/couchdb/AndroidMozillaPatch this patch] somehow.
     220
     221Add "#define FORCE_LITTLE_ENDIAN" at the top of jscpucfg.cpp.
     222
     223Now regenerate configure in the js dir:
     224
     225{{{
     226cd js-1.8.5/js/src
     227autoconf2.13
     228}}}
     229Then create a js directory, configure js, and build it:
     230
     231{{{
     232cd $SYSROOT/usr/
     233mkdir js
     234cd js
     235$TODO/js-1.8.5/js/src/configure \
     236  --target=arm-android-eabi \
     237  --with-android-ndk=$NDK \
     238  --with-android-sdk=$SDK \
     239  --with-endian=little \
     240  --with-arm-kuser \
     241  --disable-shared \
     242  --enable-static
     243make -s
     244}}}
     245
     246
    215247Set up the environment for cross-compiling using the standalone toolchain:
    216248
     
    361393$ make install
    362394}}}
    363 Get [http://ftp.mozilla.org/pub/mozilla.org/mobile/source/android-ndk-r4c-0moz3.tar.bz2 android-ndk-r4c-0moz3].
    364 
    365 Get js-1.8.5.
    366 
    367 Apply [http://wiki.apache.org/couchdb/AndroidMozillaPatch this patch] somehow.
    368 
    369 Add "#define FORCE_LITTLE_ENDIAN" at the top of jscpucfg.cpp.
    370 
    371 Now regenerate configure in the js dir:
    372 
    373 {{{
    374 cd js-1.8.5/js/src
    375 autoconf2.13
    376 }}}
    377 Then create a js directory, configure js, and build it:
    378 
    379 {{{
    380 cd $SYSROOT/usr/
    381 mkdir js
    382 cd js
    383 $TODO/js-1.8.5/js/src/configure \
    384   --target=arm-android-eabi \
    385   --with-android-ndk=$NDK \
    386   --with-android-sdk=$SDK \
    387   --with-endian=little \
    388   --with-arm-kuser \
    389   --disable-shared \
    390   --enable-static
    391 make -s
    392 }}}
    393395=== Building the game ===
    394396The native library (i.e. the actual game) is built using the standard Premake build system as follows.