summaryrefslogtreecommitdiffstats
path: root/core/definitions.mk
diff options
context:
space:
mode:
authorDmitriy Ivanov <dimitry@google.com>2015-04-17 11:00:15 -0700
committerDmitriy Ivanov <dimitry@google.com>2015-04-17 11:39:04 -0700
commit8f9487431ce392f3df5181c3d77f86ea8effbae6 (patch)
treeec636df6148f73dd3ff1d089c1e68b36ddfbe142 /core/definitions.mk
parent1ff61a9b2d169477b476fdf4f03a92388f3ba444 (diff)
downloadbuild-8f9487431ce392f3df5181c3d77f86ea8effbae6.zip
build-8f9487431ce392f3df5181c3d77f86ea8effbae6.tar.gz
build-8f9487431ce392f3df5181c3d77f86ea8effbae6.tar.bz2
Remove LOCAL_JNI_SHARED_LIBRARIES_ZIP_OPTIONS
Use LOCAL_PAGE_ALIGN_JNI_SHARED_LIBRARIES instead. Change-Id: Id30529fbc1652d066e0008813352848b5e404ab9
Diffstat (limited to 'core/definitions.mk')
-rw-r--r--core/definitions.mk5
1 files changed, 3 insertions, 2 deletions
diff --git a/core/definitions.mk b/core/definitions.mk
index 4f0daae..6114395 100644
--- a/core/definitions.mk
+++ b/core/definitions.mk
@@ -1903,7 +1903,8 @@ $(hide) mkdir -p $(addprefix $(dir $@)lib/,$(PRIVATE_JNI_SHARED_LIBRARIES_ABI))
$(foreach abi,$(PRIVATE_JNI_SHARED_LIBRARIES_ABI),\
$(call _add-jni-shared-libs-to-package-per-abi,$(abi),\
$(patsubst $(abi):%,%,$(filter $(abi):%,$(PRIVATE_JNI_SHARED_LIBRARIES)))))
-$(hide) (cd $(dir $@) && zip -r $(PRIVATE_JNI_SHARED_LIBRARIES_ZIP_OPTIONS) $(notdir $@) lib)
+$(hide) (cd $(dir $@) && zip -r \
+ $(if $(filter true, $(PRIVATE_PAGE_ALIGN_JNI_SHARED_LIBRARIES)),-0,) $(notdir $@) lib)
$(hide) rm -rf $(dir $@)lib
endef
@@ -1937,7 +1938,7 @@ define align-package
$(hide) mv $@ $@.unaligned
$(hide) $(ZIPALIGN) \
-f \
- $(if $(findstring true, $(PRIVATE_PAGE_ALIGN_JNI_SHARED_LIBRARIES)),-p ,) \
+ $(if $(filter true, $(PRIVATE_PAGE_ALIGN_JNI_SHARED_LIBRARIES)),-p,) \
4 \
$@.unaligned $@.aligned
$(hide) mv $@.aligned $@