mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-29 07:42:04 +00:00
87aa20632d
--HG-- extra : rebase_source : 0bcfa5b446d0c19610d9d61dd7e281d3923c8736
30 lines
898 B
Makefile
30 lines
898 B
Makefile
# The entire tree should be subject to static analysis using the XPCOM
|
|
# script. Additional scripts may be added by specific subdirectories.
|
|
|
|
DEHYDRA_SCRIPT = $(topsrcdir)/config/static-checking.js
|
|
|
|
DEHYDRA_MODULES = \
|
|
$(topsrcdir)/xpcom/analysis/final.js \
|
|
$(topsrcdir)/layout/generic/frame-verify.js \
|
|
$(NULL)
|
|
|
|
TREEHYDRA_MODULES = \
|
|
$(topsrcdir)/xpcom/analysis/outparams.js \
|
|
$(topsrcdir)/xpcom/analysis/stack.js \
|
|
$(topsrcdir)/xpcom/analysis/flow.js \
|
|
$(topsrcdir)/js/src/jsstack.js \
|
|
$(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
|