[Android] Update build script to new gradle build variants
Geoffrey Métais
git at videolan.org
Tue Feb 10 11:09:37 CET 2015
vlc-ports/android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Mon Feb 9 17:22:59 2015 +0100| [b80fc1cb17fe011d881eae5aabb0e8981f53b60c] | committer: Geoffrey Métais
Update build script to new gradle build variants
> http://git.videolan.org/gitweb.cgi/vlc-ports/android.git/?a=commit;h=b80fc1cb17fe011d881eae5aabb0e8981f53b60c
---
compile.sh | 40 ++++++++++++++++++++++++++++------------
1 file changed, 28 insertions(+), 12 deletions(-)
diff --git a/compile.sh b/compile.sh
index ca6a802..619c59d 100755
--- a/compile.sh
+++ b/compile.sh
@@ -159,21 +159,37 @@ fi
##################
# Compile the UI #
##################
-
+PLATFORM="Vanilla"
+BUILDTYPE="Debug"
if [ "$RELEASE" = 1 ]; then
- if [ "$ANDROID_TV" = 1 ]; then
- TARGET="assembleTvRelease"
- else
- TARGET="assembleVanillaRelease"
- fi
-else
- if [ "$ANDROID_TV" = 1 ]; then
- TARGET="assembleTvDebug"
- else
- TARGET="assembleVanillaDebug"
- fi
+ BUILDTYPE="Release"
+fi
+if [ "$ANDROID_TV" = 1 ]; then
+ PLATFORM="Tv"
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
#######
More information about the Android
mailing list