summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAdnan Begovic <adnan@cyngn.com>2016-05-02 15:22:30 -0700
committerAdnan Begovic <adnan@cyngn.com>2016-05-02 15:24:30 -0700
commitb5332f95968d7115a46ade1f163528e5bdd31b9f (patch)
tree3fd7f11225c24cf46fcacb0178147faf068e1b1a
parent1efc554af5a47172f98c729baaeb338d69536fcd (diff)
downloadbuild-b5332f95968d7115a46ade1f163528e5bdd31b9f.zip
build-b5332f95968d7115a46ade1f163528e5bdd31b9f.tar.gz
build-b5332f95968d7115a46ade1f163528e5bdd31b9f.tar.bz2
build: Make sure to check for variable definition during execution.
TICKET: RM-232 Change-Id: Ic5b3850a81b959b05a218cd967dcec71c15a4cd5
-rw-r--r--core/static_java_library.mk6
1 files changed, 3 insertions, 3 deletions
diff --git a/core/static_java_library.mk b/core/static_java_library.mk
index f4da963..5abb673 100644
--- a/core/static_java_library.mk
+++ b/core/static_java_library.mk
@@ -149,9 +149,9 @@ $(built_aar) : $(LOCAL_BUILT_MODULE)
# Note: Use "cp -n" to honor the resource overlay rules, if multiple res dirs exist.
$(hide) $(foreach res,$(PRIVATE_RESOURCE_DIR),cp -Rfn $(res)/* $(dir $@)aar/res;)
$(hide) cp $(PRIVATE_R_TXT) $(dir $@)aar/R.txt
-ifneq ($(PRIVATE_CONSUMER_PROGUARD_FILE),)
- $(hide) cp $(PRIVATE_CONSUMER_PROGUARD_FILE) $(dir $@)aar/proguard.txt
-endif
+ $(hide) if [ ! -z "$(PRIVATE_CONSUMER_PROGUARD_FILE)" ]; then \
+ echo "Including '$(PRIVATE_CONSUMER_PROGUARD_FILE)'"; \
+ $(hide) cp $(PRIVATE_CONSUMER_PROGUARD_FILE) $(dir $@)aar/proguard.txt; fi
$(hide) jar -cMf $@ \
-C $(dir $@)aar .