1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-23 17:34:34 +03:00
Commit Graph

5 Commits

Author SHA1 Message Date
Andrew Tridgell
6eb839cd16 s4-script: added a --waf option to minimal_includes.pl
This takes advantage of the new waf target syntax
2010-05-04 11:45:43 +02:00
Andrew Tridgell
8585cf1a78 s4-script: cleanup tmp files in minimial_includes.pl
also changes to use perl fns, instead of shell
2009-10-20 16:04:36 +11:00
Andrew Tridgell
2b9818ce0f scripts: handle non-C files in minimal_includes.pl 2009-10-12 13:31:34 +11:00
Andrew Tridgell
c35bbad63e s4-scripts: make minimal_includes handle our -I overrides 2009-09-19 14:11:57 -07:00
Andrew Tridgell
ecbde2c1c6 r5321: added a program that works out the minimal set of #include lines
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 348a5f1d4d)
2007-10-10 13:09:41 -05:00