diff options
author | 2019-10-30 11:08:12 +0000 | |
---|---|---|
committer | 2019-10-30 11:08:12 +0000 | |
commit | 10954b52ee068988ce8245a05033ed2fcdf81c4b (patch) | |
tree | d762904c66460f6f9dbc08fcd3afd70957e1b4ce | |
parent | 1be2490d3b19a89840faaf4a89025752ae9382ba (diff) | |
parent | fe67f1490695c3cbe5e2954d127255746e9c7c01 (diff) |
Merge "Remove module `jacocoagent` from `TARGET_CORE_JARS`."
-rw-r--r-- | core/envsetup.mk | 8 | ||||
-rw-r--r-- | core/product_config.mk | 12 |
2 files changed, 12 insertions, 8 deletions
diff --git a/core/envsetup.mk b/core/envsetup.mk index 0c58cd6ae0..d35cb7e9bb 100644 --- a/core/envsetup.mk +++ b/core/envsetup.mk @@ -259,14 +259,6 @@ endef # Java libraries in the ART apex build rule. ART_APEX_JARS := core-oj core-libart core-icu4j okhttp bouncycastle apache-xml TARGET_CORE_JARS := $(ART_APEX_JARS) conscrypt -ifeq ($(EMMA_INSTRUMENT),true) - ifneq ($(EMMA_INSTRUMENT_STATIC),true) - # For instrumented build, if Jacoco is not being included statically - # in instrumented packages then include Jacoco classes into the - # bootclasspath. - TARGET_CORE_JARS += jacocoagent - endif # EMMA_INSTRUMENT_STATIC -endif # EMMA_INSTRUMENT HOST_CORE_JARS := $(addsuffix -hostdex,$(TARGET_CORE_JARS)) ################################################################# diff --git a/core/product_config.mk b/core/product_config.mk index 1293c94fcf..4fc7bf6a2f 100644 --- a/core/product_config.mk +++ b/core/product_config.mk @@ -184,6 +184,18 @@ current_product_makefile := all_product_makefiles := all_product_configs := +# Jacoco agent JARS to be built and installed, if any. +ifeq ($(EMMA_INSTRUMENT),true) + ifneq ($(EMMA_INSTRUMENT_STATIC),true) + # For instrumented build, if Jacoco is not being included statically + # in instrumented packages then include Jacoco classes into the + # bootclasspath. + $(foreach product,$(PRODUCTS),\ + $(eval PRODUCTS.$(product).PRODUCT_PACKAGES += jacocoagent)\ + $(eval PRODUCTS.$(product).PRODUCT_BOOT_JARS += jacocoagent)) + endif # EMMA_INSTRUMENT_STATIC +endif # EMMA_INSTRUMENT + ############################################################################ # Strip and assign the PRODUCT_ variables. $(call strip-product-vars) |