summaryrefslogtreecommitdiffstats
path: root/mkspecs/features/include_source_dir.prf
diff options
context:
space:
mode:
authorOswald Buddenhagen <oswald.buddenhagen@nokia.com>2009-04-06 17:39:03 (GMT)
committerOswald Buddenhagen <oswald.buddenhagen@nokia.com>2009-04-07 08:04:23 (GMT)
commit3279b07302fde0eb14f9b197c9ad2e14d512817e (patch)
tree9f43592d3e1cfc2a9486c0104da6b6935f544b49 /mkspecs/features/include_source_dir.prf
parent730b936b53633891e2b8c505a3ff4c93209e7ae8 (diff)
downloadQt-3279b07302fde0eb14f9b197c9ad2e14d512817e.zip
Qt-3279b07302fde0eb14f9b197c9ad2e14d512817e.tar.gz
Qt-3279b07302fde0eb14f9b197c9ad2e14d512817e.tar.bz2
make shadow builds with default moc/ui dirs work again
append the source dir to the include path, but only after the dirs with the generated files. this seems to have worked before only accidentally: the unqualified default dirs were expanded to the source dir instead of the build dir, but the build dir is added implicitly by default, so things magically worked. now that we qualify the moc/ui dirs, projects relying on the strange side effect suddenly break. we should probably add the source dir to the include path by default, but this coupling to uic/moc is closer to the historical behavior and thus should be safer. Reviewed-by: mariusSO
Diffstat (limited to 'mkspecs/features/include_source_dir.prf')
-rw-r--r--mkspecs/features/include_source_dir.prf1
1 files changed, 1 insertions, 0 deletions
diff --git a/mkspecs/features/include_source_dir.prf b/mkspecs/features/include_source_dir.prf
new file mode 100644
index 0000000..8794998
--- /dev/null
+++ b/mkspecs/features/include_source_dir.prf
@@ -0,0 +1 @@
+!equals(_PRO_FILE_PWD_, $$OUT_PWD):INCLUDEPATH *= .