summaryrefslogtreecommitdiff
path: root/android/source
diff options
context:
space:
mode:
authorTor Lillqvist <tml@iki.fi>2020-04-24 17:09:01 +0300
committerTor Lillqvist <tml@collabora.com>2020-06-11 06:48:01 +0200
commit04ca42f87b7c59224fafd35bf220c974300566e4 (patch)
treefe6302d7bcc9ed33f832724f4d85b296fad1f2aa /android/source
parentab267a5282a2983fce7040feac04270af407c29d (diff)
Make it possible to just build the native code for Android, no Java bits
Change-Id: Ic25b8d72c9e60c0bee04765d51565c2864ec25ea Reviewed-on: https://gerrit.libreoffice.org/c/core/+/95850 Tested-by: Jenkins Reviewed-by: Tor Lillqvist <tml@collabora.com>
Diffstat (limited to 'android/source')
-rw-r--r--android/source/Makefile2
1 files changed, 2 insertions, 0 deletions
diff --git a/android/source/Makefile b/android/source/Makefile
index b64802ec9e78..1d9ca02d3556 100644
--- a/android/source/Makefile
+++ b/android/source/Makefile
@@ -28,7 +28,9 @@ clean:
rm -f liboSettings.gradle
build-gradle: liboSettings.gradle local.properties link-so
+ifeq ($(ENABLE_JAVA),TRUE)
if test "$$ENABLE_ANDROID_LOK" != "TRUE" ; then ./gradlew $(if $(verbose),--info) $(if $(versionCode),-PcmdVersionCode=$(versionCode)) assemble$(if $(DISABLE_UI),StrippedUI,FullUI)$(if $(ENABLE_ANDROID_EDITING),Editing)$(if $(ENABLE_RELEASE_BUILD),Release,Debug) ; fi
+endif
run:
if test "$$ENABLE_ANDROID_LOK" != "TRUE" ; then $(ANDROID_SDK_HOME)/platform-tools/adb shell am start -n $(ANDROID_PACKAGE_NAME)/.ui.LibreOfficeUIActivity ; fi