diff options
Diffstat (limited to 'libacryl/Android.mk')
-rw-r--r-- | libacryl/Android.mk | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/libacryl/Android.mk b/libacryl/Android.mk index 98a51f2..43471e3 100644 --- a/libacryl/Android.mk +++ b/libacryl/Android.mk @@ -42,6 +42,20 @@ ifdef BOARD_LIBACRYL_G2D_HDR_PLUGIN LOCAL_CFLAGS += -DLIBACRYL_G2D_HDR_PLUGIN endif +ifeq ($(CLANG_COVERAGE),true) +# enable code coverage (these flags are copied from build/soong/cc/coverage.go) +LOCAL_CFLAGS += -fprofile-instr-generate -fcoverage-mapping +LOCAL_CFLAGS += -Wno-frame-larger-than= +LOCAL_WHOLE_STATIC_LIBRARIES += libprofile-clang-extras_ndk +LOCAL_LDFLAGS += -fprofile-instr-generate +LOCAL_LDFLAGS += -Wl,--wrap,open + +ifeq ($(CLANG_COVERAGE_CONTINUOUS_MODE),true) +LOCAL_CFLAGS += -mllvm -runtime-counter-relocation +LOCAL_LDFLAGS += -Wl,-mllvm=-runtime-counter-relocation +endif +endif + LOCAL_HEADER_LIBRARIES += google_libacryl_hdrplugin_headers LOCAL_HEADER_LIBRARIES += google_hal_headers LOCAL_HEADER_LIBRARIES += libgralloc_headers |