Add android makefile (it was ignored by the .gitignore…) and ignore freetype and ifaddrs (downloaded via the makefile)

This commit is contained in:
Lucas Baudin 2016-02-25 16:46:35 +01:00
parent 3a663f8e71
commit de576272e6
2 changed files with 6 additions and 1 deletions

2
.gitignore vendored
View File

@ -55,3 +55,5 @@ xx
android/android-ndk-r10e
android/jni/jpeglib
android/jni/freetype
android/jni/ifaddrs

View File

@ -3,7 +3,7 @@ NDK_PATH=android-ndk-r10e/
all: build apk
# target: build - Build the native code
build: obj/freetype.stamp
build: obj/freetype.stamp jni/ifaddrs/ifaddrs.h
NDK_CCACHE=ccache ${NDK_PATH}/ndk-build -j3
# target: apk - Make a debug APK
@ -28,3 +28,6 @@ obj/freetype.stamp:
make -j4 && \
make install DESTDIR=`pwd`/../../obj/freetype
touch obj/freetype.stamp
jni/ifaddrs/ifaddrs.h:
cd jni && git clone https://github.com/morristech/android-ifaddrs.git ifaddrs