[Libreoffice-commits] core.git: configure.ac

Christian Lohmaier lohmaier+LibreOffice at googlemail.com
Tue Oct 13 03:51:18 PDT 2015


 configure.ac |   10 ++++++++++
 1 file changed, 10 insertions(+)

New commits:
commit 2ca4748a2e04b37c18f6f572bcf323cd857fef34
Author: Christian Lohmaier <lohmaier+LibreOffice at googlemail.com>
Date:   Tue Oct 13 12:47:07 2015 +0200

    add warning with install instructions when android build-tools are not found
    
    Change-Id: I987262e4e9ae99c889285658fc9f840655d29191

diff --git a/configure.ac b/configure.ac
index 5b8b3a8..812450d 100644
--- a/configure.ac
+++ b/configure.ac
@@ -848,6 +848,16 @@ if echo "$host_os" | grep -q linux-android ; then
     if test ! -d "$ANDROID_SDK_HOME/platforms"; then
         AC_MSG_ERROR([the --with-android-sdk option does not point to an Android SDK])
     fi
+
+    BUILD_TOOLS_VERSION=`$SED -n -e 's/.*buildToolsVersion "\(.*\)"/\1/p' $SRC_ROOT/android/source/build.gradle`
+    if test ! -d "$ANDROID_SDK_HOME/build-tools/$BUILD_TOOLS_VERSION"; then
+        AC_MSG_WARN([android build-tools $BUILD_TOOLS_VERSION not found - install with
+                         $ANDROID_SDK_HOME/tools/android update sdk -u --all --filter build-tools-$BUILD_TOOLS_VERSION
+                    or adjust change $SRC_ROOT/android/source/build.gradle accordingly])
+        add_warning "android build-tools $BUILD_TOOLS_VERSION not found - install with"
+        add_warning "    $ANDROID_SDK_HOME/tools/android update sdk -u --all --filter build-tools-$BUILD_TOOLS_VERSION"
+        add_warning "or adjust $SRC_ROOT/android/source/build.gradle accordingly"
+    fi
 fi
 
 if test "$_os" = "AIX"; then


More information about the Libreoffice-commits mailing list