Copy dexpreopt.config only if it exists
Bug: 158843648 Test: m dist when global dexpreopt.config doesn't exist Change-Id: Iaa8ec04624e16cecceed3f2065945a180a867b1c
This commit is contained in:
parent
6edaa353b1
commit
35bf6b0219
1 changed files with 4 additions and 0 deletions
|
@ -5337,8 +5337,12 @@ $(DEXPREOPT_CONFIG_ZIP): $(FULL_SYSTEMIMAGE_DEPS) \
|
|||
|
||||
$(DEXPREOPT_CONFIG_ZIP): $(SOONG_ZIP)
|
||||
$(hide) mkdir -p $(dir $@) $(PRODUCT_OUT)/dexpreopt_config
|
||||
ifneq (,$(DEX_PREOPT_CONFIG_FOR_MAKE))
|
||||
$(hide) cp $(DEX_PREOPT_CONFIG_FOR_MAKE) $(PRODUCT_OUT)/dexpreopt_config
|
||||
endif
|
||||
ifneq (,$(DEX_PREOPT_SOONG_CONFIG_FOR_MAKE))
|
||||
$(hide) cp $(DEX_PREOPT_SOONG_CONFIG_FOR_MAKE) $(PRODUCT_OUT)/dexpreopt_config
|
||||
endif
|
||||
$(hide) $(SOONG_ZIP) -d -o $@ -C $(PRODUCT_OUT)/dexpreopt_config -D $(PRODUCT_OUT)/dexpreopt_config
|
||||
|
||||
# -----------------------------------------------------------------
|
||||
|
|
Loading…
Reference in a new issue