2008-12-02 11:46:37 -08: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 08:40:04 -08:00
|
|
|
DEHYDRA_SCRIPT = $(topsrcdir)/config/static-checking.js
|
2008-12-02 11:46:37 -08:00
|
|
|
|
|
|
|
DEHYDRA_MODULES = \
|
|
|
|
$(topsrcdir)/xpcom/analysis/final.js \
|
2009-01-12 11:21:11 -08:00
|
|
|
$(topsrcdir)/layout/generic/frame-verify.js \
|
2008-12-02 11:46:37 -08:00
|
|
|
$(NULL)
|
|
|
|
|
|
|
|
TREEHYDRA_MODULES = \
|
|
|
|
$(topsrcdir)/xpcom/analysis/outparams.js \
|
|
|
|
$(topsrcdir)/xpcom/analysis/stack.js \
|
|
|
|
$(topsrcdir)/xpcom/analysis/flow.js \
|
2008-12-11 08:40:04 -08:00
|
|
|
$(topsrcdir)/js/src/jsstack.js \
|
2008-12-02 11:46:37 -08:00
|
|
|
$(NULL)
|
|
|
|
|
|
|
|
DEHYDRA_ARGS = \
|
|
|
|
--topsrcdir=$(topsrcdir) \
|
|
|
|
--objdir=$(DEPTH) \
|
|
|
|
--dehydra-modules=$(subst $(NULL) ,$(COMMA),$(strip $(DEHYDRA_MODULES))) \
|
|
|
|
--treehydra-modules=$(subst $(NULL) ,$(COMMA),$(strip $(TREEHYDRA_MODULES))) \
|
|
|
|
$(NULL)
|
|
|
|
|
|
|
|
DEHYDRA_FLAGS = -fplugin=$(DEHYDRA_PATH) -fplugin-arg='$(DEHYDRA_SCRIPT) $(DEHYDRA_ARGS)'
|
|
|
|
|
|
|
|
ifdef DEHYDRA_PATH
|
|
|
|
OS_CXXFLAGS += $(DEHYDRA_FLAGS)
|
|
|
|
endif
|