Merge "Use c and cpp objects for gcov." am: d579b8eb1f

am: 425bbada28

Change-Id: Ia86f4824c74c550b4e9f3fca63241dd63b179a7d
This commit is contained in:
Ryan Campbell 2017-03-01 03:12:22 +00:00 committed by android-build-merger
commit 74ec2776e8
1 changed files with 10 additions and 2 deletions

View File

@ -1859,6 +1859,14 @@ endif
# Coverage packaging.
###########################################################
ifeq ($(my_native_coverage),true)
LOCAL_GCNO_FILES := $(patsubst %.o,%.gcno,$(all_objects))
$(foreach f,$(all_objects),$(eval $(call gcno-touch-rule,$(f),$(f:.o=.gcno))))
my_gcno_objects := \
$(cpp_objects) \
$(gen_cpp_objects) \
$(c_objects) \
$(gen_c_objects) \
$(objc_objects) \
$(objcpp_objects)
LOCAL_GCNO_FILES := $(patsubst %.o,%.gcno,$(my_gcno_objects))
$(foreach f,$(my_gcno_objects),$(eval $(call gcno-touch-rule,$(f),$(f:.o=.gcno))))
endif