fixed correcting playfield buffer offsets for EM engine
[rocksndiamonds.git] / build-projects / android / Makefile
1 # -----------------------------------------------------------------------------
2 # Rocks'n'Diamonds for Android
3 # -----------------------------------------------------------------------------
4
5 # debugging C/ASM:
6 # arm-linux-androideabi-objdump -S obj/local/armeabi-v7a/libmain.so
7
8 PROGBASE = rocksndiamonds
9
10 ANDROID_SDK_PATH := ${HOME}/projects/Android/SDK/android-sdk
11 ANDROID_NDK_PATH := ${HOME}/projects/Android/SDK/android-ndk
12
13 SDK_TOOLS_PATH := ${ANDROID_SDK_PATH}/tools
14 SDK_PLATFORM_TOOLS_PATH := ${ANDROID_SDK_PATH}/platform-tools
15 NDK_PATH := ${ANDROID_NDK_PATH}
16
17 PATH := ${PATH}:${SDK_TOOLS_PATH}:${SDK_PLATFORM_TOOLS_PATH}:${NDK_PATH}
18
19 AUTO_GENERATED_DIRS = bin gen obj
20
21
22 all: package
23
24 manifest:
25         ./build-scripts/create_manifest.sh
26
27 compile: manifest
28         ndk-build NDK_DEBUG=1
29
30 verbose: manifest
31         ndk-build V=1
32
33 package: compile
34         ANDROID_AAPT_IGNORE="__IGNORE_NOTHING__" ant debug
35
36 install: package
37         adb install -r bin/$(PROGBASE)-debug.apk
38
39 ant-init:
40         android update project --name $(PROGBASE) --path .
41
42 assets-toc:
43         ./build-scripts/create_asset_tocs.sh assets
44
45 clean-build:
46         ndk-build clean
47
48 clean-auto-generated:
49         rm -rf $(AUTO_GENERATED_DIRS)
50
51 clean: clean-build clean-auto-generated
52
53 dist-clean: clean
54
55 coredump:
56         adb logcat -d | ndk-stack -sym obj/local/armeabi-v7a