Fix freetype build system
This commit is contained in:
@@ -1,4 +1,6 @@
|
||||
NDK_PATH=android-ndk-r10e/
|
||||
NDK_STANDALONE=`pwd`/${NDK_PATH}
|
||||
export PATH :=$(shell pwd)/obj/bin:${PATH}
|
||||
# target: all - Default target. Build and create the apk.
|
||||
all: build apk
|
||||
|
||||
@@ -22,12 +24,18 @@ run:
|
||||
adb shell am start -n org.supertuxkart.stk/android.app.NativeActivity
|
||||
|
||||
obj/freetype.stamp:
|
||||
mkdir -p obj/deps && cd obj/deps && wget http://mirror6.layerjet.com/nongnu//freetype/freetype-2.6.tar.gz && tar -xzf freetype-2.6.tar.gz
|
||||
mkdir -p obj/freetype
|
||||
cd jni/freetype && \
|
||||
./configure --host=arm-linux-androideabi --prefix=/freetype --without-zlib --with-png=no --with-harfbuzz=no && \
|
||||
${NDK_PATH}/build/tools/make-standalone-toolchain.sh \
|
||||
--platform=android-21 --install-dir=`pwd`/obj/ --arch=arm
|
||||
cd obj/deps/freetype-2.6 && \
|
||||
./configure --host=arm-linux-androideabi --prefix=/freetype --without-zlib --with-png=no --with-harfbuzz=no && \
|
||||
make -j4 && \
|
||||
make install DESTDIR=`pwd`/../../obj/freetype
|
||||
make install DESTDIR=`pwd`/../../freetype && \
|
||||
echo ${PATH}
|
||||
touch obj/freetype.stamp
|
||||
|
||||
jni/ifaddrs/ifaddrs.h:
|
||||
cd jni && git clone https://github.com/morristech/android-ifaddrs.git ifaddrs
|
||||
|
||||
#wget http://mirror6.layerjet.com/nongnu//freetype/freetype-2.6.tar.gz
|
||||
|
||||
Reference in New Issue
Block a user