GlueMapWindowOverlays: adjust ThermalBand and FinalGlideBar sizing
[xcsoar.git] / build / coverage.mk
blobfffb74b1cec16242779c3f2bb5df514eb7596d7c
1 ifeq ($(COVERAGE),y)
2 FLAGS_COVERAGE := --coverage -g
3 COVERAGE_LDLIBS := --coverage
4 else
5 FLAGS_COVERAGE :=
6 COVERAGE_LDLIBS :=
7 endif
9 COVERAGE_DIR = $(TARGET_OUTPUT_DIR)/coverage
10 COVERAGE_DATA_DIR = $(COVERAGE_DIR)/data
11 COVERAGE_HTML_DIR = $(COVERAGE_DIR)/html
13 # uses lcov
14 #COVSTART = geninfo -q --no-checksum -b $(topdir) -i $(topdir)/src
15 #COVEND = geninfo -q --no-checksum -b $(topdir) $(topdir)/src
17 LCOVOPTS = --no-checksum -q -b $(topdir) -d $(TARGET_OUTPUT_DIR)/src
19 COVSTART = lcov -c -i $(LCOVOPTS) -o $(COVERAGE_DATA_DIR)/app_base.info
20 COVEND = lcov -c $(LCOVOPTS) -o $(COVERAGE_DATA_DIR)/app_test.info
21 COVMERGE = lcov -q -a $(COVERAGE_DATA_DIR)/app_base.info -a $(COVERAGE_DATA_DIR)/app_test.info -o $(COVERAGE_DATA_DIR)/app_total.info
22 COVCLEAN = lcov -q -r $(COVERAGE_DATA_DIR)/app_total.info "/usr/*" -o $(COVERAGE_DATA_DIR)/app_totalr.info
23 COVPROC = genhtml --frames -q -o $(COVERAGE_HTML_DIR) $(COVERAGE_DATA_DIR)/app_totalr.info
25 covstart: FORCE | $(COVERAGE_DATA_DIR)/dirstamp
26 @$(NQ)echo "coverage initialise"
27 echo $(COVSTART)
28 @$(Q)$(COVSTART)
30 covend: FORCE | $(COVERAGE_DATA_DIR)/dirstamp $(COVERAGE_HTML_DIR)/dirstamp
31 @$(NQ)echo "coverage report"
32 echo $(COVEND)
33 echo $(COVPROC)
34 @$(Q)$(COVEND)
35 @$(Q)$(COVMERGE)
36 @$(Q)$(COVCLEAN)
37 @$(Q)$(COVPROC)