Commit bc4920fd authored by Aleix Pol Gonzalez's avatar Aleix Pol Gonzalez 🐧

android: Make it possible to just build arm32 or arm64

parent 73f85202
......@@ -11,10 +11,9 @@ shift
ARGS=
export ANDROID_ARCH=arm64
export ANDROID_ARCH_ABI=arm64-v8a
export BUILD=build-$ANDROID_ARCH
$DIR/build-cmake-native $name $url \
function buildarch
{
BUILD=build-$ANDROID_ARCH $DIR/build-cmake-native $name $url \
-DCMAKE_INSTALL_PREFIX=${APP_INSTALL_PREFIX-"/opt/kdeandroid-$ANDROID_ARCH"} \
-DCMAKE_PREFIX_PATH="$QT_PATH;/opt/kdeandroid-$ANDROID_ARCH;$APP_INSTALL_PREFIX;$EXTRA_PREFIXES" \
-DCMAKE_BUILD_TYPE=debug \
......@@ -23,16 +22,16 @@ $DIR/build-cmake-native $name $url \
-DCMAKE_ANDROID_STL_TYPE=c++_shared \
-DKF5_HOST_TOOLING=/opt/nativetooling/lib/x86_64-linux-gnu/cmake/ \
$@
}
export ANDROID_ARCH=arm
export ANDROID_ARCH_ABI=armeabi-v7a
export BUILD=build-$ANDROID_ARCH
$DIR/build-cmake-native $name $url \
-DCMAKE_INSTALL_PREFIX=${APP_INSTALL_PREFIX-"/opt/kdeandroid-$ANDROID_ARCH"} \
-DCMAKE_PREFIX_PATH="$QT_PATH;/opt/kdeandroid-$ANDROID_ARCH;$APP_INSTALL_PREFIX;$EXTRA_PREFIXES" \
-DCMAKE_BUILD_TYPE=debug \
-DCMAKE_TOOLCHAIN_FILE=/opt/nativetooling/share/ECM/toolchain/Android.cmake \
-DCMAKE_ANDROID_API=${ANDROID_NDK_PLATFORM:8} \
-DCMAKE_ANDROID_STL_TYPE=c++_shared \
-DKF5_HOST_TOOLING=/opt/nativetooling/lib/x86_64-linux-gnu/cmake/ \
$@
if [[ ! $ONLY_ARM32 ]]; then
export ANDROID_ARCH=arm64
export ANDROID_ARCH_ABI=arm64-v8a
buildarch $@
fi
if [[ ! $ONLY_ARM64 ]]; then
export ANDROID_ARCH=arm
export ANDROID_ARCH_ABI=armeabi-v7a
buildarch $@
fi
......@@ -28,5 +28,11 @@ function create_apk
fi
popd
}
create_apk arm
create_apk arm64
if [[ ! $ONLY_ARM64 ]]; then
create_apk arm
fi
if [[ ! $ONLY_ARM32 ]]; then
create_apk arm64
fi
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment