[Libreoffice-commits] online.git: android/app android/build.gradle android/build.gradle.in android/.gitignore android/lib configure.ac
Henry Castro (via logerrit)
logerrit at kemper.freedesktop.org
Tue Apr 21 14:03:59 UTC 2020
android/.gitignore | 1 +
android/app/build.gradle | 1 +
android/build.gradle.in | 1 +
android/lib/build.gradle | 2 ++
configure.ac | 1 +
5 files changed, 6 insertions(+)
New commits:
commit 0e8942f88f7dfac058da02db19251cff8fe55fe5
Author: Henry Castro <hcastro at collabora.com>
AuthorDate: Sun Apr 19 12:09:41 2020 -0400
Commit: Henry Castro <hcastro at collabora.com>
CommitDate: Tue Apr 21 16:03:38 2020 +0200
android: configure build directory
Enable to change to build directory when
builddir != srcdir
Change-Id: I8e48897c44a5ea67da8ffebc3183d722a05e3a20
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/92596
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice at gmail.com>
Reviewed-by: Henry Castro <hcastro at collabora.com>
diff --git a/android/.gitignore b/android/.gitignore
index 57063e693..afb2ba6d8 100644
--- a/android/.gitignore
+++ b/android/.gitignore
@@ -1,6 +1,7 @@
.gradle
.idea
/android.iml
+/build.gradle
/local.properties
/lib/src/main/assets/etc/
/lib/src/main/assets/example.odt
diff --git a/android/app/build.gradle b/android/app/build.gradle
index 5d4be5d2a..abb4d01b0 100644
--- a/android/app/build.gradle
+++ b/android/app/build.gradle
@@ -5,6 +5,7 @@ apply from: 'appSettings.gradle'
android {
compileSdkVersion 28
+ buildDir = "${rootProject.getBuildDir()}/app"
defaultConfig {
// applicationId, versionCode and versionName are defined in appSettings.gradle
diff --git a/android/build.gradle b/android/build.gradle.in
similarity index 94%
rename from android/build.gradle
rename to android/build.gradle.in
index 56532aa69..5b78812cb 100644
--- a/android/build.gradle
+++ b/android/build.gradle.in
@@ -1,4 +1,5 @@
// Top-level build file where you can add configuration options common to all sub-projects/modules.
+buildDir = "@builddir@/build"
buildscript {
repositories {
diff --git a/android/lib/build.gradle b/android/lib/build.gradle
index 0fa72b561..94d695190 100644
--- a/android/lib/build.gradle
+++ b/android/lib/build.gradle
@@ -5,6 +5,7 @@ apply from: 'libSettings.gradle'
android {
compileSdkVersion 28
+ buildDir = "${rootProject.getBuildDir()}/lib"
defaultConfig {
minSdkVersion 21
@@ -58,6 +59,7 @@ android {
externalNativeBuild {
cmake {
path "src/main/cpp/CMakeLists.txt"
+ buildStagingDirectory "${rootProject.getBuildDir()}/cmake"
}
}
}
diff --git a/configure.ac b/configure.ac
index b4bf69e97..939f407e8 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1081,6 +1081,7 @@ fi
if test "$enable_androidapp" = "yes"; then
AC_CONFIG_FILES([android/Makefile
+ android/build.gradle
android/app/appSettings.gradle
android/lib/libSettings.gradle
android/lib/src/main/cpp/CMakeLists.txt])
More information about the Libreoffice-commits
mailing list