Changes between Version 96 and Version 97 of AndroidPort


Ignore:
Timestamp:
Jan 10, 2012, 6:59:59 PM (12 years ago)
Author:
Anders Feder
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • AndroidPort

    v96 v97  
    217217$ mv js-1.8.5/js/src ~/android/0ad/jni/lib/js
    218218}}}
     219Also copy the SDL source code into the new directory:
     220
     221{{{
     222$ cp ~/android/0ad/jni/SDL/src ~/android/0ad/jni/lib/SDL
     223}}}
     224Open the file `Android.mk` in the `jni/src` directory under the project directory in a text editor, e.g.:{{{
     225$ nano -w ~/android/0ad/jni/src/Android.mk
     226}}}
     227Add the full path of the `jni/lib` directory to the `LOCAL_C_INCLUDES` declaration, e.g.:
     228
     229{{{
     230LOCAL_C_INCLUDES := $(LOCAL_PATH)/$(SDL_PATH)/include \
     231        /home/youruser/android/0ad/jni/src/source \
     232        /home/youruser/android/0ad/jni/lib
     233
     234}}}
     235Then save the file and exit the text editor.
     236
     237
     238
    219239== Building the application ==
    220240The native library (i.e. the actual game) is built by running the `ndk-build` command in the project directory, e.g.: