android: disable packaging of un-needed UI files.

Appears to save ~10Mb of apk size.

Change-Id: I7c49da979e2868628bf3cf07937e898d717a5071
This commit is contained in:
Michael Meeks
2014-09-30 15:31:00 +01:00
parent 89c72084b2
commit 28eec2207c
2 changed files with 8 additions and 1 deletions

View File

@@ -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

View File

@@ -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