configure: Add option to run clang static analysis

This commit is contained in:
TingPing
2014-12-02 01:06:25 -05:00
parent 05a6097dc6
commit e38f00775f
5 changed files with 42 additions and 0 deletions

View File

@@ -1,3 +1,6 @@
include $(top_srcdir)/m4/clang-analyze.am
localedir = $(datadir)/locale
bin_PROGRAMS = hexchat
@@ -35,3 +38,9 @@ hexchat_CPPFLAGS = $(AM_CPPFLAGS) -I$(top_builddir)/src/common
resources.c: $(top_srcdir)/data/hexchat.gresource.xml $(shell $(GLIB_COMPILE_RESOURCES) --sourcedir=$(top_srcdir)/data --generate-dependencies $(top_srcdir)/data/hexchat.gresource.xml)
$(AM_V_GEN) $(GLIB_COMPILE_RESOURCES) --target=$@ --sourcedir=$(top_srcdir)/data --generate-source $<
if DO_STATIC_ANALYSIS
analyze_plists = $(hexchat_SOURCES:%.c=%.plist)
all-local: $(analyze_plists)
MOSTLYCLEANFILES = $(analyze_plists)
endif