Merge "Execute appcompat for apps built from soong" am: d6dbd967b5
am: 7808358cf1
Change-Id: I20f3cfe6449bc99b69629bd3fadcbf7bc01537c5
This commit is contained in:
commit
6d4e72069b
1 changed files with 22 additions and 1 deletions
|
@ -74,7 +74,28 @@ ifneq ($(BUILD_PLATFORM_ZIP),)
|
||||||
$(eval $(call copy-one-file,$(LOCAL_SOONG_DEX_JAR),$(dir $(LOCAL_BUILT_MODULE))package.dex.apk))
|
$(eval $(call copy-one-file,$(LOCAL_SOONG_DEX_JAR),$(dir $(LOCAL_BUILT_MODULE))package.dex.apk))
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
# Run veridex on product, product_services and vendor modules.
|
||||||
|
# We skip it for unbundled app builds where we cannot build veridex.
|
||||||
|
module_run_appcompat :=
|
||||||
|
ifeq (true,$(filter true, \
|
||||||
|
$(LOCAL_PRODUCT_MODULE) $(LOCAL_PRODUCT_SERVICES_MODULE) \
|
||||||
|
$(LOCAL_VENDOR_MODULE) $(LOCAL_PROPRIETARY_MODULE)))
|
||||||
|
ifeq (,$(TARGET_BUILD_APPS)$(filter true,$(TARGET_BUILD_PDK))) # ! unbundled app build
|
||||||
|
module_run_appcompat := true
|
||||||
|
endif
|
||||||
|
endif
|
||||||
|
|
||||||
|
ifeq ($(module_run_appcompat),true)
|
||||||
|
$(LOCAL_BUILT_MODULE): $(appcompat-files)
|
||||||
|
$(LOCAL_BUILT_MODULE): PRIVATE_INSTALLED_MODULE := $(LOCAL_INSTALLED_MODULE)
|
||||||
|
$(LOCAL_BUILT_MODULE): $(LOCAL_PREBUILT_MODULE_FILE)
|
||||||
|
@echo "Copy: $@"
|
||||||
|
$(copy-file-to-target)
|
||||||
|
$(call appcompat-header, aapt2)
|
||||||
|
$(run-appcompat)
|
||||||
|
else
|
||||||
$(eval $(call copy-one-file,$(LOCAL_PREBUILT_MODULE_FILE),$(LOCAL_BUILT_MODULE)))
|
$(eval $(call copy-one-file,$(LOCAL_PREBUILT_MODULE_FILE),$(LOCAL_BUILT_MODULE)))
|
||||||
|
endif
|
||||||
|
|
||||||
my_built_installed := $(foreach f,$(LOCAL_SOONG_BUILT_INSTALLED),\
|
my_built_installed := $(foreach f,$(LOCAL_SOONG_BUILT_INSTALLED),\
|
||||||
$(call word-colon,1,$(f)):$(PRODUCT_OUT)$(call word-colon,2,$(f)))
|
$(call word-colon,1,$(f)):$(PRODUCT_OUT)$(call word-colon,2,$(f)))
|
||||||
|
|
Loading…
Reference in a new issue