1 commit b2d4d498faa3c532372838ffa287906fdafdc3c6
2 Author: Eckhart Koppen <eckhart.koppen@nokia.com>
3 Date: Fri Nov 19 17:31:36 2010 +0200
5 Added -listgen option (not functional!) temporarily
7 diff --git a/qmake/option.cpp b/qmake/option.cpp
8 index 27e7c18..1c52d0f 100644
10 +++ b/qmake/option.cpp
11 @@ -112,6 +112,7 @@ QString Option::mkfile::qmakespec;
12 int Option::mkfile::cachefile_depth = -1;
13 bool Option::mkfile::do_deps = true;
14 bool Option::mkfile::do_mocs = true;
15 +bool Option::mkfile::listgen = false;
16 bool Option::mkfile::do_dep_heuristics = true;
17 bool Option::mkfile::do_preprocess = false;
18 bool Option::mkfile::do_stub_makefile = false;
19 @@ -198,6 +199,7 @@ bool usage(const char *a0)
20 " -nocache Don't use a cache file [makefile mode only]\n"
21 " -nodepend Don't generate dependencies [makefile mode only]\n"
22 " -nomoc Don't generate moc targets [makefile mode only]\n"
23 + " -listgen Lists generated files [makefile mode only]\n"
24 " -nopwd Don't look for files in pwd [project mode only]\n"
26 default_mode(a0) == Option::QMAKE_GENERATE_PROJECT ? " (default)" : "", project_builtin_regx().toLatin1().constData(),
27 @@ -297,6 +299,8 @@ Option::parseCommandLine(int argc, char **argv, int skip)
28 Option::mkfile::do_deps = false;
29 } else if(opt == "nomoc") {
30 Option::mkfile::do_mocs = false;
31 + } else if(opt == "listgen") {
32 + Option::mkfile::listgen = true;
33 } else if(opt == "nocache") {
34 Option::mkfile::do_cache = false;
35 } else if(opt == "createstub") {
36 diff --git a/qmake/option.h b/qmake/option.h
37 index b09ead2..a46d7fb 100644
40 @@ -179,6 +179,7 @@ struct Option
44 + static bool listgen;
45 static bool do_dep_heuristics;
46 static bool do_preprocess;
47 static bool do_stub_makefile;