README.android
changeset 4954 144d9df7e611
parent 4727 8087bb208acf
child 4964 6c645018741e
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