diff options
| author | Christian Kandeler <christian.kandeler@digia.com> | 2012-11-28 11:54:46 +0100 |
|---|---|---|
| committer | Joerg Bornemann <joerg.bornemann@digia.com> | 2012-11-29 14:43:08 +0100 |
| commit | db19dd50d435cfba1b25ebcda613df8839b9b7e3 (patch) | |
| tree | 5395691ffe928f374f7491ba004ef24b8b139249 /src/lib/lib.pro | |
| parent | 87e31015d671e324e699f8bfc9a9e40f126fe393 (diff) | |
| download | qbs-db19dd50d435cfba1b25ebcda613df8839b9b7e3.tar.gz | |
Reduce compile dependencies.
While it seems elegant at first glance to do typedefs in class scope, it
has one serious drawback: Forward declarations become impossible unless
they use the non-typedef'ed type name, which defeats the purpose. As a
result, dozens of headers currently include language.h and buildgraph.h,
even though they technically don't have to.
Fix this by introducing special forward-declaring headers and doing the
typedefs there, outside the class scope. Now changes to header files
included in language.h or buildgraph.h don't ripple through half the
project anymore.
Along the way, also remove unneeded and potentially harmful INCLUDEPATH
statements from various pri files.
Change-Id: Ib50db850876955216db7f39b6099c32d1239092b
Reviewed-by: Joerg Bornemann <joerg.bornemann@digia.com>
Diffstat (limited to 'src/lib/lib.pro')
| -rw-r--r-- | src/lib/lib.pro | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/lib/lib.pro b/src/lib/lib.pro index 65c17f1c1..f157d96ca 100644 --- a/src/lib/lib.pro +++ b/src/lib/lib.pro @@ -2,6 +2,7 @@ QT = core script greaterThan(QT_MAJOR_VERSION, 4): QT += concurrent TEMPLATE = lib DESTDIR = ../../lib +INCLUDEPATH += $$PWD TARGET = qbscore CONFIG += static depend_includepath |
