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:
parent
ead8df8dd8
commit
ea39729456
2 changed files with 15 additions and 5 deletions
|
@ -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/
|
# latest graph-includes.pl can be found currently at http://ydirson.free.fr/soft/wesnoth/graphs/
|
||||||
wesnoth-deps.dot:
|
wesnoth-deps.dot:
|
||||||
(cd $(top_srcdir) && graph-includes --verbose --class wesnoth --group 1-1 \
|
(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
|
%.ps: %.dot
|
||||||
dot -Tps $< > $@
|
dot -Tps $< > $@
|
||||||
|
|
|
@ -27,14 +27,18 @@ sub filelabel {
|
||||||
return $1;
|
return $1;
|
||||||
} elsif ($file =~ m!^(mapgen|mapgen_dialog|cavegen|map_create)\..*!) {
|
} elsif ($file =~ m!^(mapgen|mapgen_dialog|cavegen|map_create)\..*!) {
|
||||||
return 'mapcreator';
|
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';
|
return 'core';
|
||||||
} elsif ($file =~ m!^(clipboard|cursor|font|image|sdl_utils|tooltips|video)\..*!) {
|
} elsif ($file =~ m!^(clipboard|cursor|font|image|sdl_utils|tooltips|video)\..*!) {
|
||||||
return 'graphics';
|
return 'graphics';
|
||||||
} elsif ($file =~ m!^(events|preferences|show_dialog)\..*!) {
|
} elsif ($file =~ m!^(about|builder|display|events|preferences|show_dialog|sound|theme)\..*!) {
|
||||||
return 'guicore';
|
return 'uicore';
|
||||||
|
} elsif ($file =~ m!^(game|help|titlescreen)\..*!) {
|
||||||
|
return 'gameclient';
|
||||||
} elsif ($file =~ m!^(editor|server|serialization|widgets)/.*!) {
|
} elsif ($file =~ m!^(editor|server|serialization|widgets)/.*!) {
|
||||||
return $1;
|
return $1;
|
||||||
|
} else {
|
||||||
|
return '<' . $self->filelabel($file, $level - 1) . '>';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return undef;
|
return undef;
|
||||||
|
@ -51,7 +55,7 @@ sub defaultcolors {
|
||||||
|
|
||||||
graphics => 'peachpuff',
|
graphics => 'peachpuff',
|
||||||
widgets => 'linen',
|
widgets => 'linen',
|
||||||
guicore => 'lavenderblush',
|
uicore => 'lavenderblush',
|
||||||
|
|
||||||
multiplayer => 'palegreen',
|
multiplayer => 'palegreen',
|
||||||
|
|
||||||
|
@ -61,4 +65,10 @@ sub defaultcolors {
|
||||||
return @colors;
|
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;
|
1;
|
||||||
|
|
Loading…
Add table
Reference in a new issue