rearrange app-related artifact path in make
* move package-res.apk related files to "common" intermediate dir as aapt2.srcjar does because it is an app which is supposed to be arch neutral * add device name in auto-gen RRO to avoid conflicits Bug: 279358050 Bug: 279360102 Test: m Change-Id: Ibcc5e5546bd43767ab0d4807933eeb57d58f99d6
This commit is contained in:
parent
2e8993e882
commit
ba1b925e47
2 changed files with 4 additions and 4 deletions
|
@ -1,6 +1,6 @@
|
|||
include $(CLEAR_VARS)
|
||||
|
||||
enforce_rro_module := $(enforce_rro_source_module)__auto_generated_rro_$(enforce_rro_partition)
|
||||
enforce_rro_module := $(enforce_rro_source_module)__$(PRODUCT_NAME)__auto_generated_rro_$(enforce_rro_partition)
|
||||
LOCAL_PACKAGE_NAME := $(enforce_rro_module)
|
||||
|
||||
intermediates := $(call intermediates-dir-for,APPS,$(LOCAL_PACKAGE_NAME),,COMMON)
|
||||
|
|
|
@ -201,10 +201,10 @@ my_res_resources := $(if $(my_res_dir),$(strip \
|
|||
all_resources := $(strip $(my_res_resources) $(my_overlay_resources))
|
||||
|
||||
# The linked resource package.
|
||||
my_res_package := $(intermediates)/package-res.apk
|
||||
my_res_package := $(intermediates.COMMON)/package-res.apk
|
||||
LOCAL_INTERMEDIATE_TARGETS += $(my_res_package)
|
||||
|
||||
my_bundle_module := $(intermediates)/base.zip
|
||||
my_bundle_module := $(intermediates.COMMON)/base.zip
|
||||
LOCAL_INTERMEDIATE_TARGETS += $(my_bundle_module)
|
||||
|
||||
# Always run aapt2, because we need to at least compile the AndroidManifest.xml.
|
||||
|
@ -570,7 +570,7 @@ ifdef LOCAL_COMPRESSED_MODULE
|
|||
$(compress-package)
|
||||
endif # LOCAL_COMPRESSED_MODULE
|
||||
|
||||
my_package_res_pb := $(intermediates)/package-res.pb.apk
|
||||
my_package_res_pb := $(intermediates.COMMON)/package-res.pb.apk
|
||||
$(my_package_res_pb): $(my_res_package) $(AAPT2)
|
||||
$(AAPT2) convert --output-format proto $< -o $@
|
||||
|
||||
|
|
Loading…
Reference in a new issue