Merge "Support path exclusion for native coverage." am: e317a2d19e
am: 26a4ce0b65
am: ab93845a78
Change-Id: I94106f8b4f9f40dd3cac9fafa5f2d23931975acd
This commit is contained in:
commit
dbe80a6445
2 changed files with 5 additions and 0 deletions
|
@ -61,10 +61,14 @@ my_export_c_include_deps := $(LOCAL_EXPORT_C_INCLUDE_DEPS)
|
|||
my_arflags :=
|
||||
|
||||
ifneq (,$(strip $(foreach dir,$(subst $(comma),$(space),$(COVERAGE_PATHS)),$(filter $(dir)%,$(LOCAL_PATH)))))
|
||||
ifeq (,$(strip $(foreach dir,$(subst $(comma),$(space),$(COVERAGE_EXCLUDE_PATHS)),$(filter $(dir)%,$(LOCAL_PATH)))))
|
||||
my_native_coverage := true
|
||||
else
|
||||
my_native_coverage := false
|
||||
endif
|
||||
else
|
||||
my_native_coverage := false
|
||||
endif
|
||||
|
||||
my_allow_undefined_symbols := $(strip $(LOCAL_ALLOW_UNDEFINED_SYMBOLS))
|
||||
ifdef SANITIZE_HOST
|
||||
|
|
|
@ -43,6 +43,7 @@ $(SOONG_VARIABLES): FORCE
|
|||
echo ''; \
|
||||
echo ' "NativeCoverage": $(if $(filter true,$(NATIVE_COVERAGE)),true,false),'; \
|
||||
echo ' "CoveragePaths": [$(if $(COVERAGE_PATHS),"$(subst $(space),"$(comma)",$(subst $(comma),$(space),$(COVERAGE_PATHS)))")],'; \
|
||||
echo ' "CoverageExcludePaths": [$(if $(COVERAGE_EXCLUDE_PATHS),"$(subst $(space),"$(comma)",$(subst $(comma),$(space),$(COVERAGE_EXCLUDE_PATHS)))")],'; \
|
||||
echo ''; \
|
||||
echo ' "DeviceName": "$(TARGET_DEVICE)",'; \
|
||||
echo ' "DeviceArch": "$(TARGET_ARCH)",'; \
|
||||
|
|
Loading…
Reference in a new issue