Changes between Version 93 and Version 94 of AndroidPort
- Timestamp:
- Jan 10, 2012, 6:10:27 PM (12 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
AndroidPort
v93 v94 191 191 The Android platform provides only a very minimal C++ runtime support library (/system/lib/libstdc++) and corresponding headers for it in the NDK. To compile the game with the Standard C++ Library, we have to explicitly instruct `ndk-build` to compile against the STL runtime. 192 192 193 Create a new file called `Application.mk` under the `jni`directory in the project directory, e.g.:193 Create a new file called `Application.mk` under the `jni` directory in the project directory, e.g.: 194 194 195 195 {{{ … … 204 204 Then save the file and exit the text editor. 205 205 206 Download the following libraries to the working directory and then unpack them there: 207 208 * [http://www.boost.org/users/download/#live Boost] (latest version) 209 * [https://developer.mozilla.org/en/SpiderMonkey/1.8.5 SpiderMonkey] (1.8.5) 210 211 Move the source code directory of each library into a new directory called `jni/lib` under the project directory, e.g.:{{{ 212 $ cd ~/android 213 $ mkdir 0ad/jni/lib 214 $ mv boost/boost ~/android/0ad/jni/lib/boost 215 $ mv js-1.8.5/js/src ~/android/0ad/jni/lib/js 216 }}} 217 218 206 219 == Building the application == 207 220 The native library (i.e. the actual game) is built by running the `ndk-build` command in the project directory, e.g.: