Make use of features from newly-released graph-includes 0.2:

excuses for abusive deps.  Also add a couple of additional source
files into groups
This commit is contained in:
Yann Dirson 2005-03-31 22:36:07 +00:00
parent ead8df8dd8
commit ea39729456
2 changed files with 15 additions and 5 deletions

View file

@ -105,6 +105,6 @@ EXTRA_DIST = config/config.rpath
# latest graph-includes.pl can be found currently at http://ydirson.free.fr/soft/wesnoth/graphs/
wesnoth-deps.dot:
(cd $(top_srcdir) && graph-includes --verbose --class wesnoth --group 1-1 \
`find src -name '*.[ch]pp'|sed 's,\./,,'`) > $@
--prefixstrip src/ `find src -name '*.[ch]pp'`) > $@
%.ps: %.dot
dot -Tps $< > $@

View file

@ -27,14 +27,18 @@ sub filelabel {
return $1;
} elsif ($file =~ m!^(mapgen|mapgen_dialog|cavegen|map_create)\..*!) {
return 'mapcreator';
} elsif ($file =~ m!^(array|astarnode|config|filesystem|game_config|gettext|global|language|log|map|pathfind|pathutils|race|random|scoped_resource|terrain|thread|unit|util|variable|wassert|(.*/xcoll))\..*!) {
} elsif ($file =~ m!^(array|astarnode|config|filesystem|game_config|gettext|global|language|log|map|pathfind|pathutils|race|random|scoped_resource|terrain|thread|tstring|unit|unit_types|util|variable|wassert|(.*/xcoll))\..*!) {
return 'core';
} elsif ($file =~ m!^(clipboard|cursor|font|image|sdl_utils|tooltips|video)\..*!) {
return 'graphics';
} elsif ($file =~ m!^(events|preferences|show_dialog)\..*!) {
return 'guicore';
} elsif ($file =~ m!^(about|builder|display|events|preferences|show_dialog|sound|theme)\..*!) {
return 'uicore';
} elsif ($file =~ m!^(game|help|titlescreen)\..*!) {
return 'gameclient';
} elsif ($file =~ m!^(editor|server|serialization|widgets)/.*!) {
return $1;
} else {
return '<' . $self->filelabel($file, $level - 1) . '>';
}
}
return undef;
@ -51,7 +55,7 @@ sub defaultcolors {
graphics => 'peachpuff',
widgets => 'linen',
guicore => 'lavenderblush',
uicore => 'lavenderblush',
multiplayer => 'palegreen',
@ -61,4 +65,10 @@ sub defaultcolors {
return @colors;
}
sub ignored_deps {
return {'src/font.cpp' => {'src/team.hpp' => 'team colors' },
'src/language.cpp' => {'src/preferences.hpp' => 'split out graph. stuff from preferences'},
};
}
1;