-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathenv.sh
executable file
·34 lines (29 loc) · 1.01 KB
/
env.sh
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
26
27
28
29
30
31
if [ ! -d "$ANDROID_SDK" ]; then
# try default path
if [ -d "$HOME/Android/Sdk" ]; then
export ANDROID_SDK=$HOME/Android/Sdk
fi
fi
if [ ! -d "$ANDROID_NDK" ]; then
# try to find in default location inside SDK
if [ -d $ANDROID_SDK ]; then
NDK_DIR=$(find $ANDROID_SDK -maxdepth 2 -name ndk-build | sed 's/\/ndk-build//')
if [ -d "$NDK_DIR" ]; then
export ANDROID_NDK=$NDK_DIR
fi
fi
fi
#export HOST=arm-linux-androideab
#export HOST_TAG=linux-x86_64
#export TOOLCHAIN=$NDK/toolchains/llvm/prebuilt/$HOST_TAG
#export AR=$TOOLCHAIN/bin/aarch64-linux-android-ar
#export AS=$TOOLCHAIN/bin/aarch64-linux-android-as
#export CC=$TOOLCHAIN/bin/aarch64-linux-android28-clang
#export CXX=$TOOLCHAIN/bin/aarch64-linux-android28-clang++
#export LD=$TOOLCHAIN/bin/aarch64-linux-android-ld
#export RANLIB=$TOOLCHAIN/bin/aarch64-linux-android-ranlib
#export STRIP=$TOOLCHAIN/bin/aarch64-linux-android-strip
#export SYSROOT=$TOOLCHAIN/sysroot
#export PATH=$TOOLCHAIN/bin:$PATH
#export CFLAGS="--sysroot=$SYSROOT"
#export CXXFLAGS="–sysroot=$SYSROOT"