109 to SDL. Be very careful changing this, as the SDL library relies |
109 to SDL. Be very careful changing this, as the SDL library relies |
110 on this implementation. |
110 on this implementation. |
111 |
111 |
112 |
112 |
113 ================================================================================ |
113 ================================================================================ |
|
114 Build an app with static linking of libSDL |
|
115 ================================================================================ |
|
116 |
|
117 This build uses the Android NDK module system. |
|
118 |
|
119 Instructions: |
|
120 1. Copy the android-project directory wherever you want to keep your projects |
|
121 and rename it to the name of your project. |
|
122 2. Rename <project>/jni/src/Android_static.mk to <project>/jni/src/Android.mk |
|
123 (overwrite the existing one) |
|
124 3. Edit <project>/jni/src/Android.mk to include your source files |
|
125 4. create and export an environment variable named NDK_MODULE_PATH that points |
|
126 to the parent directory of this SDL directory. e.g.: |
|
127 |
|
128 export NDK_MODULE_PATH="$PWD"/.. |
|
129 |
|
130 5. Edit <project>/src/org/libsdl/app/SDLActivity.java and remove the call to |
|
131 System.loadLibrary("SDL2") line 42. |
|
132 6. Run 'ndk-build' (a script provided by the NDK). This compiles the C source |
|
133 |
|
134 |
|
135 ================================================================================ |
114 Customizing your application name |
136 Customizing your application name |
115 ================================================================================ |
137 ================================================================================ |
116 |
138 |
117 To customize your application name, edit AndroidManifest.xml and replace |
139 To customize your application name, edit AndroidManifest.xml and replace |
118 "org.libsdl.app" with an identifier for your product package. |
140 "org.libsdl.app" with an identifier for your product package. |