Version 5.2.6.1, tag libreoffice-5.2.6.1
[LibreOffice.git] / android / source / Makefile
blob6f2f96803f37d183c355450391c4c73dd9aeb274
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 $< -j -g core -g writer -g calc -g draw -g edit > $@
17 install:
18 ./gradlew $(if $(verbose),--info) $(if $(versionCode),-PcmdVersionCode=$(versionCode)) install$(if $(DISABLE_UI),StrippedUI,FullUI)Debug
19 @echo
20 @echo 'Run it with "make run"'
21 @echo
23 uninstall:
24 $(ANDROID_SDK_HOME)/platform-tools/adb uninstall $(ANDROID_PACKAGE_NAME)
26 clean:
27 rm -rf assets assets_fullUI assets_strippedUI jniLibs jniLibs_debug $(OBJLOCAL)
28 rm -f native-code.cxx
29 rm -f liboSettings.gradle
31 build-gradle: liboSettings.gradle local.properties link-so
32 ./gradlew $(if $(verbose),--info) $(if $(versionCode),-PcmdVersionCode=$(versionCode)) assemble$(if $(DISABLE_UI),StrippedUI,FullUI)$(if $(ENABLE_RELEASE_BUILD),Release,Debug)
34 run:
35 $(ANDROID_SDK_HOME)/platform-tools/adb shell am start -n $(ANDROID_PACKAGE_NAME)/.ui.LibreOfficeUIActivity
37 debugrun:
38 $(SYSBASE)/../../../ndk-gdb --start