stk-code_catmod/android/Makefile

31 lines
786 B
Makefile
Raw Normal View History

2016-02-24 14:41:21 -05:00
NDK_PATH=android-ndk-r10e/
# target: all - Default target. Build and create the apk.
all: build apk
# target: build - Build the native code
2016-02-24 16:24:33 -05:00
build: obj/freetype.stamp
2016-02-24 14:41:21 -05:00
NDK_CCACHE=ccache ${NDK_PATH}/ndk-build -j3
# target: apk - Make a debug APK
apk:
ant debug
# target: install - Install the debug APK to the plugged device/emulator
install:
ant installd
# target: help - Display callable targets.
help:
egrep "^# target:" [Mm]akefile
run:
adb shell am start -n org.supertuxkart.stk/android.app.NativeActivity
2016-02-24 16:24:33 -05:00
obj/freetype.stamp:
mkdir -p obj/freetype
cd jni/freetype && \
./configure --host=arm-linux-androideabi --prefix=/freetype --without-zlib --with-png=no --with-harfbuzz=no && \
make -j4 && \
make install DESTDIR=`pwd`/../../obj/freetype
touch obj/freetype.stamp