Changes between Version 90 and Version 91 of AndroidPort


Ignore:
Timestamp:
Jan 10, 2012, 12:32:30 AM (12 years ago)
Author:
Anders Feder
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • AndroidPort

    v90 v91  
    178178LOCAL_C_INCLUDES := $(LOCAL_PATH)/$(SDL_PATH)/include \
    179179        /home/youruser/android/0ad/jni/src/source
    180 
    181180}}}
    182181Add the `source/main.cpp` file to the `LOCAL_SRC_FILES` declaration:
     
    190189
    191190== Installing replacement libraries ==
    192 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 enable the GNU STL runtime.
     191The 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
     193Create a new file called `Application.mk` under `jni` in the project directory, e.g.:
     194
     195{{{
     196$ nano -w ~/android/0ad/jni/Application.mk
     197}}}
     198Insert these two lines in the file, substituting the part after the `:=` on the first line with the full path of your project directory:{{{
     199APP_PROJECT_PATH := /home/youruser/android/0ad
     200APP_STL := stlport_static
     201}}}
     202Then save the file and exit the text editor.
    193203
    194204