Version 6.4.0.0.beta1, tag libreoffice-6.4.0.0.beta1
[LibreOffice.git] / android / source / Makefile
blob3fbfcddb0dd344380cb53154b7af1024f15f00fc
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 ./gradlew $(if $(verbose),--info) $(if $(versionCode),-PcmdVersionCode=$(versionCode)) install$(if $(DISABLE_UI),StrippedUI,FullUI)$(if $(ENABLE_ANDROID_EDITING),Editing)Debug
20 @echo
21 @echo 'Run it with "make run"'
22 @echo
24 uninstall:
25 $(ANDROID_SDK_HOME)/platform-tools/adb uninstall $(ANDROID_PACKAGE_NAME)
27 clean:
28 rm -rf assets assets_fullUI assets_strippedUI jniLibs jniLibs_debug $(OBJLOCAL)
29 rm -f native-code.cxx
30 rm -f liboSettings.gradle
32 build-gradle: liboSettings.gradle local.properties link-so
33 ./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)
35 run:
36 $(ANDROID_SDK_HOME)/platform-tools/adb shell am start -n $(ANDROID_PACKAGE_NAME)/.ui.LibreOfficeUIActivity
38 debugrun:
39 @echo "please debug with lldb from within Android Studio, or setup ndk-gdb manually (see android/README for details)"