F***, don't mix tabs with spaces
This commit is contained in:
parent
e4ec9dbf52
commit
a3f4cbd9fb
1 changed files with 49 additions and 50 deletions
|
@ -1,10 +1,11 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
SCRIPT_LOC="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
SCRIPT_LOC="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
||||||
# configure.sh
|
|
||||||
"$SCRIPT_LOC"/../../core/externals/configure.sh
|
|
||||||
SRCLOC="$SCRIPT_LOC"/../../core/externals/qtbase-android
|
|
||||||
NAME=$(basename $(dirname "${BASH_SOURCE[0]}") )
|
NAME=$(basename $(dirname "${BASH_SOURCE[0]}") )
|
||||||
|
|
||||||
|
"$SCRIPT_LOC/../../core/externals/configure.sh"
|
||||||
|
SRCLOC="$SCRIPT_LOC/../../core/externals/qtbase-android"
|
||||||
|
|
||||||
if [ ! -d "$ANDROID_SDK" ]; then
|
if [ ! -d "$ANDROID_SDK" ]; then
|
||||||
echo "ANDROID_SDK is not set"
|
echo "ANDROID_SDK is not set"
|
||||||
exit
|
exit
|
||||||
|
@ -18,8 +19,8 @@ export ANDROID_NDK_ROOT=$ANDROID_NDK
|
||||||
export ANDROID_NDK_TOOLCHAIN_VERSION=4.7
|
export ANDROID_NDK_TOOLCHAIN_VERSION=4.7
|
||||||
|
|
||||||
if [ -z "$OSMAND_X86_ONLY" ] && [ -z "$OSMAND_ARM_ONLY" ] && [ -z "$OSMAND_ARMv5_ONLY" ] && [ -z "$OSMAND_ARMv7a_ONLY" ] && [ -z "$OSMAND_MIPS_ONLY" ]; then
|
if [ -z "$OSMAND_X86_ONLY" ] && [ -z "$OSMAND_ARM_ONLY" ] && [ -z "$OSMAND_ARMv5_ONLY" ] && [ -z "$OSMAND_ARMv7a_ONLY" ] && [ -z "$OSMAND_MIPS_ONLY" ]; then
|
||||||
BUILD_ALL=1
|
BUILD_ALL=1
|
||||||
echo "BUILD_ALL set to true"
|
echo "BUILD_ALL set to true"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
QTBASE_CONFIGURATION=\
|
QTBASE_CONFIGURATION=\
|
||||||
|
@ -30,62 +31,60 @@ QTBASE_CONFIGURATION=\
|
||||||
"-c++11 -shared -release "\
|
"-c++11 -shared -release "\
|
||||||
"-v"
|
"-v"
|
||||||
|
|
||||||
|
|
||||||
if [ -n "$BUILD_ALL" ] || [ -n "$OSMAND_ARM_ONLY" ] || [ -n "$OSMAND_ARMv5_ONLY" ]; then
|
if [ -n "$BUILD_ALL" ] || [ -n "$OSMAND_ARM_ONLY" ] || [ -n "$OSMAND_ARMv5_ONLY" ]; then
|
||||||
if [ ! -d "$SRCLOC/upstream.patched.armeabi" ]; then
|
if [ ! -d "$SRCLOC/upstream.patched.armeabi" ]; then
|
||||||
cp -rf "$SRCLOC/upstream.patched" "$SRCLOC/upstream.patched.armeabi"
|
cp -rf "$SRCLOC/upstream.patched" "$SRCLOC/upstream.patched.armeabi"
|
||||||
export ANDROID_TARGET_ARCH=armeabi
|
export ANDROID_TARGET_ARCH=armeabi
|
||||||
export ANDROID_NDK_PLATFORM=android-8
|
export ANDROID_NDK_PLATFORM=android-8
|
||||||
(cd "$SRCLOC/upstream.patched.armeabi" && \
|
(cd "$SRCLOC/upstream.patched.armeabi" && \
|
||||||
./configure $QTBASE_CONFIGURATION \
|
./configure $QTBASE_CONFIGURATION \
|
||||||
-no-neon)
|
-no-neon)
|
||||||
fi
|
fi
|
||||||
(cd "$SRCLOC/upstream.patched.armeabi" && make -j`nproc`)
|
(cd "$SRCLOC/upstream.patched.armeabi" && make -j`nproc`)
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ -n "$BUILD_ALL" ] || [ -n "$OSMAND_ARM_ONLY" ] || [ -n "$OSMAND_ARMv7a_ONLY" ]; then
|
if [ -n "$BUILD_ALL" ] || [ -n "$OSMAND_ARM_ONLY" ] || [ -n "$OSMAND_ARMv7a_ONLY" ]; then
|
||||||
if [ ! -d "$SRCLOC/upstream.patched.armeabi-v7a" ]; then
|
if [ ! -d "$SRCLOC/upstream.patched.armeabi-v7a" ]; then
|
||||||
cp -rf "$SRCLOC/upstream.patched" "$SRCLOC/upstream.patched.armeabi-v7a"
|
cp -rf "$SRCLOC/upstream.patched" "$SRCLOC/upstream.patched.armeabi-v7a"
|
||||||
export ANDROID_TARGET_ARCH=armeabi-v7a
|
export ANDROID_TARGET_ARCH=armeabi-v7a
|
||||||
export ANDROID_NDK_PLATFORM=android-8
|
export ANDROID_NDK_PLATFORM=android-8
|
||||||
(cd "$SRCLOC/upstream.patched.armeabi-v7a" && \
|
(cd "$SRCLOC/upstream.patched.armeabi-v7a" && \
|
||||||
./configure $QTBASE_CONFIGURATION \
|
./configure $QTBASE_CONFIGURATION \
|
||||||
-no-neon)
|
-no-neon)
|
||||||
fi
|
fi
|
||||||
(cd "$SRCLOC/upstream.patched.armeabi-v7a" && make -j`nproc`)
|
(cd "$SRCLOC/upstream.patched.armeabi-v7a" && make -j`nproc`)
|
||||||
|
|
||||||
if [ ! -d "$SRCLOC/upstream.patched.armeabi-v7a-neon" ]; then
|
if [ ! -d "$SRCLOC/upstream.patched.armeabi-v7a-neon" ]; then
|
||||||
cp -rf "$SRCLOC/upstream.patched" "$SRCLOC/upstream.patched.armeabi-v7a-neon"
|
cp -rf "$SRCLOC/upstream.patched" "$SRCLOC/upstream.patched.armeabi-v7a-neon"
|
||||||
export ANDROID_TARGET_ARCH=armeabi-v7a
|
export ANDROID_TARGET_ARCH=armeabi-v7a
|
||||||
export ANDROID_NDK_PLATFORM=android-8
|
export ANDROID_NDK_PLATFORM=android-8
|
||||||
(cd "$SRCLOC/upstream.patched.armeabi-v7a-neon" && \
|
(cd "$SRCLOC/upstream.patched.armeabi-v7a-neon" && \
|
||||||
./configure $QTBASE_CONFIGURATION \
|
./configure $QTBASE_CONFIGURATION \
|
||||||
-qtlibinfix _neon)
|
-qtlibinfix _neon)
|
||||||
fi
|
fi
|
||||||
(cd "$SRCLOC/upstream.patched.armeabi-v7a-neon" && make -j`nproc`)
|
(cd "$SRCLOC/upstream.patched.armeabi-v7a-neon" && make -j`nproc`)
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ -n "$BUILD_ALL" ] || [ -n "$OSMAND_X86_ONLY" ]; then
|
if [ -n "$BUILD_ALL" ] || [ -n "$OSMAND_X86_ONLY" ]; then
|
||||||
if [ ! -d "$SRCLOC/upstream.patched.x86" ]; then
|
if [ ! -d "$SRCLOC/upstream.patched.x86" ]; then
|
||||||
cp -rf "$SRCLOC/upstream.patched" "$SRCLOC/upstream.patched.x86"
|
cp -rf "$SRCLOC/upstream.patched" "$SRCLOC/upstream.patched.x86"
|
||||||
export ANDROID_TARGET_ARCH=x86
|
export ANDROID_TARGET_ARCH=x86
|
||||||
export ANDROID_NDK_PLATFORM=android-9
|
export ANDROID_NDK_PLATFORM=android-9
|
||||||
(cd "$SRCLOC/upstream.patched.x86" && \
|
(cd "$SRCLOC/upstream.patched.x86" && \
|
||||||
./configure $QTBASE_CONFIGURATION)
|
./configure $QTBASE_CONFIGURATION)
|
||||||
fi
|
fi
|
||||||
(cd "$SRCLOC/upstream.patched.x86" && make -j`nproc`)
|
(cd "$SRCLOC/upstream.patched.x86" && make -j`nproc`)
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ -n "$BUILD_ALL" ] || [ -n "$OSMAND_MIPS_ONLY" ]; then
|
if [ -n "$BUILD_ALL" ] || [ -n "$OSMAND_MIPS_ONLY" ]; then
|
||||||
if [ ! -d "$SRCLOC/upstream.patched.mips" ]; then
|
if [ ! -d "$SRCLOC/upstream.patched.mips" ]; then
|
||||||
cp -rf "$SRCLOC/upstream.patched" "$SRCLOC/upstream.patched.mips"
|
cp -rf "$SRCLOC/upstream.patched" "$SRCLOC/upstream.patched.mips"
|
||||||
export ANDROID_TARGET_ARCH=mips
|
export ANDROID_TARGET_ARCH=mips
|
||||||
export ANDROID_NDK_PLATFORM=android-9
|
export ANDROID_NDK_PLATFORM=android-9
|
||||||
(cd "$SRCLOC/upstream.patched.mips" && \
|
(cd "$SRCLOC/upstream.patched.mips" && \
|
||||||
./configure $QTBASE_CONFIGURATION)
|
./configure $QTBASE_CONFIGURATION)
|
||||||
fi
|
fi
|
||||||
(cd "$SRCLOC/upstream.patched.mips" && make -j`nproc`)
|
(cd "$SRCLOC/upstream.patched.mips" && make -j`nproc`)
|
||||||
fi
|
fi
|
||||||
|
|
||||||
cd $SCRIPT_LOC
|
(cd "$SCRIPT_LOC" && "$ANDROID_NDK/ndk-build" -j`nproc`)
|
||||||
$ANDROID_NDK/ndk-build -j`nproc`
|
|
Loading…
Reference in a new issue