summaryrefslogtreecommitdiff
path: root/source4/script/minimal_includes.pl
AgeCommit message (Collapse)AuthorFilesLines
2010-05-04s4-script: added a --waf option to minimal_includes.plAndrew Tridgell1-0/+7
This takes advantage of the new waf target syntax
2009-10-20s4-script: cleanup tmp files in minimial_includes.plAndrew Tridgell1-2/+6
also changes to use perl fns, instead of shell
2009-10-12scripts: handle non-C files in minimal_includes.plAndrew Tridgell1-1/+1
2009-09-19s4-scripts: make minimal_includes handle our -I overridesAndrew Tridgell1-10/+20
2007-10-10r5321: added a program that works out the minimal set of #include linesAndrew Tridgell1-0/+150
needed for a C file in Samba. It tries compiling without each #include line in turn, and looks for any changes in the compiler output. Note that the output is not guaranteed correct, it might be that an include is needed onlyu on some platforms. To cope with this, it doesn't consider lines with the word "needed" on them. So add a comment like this: #include "foo.h" /* needed by systems without kerberos */ and it will know to skip it It also skips any include lines in a #if section. If you are brave, you can give it the option --remove and it will remove lines it thinks are not needed. Please review carefully before committing the results, and watch the build farm for breakage. (This used to be commit 348a5f1d4d272fffaad7680c8d24ef59829dbea2)