On Thu, Feb 5, 2009 at 4:21 PM, James Vega <[email protected]> wrote: > > On Thu, Feb 05, 2009 at 04:04:58PM -0800, Peter Kasting wrote: >> On Thu, Feb 5, 2009 at 4:02 PM, Erik Kay <[email protected]> wrote: >> >> > $ scons_deps -v <target> >> > foo.c:inc.h:a.h >> > foo.c:inc.h:b.h >> > bar.c:bar.h >> > etc. >> > >> > Does such a script (or something similar) exist? From what you're >> > saying, I'm assuming it's easy to write. >> >> >> Note that you could always tell MSVC to turn on printing #include chains for >> each compiled file, then compile the various files you're interested in. >> From this you could probably create a reverse-mapping if you wanted... > > The same can be done with gcc/g++ by passing the -H argument when > compiling.
I did the same with -MM and parsed the results. Assuming I did it right, the average .cc file in src/chrome/ includes about 135 header files. The files with the most number of includes: 440 about_chrome_view.o 470 options_window_view.o 481 history_ui.o 483 user_data_dir_dialog.o 544 dns_host_info_unittest.o 601 aero_glass_non_client_view.o --~--~---------~--~----~------------~-------~--~----~ Chromium Developers mailing list: [email protected] View archives, change email options, or unsubscribe: http://groups.google.com/group/chromium-dev -~----------~----~----~----~------~----~------~--~---
