Changes between Version 81 and Version 82 of AndroidPort


Ignore:
Timestamp:
Jan 7, 2012, 11:59:05 PM (12 years ago)
Author:
Anders Feder
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • AndroidPort

    v81 v82  
    166166$ svn co http://svn.wildfiregames.com/public/ps/trunk/ ~/android/0ad/jni/src
    167167}}}
     168Open the file `Android.mk` in the `jni/src` directory under the project directory, e.g.:
     169
     170{{{
     171$ nano -w ~/android/0ad/jni/src/Android.mk
     172}}}
     173
     174
     175Under the comment reading "Add your application source files here..." add the `source/main.cpp` file:
     176
     177{{{
     178# Add your application source files here...
     179LOCAL_SRC_FILES := $(SDL_PATH)/src/main/android/SDL_android_main.cpp \
     180        source/main.cpp
     181}}}
     182== Installing replacement libraries ==
     183== Building the application ==
     184The native library (i.e. the actual game) is built by running the ndk-build command in the project directory, e.g.:
     185
     186{{{
     187$ cd ~/android/0ad/
     188$ ~/android/0ad/android-ndk-r7/ndk-build
     189}}}