2008-12-02 19:46:37 +00:00
|
|
|
# The entire tree should be subject to static analysis using the XPCOM
|
|
|
|
# script. Additional scripts may be added by specific subdirectories.
|
|
|
|
|
2008-12-11 16:40:04 +00:00
|
|
|
DEHYDRA_SCRIPT = $(topsrcdir)/config/static-checking.js
|
2008-12-02 19:46:37 +00:00
|
|
|
|
|
|
|
DEHYDRA_MODULES = \
|
|
|
|
$(topsrcdir)/xpcom/analysis/final.js \
|
2009-09-04 15:21:31 +00:00
|
|
|
$(topsrcdir)/xpcom/analysis/override.js \
|
2009-09-18 17:26:13 +00:00
|
|
|
$(topsrcdir)/xpcom/analysis/must-override.js \
|
2008-12-02 19:46:37 +00:00
|
|
|
$(NULL)
|
|
|
|
|
|
|
|
TREEHYDRA_MODULES = \
|
|
|
|
$(topsrcdir)/xpcom/analysis/outparams.js \
|
|
|
|
$(topsrcdir)/xpcom/analysis/stack.js \
|
|
|
|
$(topsrcdir)/xpcom/analysis/flow.js \
|
2010-08-19 01:04:39 +00:00
|
|
|
$(topsrcdir)/xpcom/analysis/static-init.js \
|
2008-12-11 16:40:04 +00:00
|
|
|
$(topsrcdir)/js/src/jsstack.js \
|
2009-08-07 15:16:26 +00:00
|
|
|
$(topsrcdir)/layout/generic/frame-verify.js \
|
2008-12-02 19:46:37 +00:00
|
|
|
$(NULL)
|
|
|
|
|
2010-08-19 01:06:05 +00:00
|
|
|
DEHYDRA_ARG_PREFIX=-fplugin-arg-gcc_treehydra-
|
|
|
|
|
2008-12-02 19:46:37 +00:00
|
|
|
DEHYDRA_ARGS = \
|
2010-08-19 01:06:05 +00:00
|
|
|
$(DEHYDRA_ARG_PREFIX)script=$(DEHYDRA_SCRIPT) \
|
|
|
|
$(DEHYDRA_ARG_PREFIX)topsrcdir=$(topsrcdir) \
|
|
|
|
$(DEHYDRA_ARG_PREFIX)objdir=$(DEPTH) \
|
|
|
|
$(DEHYDRA_ARG_PREFIX)dehydra-modules=$(subst $(NULL) ,$(COMMA),$(strip $(DEHYDRA_MODULES))) \
|
|
|
|
$(DEHYDRA_ARG_PREFIX)treehydra-modules=$(subst $(NULL) ,$(COMMA),$(strip $(TREEHYDRA_MODULES))) \
|
2008-12-02 19:46:37 +00:00
|
|
|
$(NULL)
|
|
|
|
|
2010-08-19 01:06:05 +00:00
|
|
|
DEHYDRA_FLAGS = -fplugin=$(DEHYDRA_PATH) $(DEHYDRA_ARGS)
|
2008-12-02 19:46:37 +00:00
|
|
|
|
|
|
|
ifdef DEHYDRA_PATH
|
|
|
|
OS_CXXFLAGS += $(DEHYDRA_FLAGS)
|
|
|
|
endif
|