forked from projectM-visualizer/projectm
-
Notifications
You must be signed in to change notification settings - Fork 0
/
configure-ndk
executable file
·25 lines (22 loc) · 944 Bytes
/
configure-ndk
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#!/bin/bash
if [ -z ${NDK+x} ]; then
export NDK=${HOME}/Android/Sdk/ndk-bundle;
fi
export HOST_TAG=linux-x86_64
export TOOLCHAIN=$NDK/toolchains/llvm/prebuilt/$HOST_TAG
export TARGET=arm-linux-androideabi
export AR=$TOOLCHAIN/bin/$TARGET-ar
export AS=$TOOLCHAIN/bin/$TARGET-as
export LD=$TOOLCHAIN/bin/$TARGET-ld
export RANLIB=$TOOLCHAIN/bin/$TARGET-ranlib
export STRIP=$TOOLCHAIN/bin/$TARGET-strip
export CC=$TOOLCHAIN/bin/armv7a-linux-androideabi19-clang
export CXX=$TOOLCHAIN/bin/armv7a-linux-androideabi19-clang++
export LIBS_NDK=$NDK/sources/third_party/vulkan/src/libs/
export CPPFLAGS="-march=armv7-a -I$LIBS_NDK -fPIC"
export GL_LIBS="-lGLESv3 -lEGL"
./configure --host arm-linux-androideabi \
--enable-gles --disable-static --disable-sdl --disable-qt \
--prefix=`realpath src/projectm-android/app/jniLibs` \
--libdir='${exec_prefix}/armeabi-v7a' \
--datarootdir=`realpath src/projectm-android/app/src/main/assets`