| 168 | Open 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 | |
| 175 | Under the comment reading "Add your application source files here..." add the `source/main.cpp` file: |
| 176 | |
| 177 | {{{ |
| 178 | # Add your application source files here... |
| 179 | LOCAL_SRC_FILES := $(SDL_PATH)/src/main/android/SDL_android_main.cpp \ |
| 180 | source/main.cpp |
| 181 | }}} |
| 182 | == Installing replacement libraries == |
| 183 | == Building the application == |
| 184 | The 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 | }}} |