1INCLUDEMOCS(1)        User Contributed Perl Documentation       INCLUDEMOCS(1)
2
3
4

NAME

6       includemocs -- handle mocifyable headers, whose .moc file is nowhere
7       included.
8

SYNOPSIS

10               includemocs
11

DESCRIPTION

13       Header files declaring a QObject descendant have to be run through moc
14       to produce a .moc file.  This .moc file has to be compiled, for which
15       two possibilities exists: compile it separately, or #include it in the
16       C++ file implementing that above mentioned class.  The latter is more
17       efficient in term of compilation speed.
18
19       This script searches in the current directory and its subdirs for
20       header files declaring a QObject descendant class.  If it finds some,
21       it looks, if there is a C++ file containing an '#include' for the gen‐
22       erated .moc file.  If thats not the case, it tries to guess into which
23       C++ file that '#include' is placed best (based on the filename).  If it
24       fails to guess a proper place, it mentions that.
25
26       On stdout commands are ouput, suitable for a shell, which, when evalu‐
27       ated, add the suggested '#include' at the end of the files.
28
29       On stderr some informational messages are printed.
30

EXAMPLES

32               cd kdebase ; includemocs
33               cd kdebase ; `eval includemocs 2> /dev/null`
34

AUTHOR

36       Michael Matz <matz@ifh.de>
37
38
39
40perl v5.8.8                       2006-01-19                    INCLUDEMOCS(1)
Impressum