diff options
author | Christian Lohmaier <lohmaier+LibreOffice@googlemail.com> | 2015-10-13 12:47:07 +0200 |
---|---|---|
committer | Tomaž Vajngerl <tomaz.vajngerl@collabora.com> | 2015-10-19 14:30:17 +0200 |
commit | 3140e1b17d9f8dc50d8eb1c8789462f2a1b51a48 (patch) | |
tree | 6f089c277f407e0b54989ba4260b287e83902afc /configure.ac | |
parent | Hide open remote button in standard toolbar (diff) | |
download | core-3140e1b17d9f8dc50d8eb1c8789462f2a1b51a48.tar.gz core-3140e1b17d9f8dc50d8eb1c8789462f2a1b51a48.zip |
add warning with install instructions when android build-tools are not found
Change-Id: I987262e4e9ae99c889285658fc9f840655d29191
(cherry picked from commit 2ca4748a2e04b37c18f6f572bcf323cd857fef34)
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index 6ec22c2aa32e..7710d8fcdb4a 100644 --- a/configure.ac +++ b/configure.ac @@ -805,6 +805,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 |