Build fix (followup to bug 512029).
[mozilla-central.git] / config / static-checking-config.mk
blob4583a3462e48e685f91b515d1a36080653d17dd8
1 # The entire tree should be subject to static analysis using the XPCOM
2 # script. Additional scripts may be added by specific subdirectories.
4 DEHYDRA_SCRIPT = $(topsrcdir)/config/static-checking.js
6 DEHYDRA_MODULES = \
7 $(topsrcdir)/xpcom/analysis/final.js \
8 $(NULL)
10 TREEHYDRA_MODULES = \
11 $(topsrcdir)/xpcom/analysis/outparams.js \
12 $(topsrcdir)/xpcom/analysis/stack.js \
13 $(topsrcdir)/xpcom/analysis/flow.js \
14 $(topsrcdir)/js/src/jsstack.js \
15 $(topsrcdir)/layout/generic/frame-verify.js \
16 $(NULL)
18 DEHYDRA_ARGS = \
19 --topsrcdir=$(topsrcdir) \
20 --objdir=$(DEPTH) \
21 --dehydra-modules=$(subst $(NULL) ,$(COMMA),$(strip $(DEHYDRA_MODULES))) \
22 --treehydra-modules=$(subst $(NULL) ,$(COMMA),$(strip $(TREEHYDRA_MODULES))) \
23 $(NULL)
25 DEHYDRA_FLAGS = -fplugin=$(DEHYDRA_PATH) -fplugin-arg='$(DEHYDRA_SCRIPT) $(DEHYDRA_ARGS)'
27 ifdef DEHYDRA_PATH
28 OS_CXXFLAGS += $(DEHYDRA_FLAGS)
29 endif