Add module-target-built-files function
This is similar to module-built-files, except that it only returns files built for the target, not the host. Bug: 119423884 Test: Build with the no-vendor-variant VNDK change that uses this function. Change-Id: I2a3d99003b05999eae01c0b90bb62b5263d65592
This commit is contained in:
@@ -776,6 +776,10 @@ ALL_MODULES.$(my_register_name).CHECKED := \
|
|||||||
$(ALL_MODULES.$(my_register_name).CHECKED) $(my_checked_module)
|
$(ALL_MODULES.$(my_register_name).CHECKED) $(my_checked_module)
|
||||||
ALL_MODULES.$(my_register_name).BUILT := \
|
ALL_MODULES.$(my_register_name).BUILT := \
|
||||||
$(ALL_MODULES.$(my_register_name).BUILT) $(LOCAL_BUILT_MODULE)
|
$(ALL_MODULES.$(my_register_name).BUILT) $(LOCAL_BUILT_MODULE)
|
||||||
|
ifndef LOCAL_IS_HOST_MODULE
|
||||||
|
ALL_MODULES.$(my_register_name).TARGET_BUILT := \
|
||||||
|
$(ALL_MODULES.$(my_register_name).TARGET_BUILT) $(LOCAL_BUILT_MODULE)
|
||||||
|
endif
|
||||||
ifneq (true,$(LOCAL_UNINSTALLABLE_MODULE))
|
ifneq (true,$(LOCAL_UNINSTALLABLE_MODULE))
|
||||||
ALL_MODULES.$(my_register_name).INSTALLED := \
|
ALL_MODULES.$(my_register_name).INSTALLED := \
|
||||||
$(strip $(ALL_MODULES.$(my_register_name).INSTALLED) \
|
$(strip $(ALL_MODULES.$(my_register_name).INSTALLED) \
|
||||||
|
@@ -649,6 +649,18 @@ define module-installed-files
|
|||||||
$(foreach module,$(1),$(ALL_MODULES.$(module).INSTALLED))
|
$(foreach module,$(1),$(ALL_MODULES.$(module).INSTALLED))
|
||||||
endef
|
endef
|
||||||
|
|
||||||
|
###########################################################
|
||||||
|
## Convert a list of short modules names (e.g., "framework", "Browser")
|
||||||
|
## into the list of files that are built *for the target* for those modules.
|
||||||
|
## NOTE: this won't return reliable results until after all
|
||||||
|
## sub-makefiles have been included.
|
||||||
|
## $(1): target list
|
||||||
|
###########################################################
|
||||||
|
|
||||||
|
define module-target-built-files
|
||||||
|
$(foreach module,$(1),$(ALL_MODULES.$(module).TARGET_BUILT))
|
||||||
|
endef
|
||||||
|
|
||||||
###########################################################
|
###########################################################
|
||||||
## Convert a list of short modules names (e.g., "framework", "Browser")
|
## Convert a list of short modules names (e.g., "framework", "Browser")
|
||||||
## into the list of files that should be used when linking
|
## into the list of files that should be used when linking
|
||||||
|
@@ -67,6 +67,7 @@ endif
|
|||||||
ALL_MODULES += $(dpi_apk_name)
|
ALL_MODULES += $(dpi_apk_name)
|
||||||
ALL_MODULES.$(dpi_apk_name).CLASS := APPS
|
ALL_MODULES.$(dpi_apk_name).CLASS := APPS
|
||||||
ALL_MODULES.$(dpi_apk_name).BUILT := $(built_dpi_apk)
|
ALL_MODULES.$(dpi_apk_name).BUILT := $(built_dpi_apk)
|
||||||
|
ALL_MODULES.$(dpi_apk_name).TARGET_BUILT := $(built_dpi_apk)
|
||||||
PACKAGES := $(PACKAGES) $(dpi_apk_name)
|
PACKAGES := $(PACKAGES) $(dpi_apk_name)
|
||||||
PACKAGES.$(dpi_apk_name).PRIVATE_KEY := $(private_key)
|
PACKAGES.$(dpi_apk_name).PRIVATE_KEY := $(private_key)
|
||||||
PACKAGES.$(dpi_apk_name).CERTIFICATE := $(certificate)
|
PACKAGES.$(dpi_apk_name).CERTIFICATE := $(certificate)
|
||||||
|
Reference in New Issue
Block a user