modular configure checks with cmake
Tanner Lovelace
clubjuggler at gmail.com
Tue Mar 28 23:38:42 CEST 2006
On 3/28/06, Alexander Neundorf <neundorf at kde.org> wrote:
> Maybe somebody could write a script which checks which compiler definitions
> are used in which files ?
Here's a really ugly perl script that traverses a set of directories and
pulls out HAVE_* symbols from .h/.c/.cpp files and then prints out what
files they occur in. Call it like this
% find-config-symbols.pl kdelibs
Here's sample output run against the dcop directory:
% find-source-files.pl dcop
HAVE_CONFIG_H
dcop/dcopserver_shutdown.c
dcop/dcopserver_shutdown_win.cpp
HAVE_LIMITS_H
dcop/dcopserver.cpp
HAVE_MKSTEMPS
dcop/dcopserver.cpp
HAVE_SYS_PARAM_H
dcop/dcopserver.cpp
HAVE_SYS_SELECT_H
dcop/dcopserver_shutdown.c
HAVE_SYS_STAT_H
dcop/dcopserver.cpp
HAVE_SYS_TYPES_H
dcop/KDE-ICE/Xtrans.h
dcop/dcopserver_shutdown.c
dcop/dcopserver_shutdown_win.cpp
Hope this is useful. Note that running it against all of kdelibs
will probably take a long time (10-20 minutes, I'd estimate).
Cheers,
Tanner
--
Tanner Lovelace
clubjuggler at gmail dot com
http://wtl.wayfarer.org/
(fieldless) In fess two roundels in pale, a billet fesswise and an
increscent, all sable.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: find-config-symbols.pl
Type: text/x-perl-script
Size: 1596 bytes
Desc: not available
Url : http://mail.kde.org/pipermail/kde-buildsystem/attachments/20060328/ed9af4ea/attachment.bin
More information about the Kde-buildsystem
mailing list