Merge "Move jacocoagent into the bootclasspath" am: 68dad73d34
am: a6af8ef91f
Change-Id: I3fba1c3005056354a682e1e424fbb4f388cc16ab
This commit is contained in:
commit
e9a7688567
2 changed files with 21 additions and 0 deletions
|
@ -200,6 +200,14 @@ TARGET_COPY_OUT_VENDOR := $(_vendor_path_placeholder)
|
|||
# Set up minimal BOOTCLASSPATH list of jars to build/execute
|
||||
# java code with dalvikvm/art.
|
||||
TARGET_CORE_JARS := core-oj core-libart conscrypt okhttp bouncycastle apache-xml
|
||||
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))
|
||||
#################################################################
|
||||
|
||||
|
|
13
core/java.mk
13
core/java.mk
|
@ -18,6 +18,19 @@ endif #PDK
|
|||
LOCAL_NO_STANDARD_LIBRARIES:=$(strip $(LOCAL_NO_STANDARD_LIBRARIES))
|
||||
LOCAL_SDK_VERSION:=$(strip $(LOCAL_SDK_VERSION))
|
||||
|
||||
ifneq ($(LOCAL_MODULE),jacocoagent)
|
||||
ifneq ($(LOCAL_NO_STANDARD_LIBRARIES),true)
|
||||
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.
|
||||
LOCAL_JAVA_LIBRARIES := jacocoagent $(LOCAL_JAVA_LIBRARIES)
|
||||
endif # EMMA_INSTRUMENT_STATIC
|
||||
endif # EMMA_INSTRUMENT
|
||||
endif # !LOCAL_NO_STANDARD_LIBRARIES
|
||||
endif # LOCAL_MODULE == jacocoagent
|
||||
|
||||
ifneq ($(LOCAL_SDK_VERSION),)
|
||||
ifeq ($(LOCAL_NO_STANDARD_LIBRARIES),true)
|
||||
$(error $(LOCAL_PATH): Must not define both LOCAL_NO_STANDARD_LIBRARIES and LOCAL_SDK_VERSION)
|
||||
|
|
Loading…
Reference in a new issue