2014-06-26 11:22:21 +02:00
|
|
|
ifeq ($(BUILDDIR),)
|
2015-03-31 09:34:41 +02:00
|
|
|
gb_Side:=host
|
2015-10-01 16:57:12 +02:00
|
|
|
include ../../config_host.mk
|
2014-06-26 11:22:21 +02:00
|
|
|
endif
|
|
|
|
|
|
|
|
# The default target just builds.
|
|
|
|
|
2015-10-11 01:53:29 +02:00
|
|
|
all: build-gradle
|
2014-06-26 11:22:21 +02:00
|
|
|
|
2014-09-30 15:31:00 +01:00
|
|
|
DISABLE_UI=TRUE
|
2015-05-21 17:01:09 +01:00
|
|
|
BOOTSTRAPDIR=../Bootstrap
|
2014-06-26 11:22:21 +02:00
|
|
|
include $(BOOTSTRAPDIR)/Makefile.shared
|
|
|
|
|
|
|
|
native-code.cxx: $(SRCDIR)/solenv/bin/native-code.py
|
2017-06-22 19:18:17 +02:00
|
|
|
@echo "[build PY ] $@"
|
2015-01-16 19:01:04 +09:00
|
|
|
$< -j -g core -g writer -g calc -g draw -g edit > $@
|
2014-06-26 11:22:21 +02:00
|
|
|
|
2015-10-11 01:53:29 +02:00
|
|
|
install:
|
2018-12-13 09:43:55 +01:00
|
|
|
./gradlew $(if $(verbose),--info) $(if $(versionCode),-PcmdVersionCode=$(versionCode)) install$(if $(DISABLE_UI),StrippedUI,FullUI)$(if $(ENABLE_ANDROID_EDITING),Editing)Debug
|
2015-10-11 01:53:29 +02:00
|
|
|
@echo
|
|
|
|
@echo 'Run it with "make run"'
|
|
|
|
@echo
|
|
|
|
|
|
|
|
uninstall:
|
|
|
|
$(ANDROID_SDK_HOME)/platform-tools/adb uninstall $(ANDROID_PACKAGE_NAME)
|
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -rf assets assets_fullUI assets_strippedUI jniLibs jniLibs_debug $(OBJLOCAL)
|
|
|
|
rm -f native-code.cxx
|
|
|
|
rm -f liboSettings.gradle
|
|
|
|
|
|
|
|
build-gradle: liboSettings.gradle local.properties link-so
|
2018-12-13 09:43:55 +01:00
|
|
|
./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)
|
2014-06-26 11:22:21 +02:00
|
|
|
|
|
|
|
run:
|
2015-10-11 01:53:29 +02:00
|
|
|
$(ANDROID_SDK_HOME)/platform-tools/adb shell am start -n $(ANDROID_PACKAGE_NAME)/.ui.LibreOfficeUIActivity
|
2015-03-19 16:16:55 +01:00
|
|
|
|
|
|
|
debugrun:
|
2017-09-05 17:40:56 +02:00
|
|
|
@echo "please debug with lldb from within Android Studio, or setup ndk-gdb manually (see android/README for details)"
|