README-android.txt
changeset 7804 1f85fb33694b
parent 7793 6463a850229d
child 7907 24b4e98c6010
     1.1 --- a/README-android.txt	Thu Oct 10 21:50:25 2013 -0700
     1.2 +++ b/README-android.txt	Thu Oct 10 21:51:39 2013 -0700
     1.3 @@ -111,6 +111,28 @@
     1.4  
     1.5  
     1.6  ================================================================================
     1.7 + Build an app with static linking of libSDL
     1.8 +================================================================================
     1.9 +
    1.10 +This build uses the Android NDK module system.
    1.11 +
    1.12 +Instructions:
    1.13 +1. Copy the android-project directory wherever you want to keep your projects
    1.14 +   and rename it to the name of your project.
    1.15 +2. Rename <project>/jni/src/Android_static.mk to <project>/jni/src/Android.mk
    1.16 +   (overwrite the existing one)
    1.17 +3. Edit <project>/jni/src/Android.mk to include your source files
    1.18 +4. create and export an environment variable named NDK_MODULE_PATH that points
    1.19 +   to the parent directory of this SDL directory. e.g.:
    1.20 +
    1.21 +   export NDK_MODULE_PATH="$PWD"/..
    1.22 +
    1.23 +5. Edit <project>/src/org/libsdl/app/SDLActivity.java and remove the call to
    1.24 +   System.loadLibrary("SDL2") line 42.
    1.25 +6. Run 'ndk-build' (a script provided by the NDK). This compiles the C source
    1.26 +
    1.27 +
    1.28 +================================================================================
    1.29   Customizing your application name
    1.30  ================================================================================
    1.31