Merge "Enable overrides for shared libraries"
am: d04107683b
Change-Id: I334167a048a2d7b02cc64c6b63ea04a5713d115a
This commit is contained in:
commit
58d4948fca
2 changed files with 7 additions and 5 deletions
|
@ -277,15 +277,17 @@ intermediates.COMMON := $(call local-intermediates-dir,COMMON)
|
|||
generated_sources_dir := $(call local-generated-sources-dir)
|
||||
|
||||
ifneq ($(LOCAL_OVERRIDES_MODULES),)
|
||||
ifeq ($(LOCAL_MODULE_CLASS),EXECUTABLES)
|
||||
ifndef LOCAL_IS_HOST_MODULE
|
||||
ifeq ($(LOCAL_MODULE_CLASS),EXECUTABLES)
|
||||
EXECUTABLES.$(LOCAL_MODULE).OVERRIDES := $(strip $(LOCAL_OVERRIDES_MODULES))
|
||||
else
|
||||
$(call pretty-error,host modules cannot use LOCAL_OVERRIDES_MODULES)
|
||||
endif
|
||||
else ifeq ($(LOCAL_MODULE_CLASS),SHARED_LIBRARIES)
|
||||
SHARED_LIBRARIES.$(LOCAL_MODULE).OVERRIDES := $(strip $(LOCAL_OVERRIDES_MODULES))
|
||||
else
|
||||
$(call pretty-error,LOCAL_MODULE_CLASS := $(LOCAL_MODULE_CLASS) cannot use LOCAL_OVERRIDES_MODULES)
|
||||
endif
|
||||
else
|
||||
$(call pretty-error,host modules cannot use LOCAL_OVERRIDES_MODULES)
|
||||
endif
|
||||
endif
|
||||
|
||||
###########################################################
|
||||
|
|
|
@ -969,7 +969,7 @@ $(foreach lt,$(ALL_LINK_TYPES),\
|
|||
# Expand a list of modules to the modules that they override (if any)
|
||||
# $(1): The list of modules.
|
||||
define module-overrides
|
||||
$(foreach m,$(1),$(PACKAGES.$(m).OVERRIDES) $(EXECUTABLES.$(m).OVERRIDES))
|
||||
$(foreach m,$(1),$(PACKAGES.$(m).OVERRIDES) $(EXECUTABLES.$(m).OVERRIDES) $(SHARED_LIBRARIES.$(m).OVERRIDES))
|
||||
endef
|
||||
|
||||
###########################################################
|
||||
|
|
Loading…
Reference in a new issue