Bug 857151 - Szip all libraries instead of libxul.so only. r=ted

This commit is contained in:
Mike Hommey 2013-04-02 18:42:56 +02:00
parent a96106fa45
commit ec9e800023

View File

@ -301,12 +301,6 @@ DIST_FILES += \
distribution \
$(NULL)
ifdef MOZ_ENABLE_SZIP
SZIP_LIBRARIES = \
libxul.so \
$(NULL)
endif
NON_DIST_FILES = \
classes.dex \
$(NULL)
@ -350,6 +344,10 @@ ifdef MOZ_OMX_PLUGIN
DIST_FILES += libomxplugin.so libomxplugingb.so libomxplugingb235.so libomxpluginhc.so libomxpluginsony.so libomxpluginfroyo.so libomxpluginjb-htc.so
endif
ifdef MOZ_ENABLE_SZIP
SZIP_LIBRARIES := $(filter-out $(MOZ_CHILD_PROCESS_NAME),$(filter %.so,$(DIST_FILES)))
endif
PKG_SUFFIX = .apk
INNER_MAKE_PACKAGE = \
$(foreach lib,$(SZIP_LIBRARIES),host/bin/szip $(STAGEPATH)$(MOZ_PKG_DIR)$(_BINPATH)/$(lib) $(STAGEPATH)$(MOZ_PKG_DIR)$(_BINPATH)/$(lib:.so=.sz) && mv $(STAGEPATH)$(MOZ_PKG_DIR)$(_BINPATH)/$(lib:.so=.sz) $(STAGEPATH)$(MOZ_PKG_DIR)$(_BINPATH)/$(lib) && ) \