summaryrefslogtreecommitdiff
path: root/android/source/Makefile
diff options
context:
space:
mode:
authorTor Lillqvist <tml@collabora.com>2015-05-21 17:01:09 +0100
committerTor Lillqvist <tml@collabora.com>2015-05-21 17:10:19 +0100
commitab8cbb6cc121f7001a920f9d9f12cd9ccddec385 (patch)
tree9bb1bb4e6b2f3d055f3dbc9de9871ca0d3d20618 /android/source/Makefile
parent1b53066433d1db9c3bfc3c6e6618565c15642b59 (diff)
Let's simplify the paths and be less 'experimental'
Diffstat (limited to 'android/source/Makefile')
-rw-r--r--android/source/Makefile42
1 files changed, 42 insertions, 0 deletions
diff --git a/android/source/Makefile b/android/source/Makefile
new file mode 100644
index 000000000000..3bf2c1547aac
--- /dev/null
+++ b/android/source/Makefile
@@ -0,0 +1,42 @@
+ifeq ($(BUILDDIR),)
+gb_Side:=host
+include ../../../config_host.mk
+endif
+
+# The default target just builds.
+
+all: build-ant
+
+# The package of this app
+# The setting from configure (ANDROID_PACKAGE_NAME) is applied in later stages.
+APP_PACKAGE=org.libreoffice
+
+DISABLE_UI=TRUE
+BOOTSTRAPDIR=../Bootstrap
+include $(BOOTSTRAPDIR)/Makefile.shared
+
+native-code.cxx: $(SRCDIR)/solenv/bin/native-code.py
+ $< -j -g core -g writer -g calc -g draw -g edit > $@
+
+build-ant: android_version_setup copy-stuff prepare-appcompat link-so properties
+#
+# Copy jar files we need
+#
+ for F in java_uno \
+ juh \
+ jurt \
+ ridl \
+ unoloader; do \
+ $(call COPYJAR,$(INSTDIR)/$(LIBO_URE_SHARE_JAVA_FOLDER)/$${F}.jar); \
+ done
+ for F in unoil; do \
+ $(call COPYJAR,$(INSTDIR)/$(LIBO_SHARE_JAVA_FOLDER)/$${F}.jar); \
+ done
+#
+ unset JAVA_HOME && $(ANT) $(if $(VERBOSE)$(verbose),,-quiet) $(if $(ENABLE_RELEASE_BUILD),release,debug)
+
+run:
+ adb shell am start -n $(APP_PACKAGE)/.ui.LibreOfficeUIActivity
+
+debugrun:
+ $(SYSBASE)/../../../ndk-gdb --start