comparison README.android @ 4954:144d9df7e611

Added the step to edit local properties
author Sam Lantinga <slouken@libsdl.org>
date Tue, 04 Jan 2011 12:39:10 -0800
parents 8087bb208acf
children 6c645018741e
comparison
equal deleted inserted replaced
4953:4f40b11e1045 4954:144d9df7e611
28 1. Edit android/config.cfg to point to the location of the NDK 28 1. Edit android/config.cfg to point to the location of the NDK
29 2. Run 'make -f Makefile.android'. If all goes well, libsdl.a should be created 29 2. Run 'make -f Makefile.android'. If all goes well, libsdl.a should be created
30 3. Place your application source files in android/project/jni 30 3. Place your application source files in android/project/jni
31 4. Edit the Android.mk to include your source files 31 4. Edit the Android.mk to include your source files
32 5. Run 'ndk-build' (a script provided by the NDK). This compiles the C source 32 5. Run 'ndk-build' (a script provided by the NDK). This compiles the C source
33 6. Run 'ant' in android/testproject. This compiles the .java and eventually 33 6. Edit project/local.properties to point to the SDK directory
34 6. Run 'ant debug' in android/project. This compiles the .java and eventually
34 creates a .apk with the C source embedded 35 creates a .apk with the C source embedded
35 7. 'ant install' will push the apk to the device or emulator (if connected) 36 7. 'ant install' will push the apk to the device or emulator (if connected)
36 37
37 38
38 39