mirror of
https://github.com/subsurface/subsurface.git
synced 2025-01-19 06:15:26 +00:00
build-system/Android: create standalone toolchain in wrapper script
This way when we build the android build container, the correct toolchain is already in place. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
9025a9b2b1
commit
c0ecd3a597
1 changed files with 5 additions and 0 deletions
|
@ -87,6 +87,11 @@ if [ ! -d "$ANDROID_NDK" ] ; then
|
|||
unzip -q "$NDK_BINARIES"
|
||||
fi
|
||||
|
||||
if [ ! -e ndk-"$ARCH" ] ; then
|
||||
"$ANDROID_NDK/build/tools/make_standalone_toolchain.py" --arch=arm --install-dir=ndk-arm --api=$ANDROID_PLATFORM_LEVEL
|
||||
"$ANDROID_NDK/build/tools/make_standalone_toolchain.py" --arch=arm64 --install-dir=ndk-arm64 --api=$ANDROID_PLATFORM_LEVEL
|
||||
fi
|
||||
|
||||
if [ ! -d "$ANDROID_SDK"/build-tools/"${ANDROID_BUILDTOOLS_REVISION}" ] ||
|
||||
[ ! -d "$ANDROID_SDK"/platforms/"${ANDROID_PLATFORMS}" ] ||
|
||||
[ ! -d "$ANDROID_SDK"/platforms/"${ANDROID_PLATFORM}" ] ; then
|
||||
|
|
Loading…
Add table
Reference in a new issue