diff options
author | Michael Meeks <michael.meeks@collabora.com> | 2014-09-30 15:31:00 +0100 |
---|---|---|
committer | Michael Meeks <michael.meeks@collabora.com> | 2014-09-30 17:07:26 +0100 |
commit | 28eec2207c763399d07fe01da8858b679d64b322 (patch) | |
tree | 0e023c0c0519b79feb66f29c75ee7e03748b3ea8 | |
parent | 89c72084b23b14780d0799f2f2f32c579212f497 (diff) |
android: disable packaging of un-needed UI files.
Appears to save ~10Mb of apk size.
Change-Id: I7c49da979e2868628bf3cf07937e898d717a5071
-rw-r--r-- | android/Bootstrap/Makefile.shared | 8 | ||||
-rw-r--r-- | android/experimental/LOAndroid3/Makefile | 1 |
2 files changed, 8 insertions, 1 deletions
diff --git a/android/Bootstrap/Makefile.shared b/android/Bootstrap/Makefile.shared index a337a80a0bb2..b5ca272299ea 100644 --- a/android/Bootstrap/Makefile.shared +++ b/android/Bootstrap/Makefile.shared @@ -134,9 +134,15 @@ copy-stuff: assets cp $(WORKDIR)/ComponentTarget/i18npool/util/i18npool.component assets/ComponentTarget/i18npool/util # + rm -Rf assets/share # pre-clean it mkdir -p assets/share/config cp -R $(INSTDIR)/share/registry assets/share - cp -R $(INSTDIR)/share/config/soffice.cfg assets/share/config + if ! test z$(DISABLE_UI) = zTRUE; then \ + echo "Copying UI files into the apk"; \ + cp -R $(INSTDIR)/share/config/soffice.cfg assets/share/config; \ + else \ + echo "Skipping UI files"; \ + fi mkdir -p assets/unpack/program echo '[Bootstrap]' > assets/unpack/program/sofficerc diff --git a/android/experimental/LOAndroid3/Makefile b/android/experimental/LOAndroid3/Makefile index 49879c0a3414..a19fadc4e15c 100644 --- a/android/experimental/LOAndroid3/Makefile +++ b/android/experimental/LOAndroid3/Makefile @@ -9,6 +9,7 @@ all: build-ant # The package of this app APP_PACKAGE=org.libreoffice +DISABLE_UI=TRUE BOOTSTRAPDIR=../../Bootstrap include $(BOOTSTRAPDIR)/Makefile.shared |