Update git submodules
[LibreOffice.git] / android / source / Makefile
blob1dc1b42d187b345e2eb14842711544a3401c0cc6
1 ifeq ($(BUILDDIR),)
2 gb_Side:=host
3 include ../../config_host.mk
4 endif
6 # The default target just builds.
8 all: build-gradle
10 DISABLE_UI=TRUE
11 BOOTSTRAPDIR=../Bootstrap
12 include $(BOOTSTRAPDIR)/Makefile.shared
14 native-code.cxx: $(SRCDIR)/solenv/bin/native-code.py
15 @echo "[build PY ] $@"
16 $< -j -g core -g writer -g calc -g draw -g edit > $@
18 install:
19 if test "$$ENABLE_ANDROID_LOK" != "TRUE" ; then ./gradlew $(if $(verbose),--info) $(if $(versionCode),-PcmdVersionCode=$(versionCode)) install$(if $(DISABLE_UI),StrippedUI,FullUI)$(if $(ENABLE_ANDROID_EDITING),Editing)Debug ; fi
20 @if test "$$ENABLE_ANDROID_LOK" != "TRUE" ; then echo ; echo 'Run it with "make run"' ; echo ; fi
22 uninstall:
23 $(ANDROID_SDK_DIR)/platform-tools/adb uninstall $(ANDROID_PACKAGE_NAME)
25 clean:
26 rm -rf assets assets_fullUI assets_strippedUI jniLibs jniLibs_debug $(OBJLOCAL)
27 rm -f native-code.cxx
28 rm -f liboSettings.gradle
30 build-gradle: liboSettings.gradle local.properties link-so
31 ifeq ($(ENABLE_JAVA),TRUE)
32 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
33 endif
35 run:
36 if test "$$ENABLE_ANDROID_LOK" != "TRUE" ; then $(ANDROID_SDK_DIR)/platform-tools/adb shell am start -n $(ANDROID_PACKAGE_NAME)/org.libreoffice.ui.LibreOfficeUIActivity ; fi
38 debugrun:
39 @echo "please debug with lldb from within Android Studio, or setup ndk-gdb manually (see android/README for details)"