summaryrefslogtreecommitdiff
path: root/qtcreator.pri
diff options
context:
space:
mode:
authorcon <qtc-committer@nokia.com>2009-05-11 12:37:05 +0200
committercon <qtc-committer@nokia.com>2009-05-11 12:38:20 +0200
commit643d4b94f41030781dd6e0f4c09464bc7c8557ff (patch)
treee26fca2de90dfce1f57f76e868d51eeb455edc86 /qtcreator.pri
parent530f1bbb33858b4b3fdd00dbd00ecd08fde00f05 (diff)
downloadqt-creator-643d4b94f41030781dd6e0f4c09464bc7c8557ff.tar.gz
Make it possible to override IDE_BUILD_TREE.
This is helpfull for building plugins from outside the QtCreator source tree.
Diffstat (limited to 'qtcreator.pri')
-rw-r--r--qtcreator.pri10
1 files changed, 6 insertions, 4 deletions
diff --git a/qtcreator.pri b/qtcreator.pri
index 0333eca631..b2fe226d17 100644
--- a/qtcreator.pri
+++ b/qtcreator.pri
@@ -47,10 +47,12 @@ equals(TEST, 1) {
}
IDE_SOURCE_TREE = $$PWD
-sub_dir = $$_PRO_FILE_PWD_
-sub_dir ~= s,^$$re_escape($$PWD),,
-IDE_BUILD_TREE = $$cleanPath($$OUT_PWD)
-IDE_BUILD_TREE ~= s,$$re_escape($$sub_dir)$,,
+isEmpty(IDE_BUILD_TREE) {
+ sub_dir = $$_PRO_FILE_PWD_
+ sub_dir ~= s,^$$re_escape($$PWD),,
+ IDE_BUILD_TREE = $$cleanPath($$OUT_PWD)
+ IDE_BUILD_TREE ~= s,$$re_escape($$sub_dir)$,,
+}
IDE_APP_PATH = $$IDE_BUILD_TREE/bin
macx {
IDE_APP_TARGET = QtCreator