Merge "More base_rules.mk optimizations" am: 07c9ac0e2a
am: bd49363d31
Change-Id: Ic7be7d6a0bbc1fac3e59befd091f7e8eaaa6e7c3
This commit is contained in:
commit
7996f0610a
1 changed files with 3 additions and 1 deletions
|
@ -878,6 +878,7 @@ INSTALLABLE_FILES.$(LOCAL_INSTALLED_MODULE).MODULE := $(my_register_name)
|
||||||
##########################################################
|
##########################################################
|
||||||
# Track module-level dependencies.
|
# Track module-level dependencies.
|
||||||
# Use $(LOCAL_MODULE) instead of $(my_register_name) to ignore module's bitness.
|
# Use $(LOCAL_MODULE) instead of $(my_register_name) to ignore module's bitness.
|
||||||
|
ifneq (,$(filter deps-license,$(MAKECMDGOALS)))
|
||||||
ALL_DEPS.MODULES := $(ALL_DEPS.MODULES) $(LOCAL_MODULE)
|
ALL_DEPS.MODULES := $(ALL_DEPS.MODULES) $(LOCAL_MODULE)
|
||||||
ALL_DEPS.$(LOCAL_MODULE).ALL_DEPS := $(sort \
|
ALL_DEPS.$(LOCAL_MODULE).ALL_DEPS := $(sort \
|
||||||
$(ALL_DEPS.$(LOCAL_MODULE).ALL_DEPS) \
|
$(ALL_DEPS.$(LOCAL_MODULE).ALL_DEPS) \
|
||||||
|
@ -890,6 +891,7 @@ ALL_DEPS.$(LOCAL_MODULE).ALL_DEPS := $(sort \
|
||||||
$(LOCAL_JNI_SHARED_LIBRARIES))
|
$(LOCAL_JNI_SHARED_LIBRARIES))
|
||||||
|
|
||||||
ALL_DEPS.$(LOCAL_MODULE).LICENSE := $(sort $(ALL_DEPS.$(LOCAL_MODULE).LICENSE) $(license_files))
|
ALL_DEPS.$(LOCAL_MODULE).LICENSE := $(sort $(ALL_DEPS.$(LOCAL_MODULE).LICENSE) $(license_files))
|
||||||
|
endif
|
||||||
|
|
||||||
###########################################################
|
###########################################################
|
||||||
## Take care of my_module_tags
|
## Take care of my_module_tags
|
||||||
|
@ -899,7 +901,7 @@ ALL_DEPS.$(LOCAL_MODULE).LICENSE := $(sort $(ALL_DEPS.$(LOCAL_MODULE).LICENSE) $
|
||||||
ALL_MODULE_TAGS := $(sort $(ALL_MODULE_TAGS) $(my_module_tags))
|
ALL_MODULE_TAGS := $(sort $(ALL_MODULE_TAGS) $(my_module_tags))
|
||||||
|
|
||||||
# Add this module name to the tag list of each specified tag.
|
# Add this module name to the tag list of each specified tag.
|
||||||
$(foreach tag,$(my_module_tags),\
|
$(foreach tag,$(filter-out optional,$(my_module_tags)),\
|
||||||
$(eval ALL_MODULE_NAME_TAGS.$(tag) := $$(ALL_MODULE_NAME_TAGS.$(tag)) $(my_register_name)))
|
$(eval ALL_MODULE_NAME_TAGS.$(tag) := $$(ALL_MODULE_NAME_TAGS.$(tag)) $(my_register_name)))
|
||||||
|
|
||||||
###########################################################
|
###########################################################
|
||||||
|
|
Loading…
Reference in a new issue