1 # -----------------------------------------------------------------------------
2 # Rocks'n'Diamonds for Android
3 # -----------------------------------------------------------------------------
6 # arm-linux-androideabi-objdump -S obj/local/armeabi-v7a/libmain.so
8 PROGBASE = rocksndiamonds
10 ANDROID_SDK_PATH := ${HOME}/projects/Android/SDK/android-sdk
11 ANDROID_NDK_PATH := ${HOME}/projects/Android/SDK/android-ndk
13 SDK_TOOLS_PATH := ${ANDROID_SDK_PATH}/tools
14 SDK_PLATFORM_TOOLS_PATH := ${ANDROID_SDK_PATH}/platform-tools
15 NDK_PATH := ${ANDROID_NDK_PATH}
17 PATH := ${PATH}:${SDK_TOOLS_PATH}:${SDK_PLATFORM_TOOLS_PATH}:${NDK_PATH}
19 AUTO_GENERATED_DIRS = bin gen obj
25 ./build-scripts/create_manifest.sh
34 ANDROID_AAPT_IGNORE="__IGNORE_NOTHING__" ant debug
37 adb install -r bin/$(PROGBASE)-debug.apk
40 android update project --name $(PROGBASE) --path .
43 ./build-scripts/create_asset_tocs.sh assets
49 rm -rf $(AUTO_GENERATED_DIRS)
51 clean: clean-build clean-auto-generated
56 adb logcat -d | ndk-stack -sym obj/local/armeabi-v7a