Commit b80fc1cb authored by Geoffrey Métais's avatar Geoffrey Métais

Update build script to new gradle build variants

parent 74e57277
...@@ -159,21 +159,37 @@ fi ...@@ -159,21 +159,37 @@ fi
################## ##################
# Compile the UI # # Compile the UI #
################## ##################
PLATFORM="Vanilla"
BUILDTYPE="Debug"
if [ "$RELEASE" = 1 ]; then if [ "$RELEASE" = 1 ]; then
if [ "$ANDROID_TV" = 1 ]; then BUILDTYPE="Release"
TARGET="assembleTvRelease" fi
else if [ "$ANDROID_TV" = 1 ]; then
TARGET="assembleVanillaRelease" PLATFORM="Tv"
fi
else
if [ "$ANDROID_TV" = 1 ]; then
TARGET="assembleTvDebug"
else
TARGET="assembleVanillaDebug"
fi
fi fi
if [ "$ANDROID_ABI" = "armeabi-v5" ]; then
GRADLE_ABI="ARMv5"
elif [ "$ANDROID_ABI" = "armeabi" ]; then
GRADLE_ABI="ARMv6fpu"
elif [ "$ANDROID_ABI" = "armeabi-nofpu" ]; then
GRADLE_ABI="ARMv6nofpu"
elif [ "$ANDROID_ABI" = "armeabi-v7a" ]; then
GRADLE_ABI="ARMv7"
elif [ "$ANDROID_ABI" = "arm64-v8a" ]; then
GRADLE_ABI="ARMv8"
elif [ "$ANDROID_ABI" = "x86" ]; then
GRADLE_ABI="x86"
elif [ "$ANDROID_ABI" = "x86_64" ]; then
GRADLE_ABI="x86_64"
elif [ "$ANDROID_ABI" = "mips" ]; then
GRADLE_ABI="MIPS"
elif [ "$ANDROID_ABI" = "mips64" ]; then
GRADLE_ABI="MIPS64"
fi
TARGET="assemble${PLATFORM}${GRADLE_ABI}${BUILDTYPE}"
PASSWORD_KEYSTORE="$PASSWORD_KEYSTORE" ./gradlew $TARGET PASSWORD_KEYSTORE="$PASSWORD_KEYSTORE" ./gradlew $TARGET
####### #######
......
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