Newer
Older
c-interpreter / mk / check-lcov-conf.mk
Nomura Kei on 3 Jun 2023 1 KB first commit
  1. # ==============================================================================
  2. # lcov 設定
  3. # ==============================================================================
  4.  
  5. # ------------------------------------------------------------------------------
  6. # 基本設定
  7. # ------------------------------------------------------------------------------
  8. LCOV = lcov
  9. LCOV_REPORT_DIR = report/lcov
  10. LCOV_INFO = $(LCOV_REPORT_DIR)/lcov.info
  11.  
  12. GENHTML = genhtml
  13. GENHTML_FLAGS += --function-coverage
  14. GENHTML_FLAGS += --branch-coverage
  15.  
  16. # ------------------------------------------------------------------------------
  17. # C1 Coverage 有効
  18. # ------------------------------------------------------------------------------
  19. LCOV_FLAGS += --rc lcov_branch_coverage=1
  20. LCOV_FLAGS += --rc genhtml_branch_coverage=1
  21.  
  22. # ------------------------------------------------------------------------------
  23. # CLEAN 時の削除ファイル追加
  24. # ------------------------------------------------------------------------------
  25. ifeq ($(strip $(TARGET)),ut.exe)
  26. CLEAN_DIRS += $(LCOV_REPORT_DIR)
  27. endif
  28.