Prepare for sytematic checking of UMC with new visibility rules.
This commit is contained in:
parent
685965c5f1
commit
8a48889b2e
1 changed files with 14 additions and 8 deletions
|
@ -1,11 +1,17 @@
|
|||
# Recipes for various sanity checks.
|
||||
#
|
||||
# Hack this if our location in the Wesnoth source tree changes
|
||||
# Hack this if our location in the Wesnoth source tree changes.
|
||||
# It needs to point to the top-level directory, e.g. with data/images/sounds
|
||||
# directly beneath it.
|
||||
TOPDIR = ../../
|
||||
# Define this to point to a local copy of UMC to run checks on.
|
||||
# Note, this needs to expand to a list with one subdirectory per UMC campaign,
|
||||
# otherwise the visibility checks aren't going to work right.
|
||||
# UMC = ../../../umc/*
|
||||
# References to terrain graphics go through so many layers of nasty
|
||||
# opaque macros that trying to reference-check them is hopeless.
|
||||
# So suppress reporting them unused even if they seem to have
|
||||
# no references.
|
||||
# no references. Likewise for resources used only by the C++ GUI.
|
||||
FAKE = --force-used "(terrain|buttons|cursors|cursors-bw|menu|icons)/"
|
||||
# Suppress meaningless errors about castle graphics and about resources
|
||||
# used only by the GUI code in C++
|
||||
|
@ -16,27 +22,27 @@ EXCLUDE = --exclude ".dirstamp|po/|translations/|exploder/|castle-cutter/|UI/|tu
|
|||
|
||||
unresolved:
|
||||
@echo "# Report on unresolved macro calls and resource references"
|
||||
@./macroscope --unresolved $(EXCLUDE) $(TOPDIR)
|
||||
@./macroscope --unresolved $(EXCLUDE) $(TOPDIR) $(UMC)
|
||||
|
||||
all:
|
||||
@echo "# Report on usage of all macros and resources"
|
||||
@./macroscope --crossreference $(EXCLUDE) $(TOPDIR)
|
||||
@./macroscope --crossreference $(EXCLUDE) $(TOPDIR) $(UMC)
|
||||
|
||||
utils-unused:
|
||||
@echo "# Report on unused utility macros"
|
||||
@./macroscope --crossreference --from $(TOPDIR)data/utils --refcount 0 $(FAKE) $(EXCLUDE) $(TOPDIR)
|
||||
@./macroscope --crossreference --from $(TOPDIR)data/utils --refcount 0 $(FAKE) $(EXCLUDE) $(TOPDIR) $(UMC)
|
||||
|
||||
all-unused:
|
||||
@echo "# Report on unused resource files"
|
||||
@./macroscope --crossreference --refcount 0 $(FAKE) $(EXCLUDE) $(TOPDIR)
|
||||
@./macroscope --crossreference --refcount 0 $(FAKE) $(EXCLUDE) $(TOPDIR) $(UMC)
|
||||
|
||||
utils-macros:
|
||||
@echo "# Report on usage of utility macros"
|
||||
@./macroscope --crossreference --from $(TOPDIR)data/utils $(EXCLUDE) $(TOPDIR)
|
||||
@./macroscope --crossreference --from $(TOPDIR)data/utils $(EXCLUDE) $(TOPDIR) $(UMC)
|
||||
|
||||
collisions:
|
||||
@echo "# Report on duplicate resource files."
|
||||
@./macroscope --collisions $(EXCLUDE) $(TOPDIR)
|
||||
@./macroscope --collisions $(EXCLUDE) $(TOPDIR) $(UMC)
|
||||
|
||||
# Report a list of symbols and resources defined in mainline.
|
||||
definitions:
|
||||
|
|
Loading…
Add table
Reference in a new issue