forked from qt-creator/qt-creator
automate setting IDE_BUILD_TREE
This commit is contained in:
@@ -1,5 +1,3 @@
|
||||
IDE_BUILD_TREE = $$OUT_PWD/..
|
||||
|
||||
include(../qtcreator.pri)
|
||||
|
||||
TEMPLATE = app
|
||||
|
||||
+5
-6
@@ -1,5 +1,3 @@
|
||||
IDE_SOURCE_TREE = $$PWD
|
||||
|
||||
defineReplace(cleanPath) {
|
||||
win32:1 ~= s|\\\\|/|g
|
||||
contains(1, ^/.*):pfx = /
|
||||
@@ -35,10 +33,11 @@ equals(TEST, 1) {
|
||||
DEFINES += WITH_TESTS
|
||||
}
|
||||
|
||||
isEmpty(IDE_BUILD_TREE) {
|
||||
error("qtcreator.pri: including file must define IDE_BUILD_TREE (probably a relative path)")
|
||||
}
|
||||
IDE_BUILD_TREE = $$cleanPath($$IDE_BUILD_TREE)
|
||||
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)$,,
|
||||
macx {
|
||||
IDE_APP_TARGET = QtCreator
|
||||
IDE_LIBRARY_PATH = $$IDE_BUILD_TREE/bin/$${IDE_APP_TARGET}.app/Contents/PlugIns
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
IDE_BUILD_TREE = $$OUT_PWD/../..
|
||||
|
||||
include(../../qtcreator.pri)
|
||||
|
||||
win32:i_flag = i
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
IDE_BUILD_TREE = $$OUT_PWD/../../..
|
||||
include(../../../qtcreator.pri)
|
||||
|
||||
TRANSLATIONS = de ja
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
IDE_BUILD_TREE = $$OUT_PWD/../..
|
||||
|
||||
include(../../qtcreator.pri)
|
||||
include(../shared/qtsingleapplication/qtsingleapplication.pri)
|
||||
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
IDE_BUILD_TREE = $$OUT_PWD/../../..
|
||||
include(../../../qtcreator.pri)
|
||||
|
||||
TEMPLATE = app
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
include(../../qworkbenchlibrary.pri)
|
||||
|
||||
TEMPLATE = lib
|
||||
TARGET = DebuggingHelper
|
||||
CONFIG += shared
|
||||
DESTDIR = ../../../bin
|
||||
include(../../qworkbenchlibrary.pri)
|
||||
|
||||
linux-* {
|
||||
CONFIG -= release
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
IDE_BUILD_TREE = $$OUT_PWD/../../..
|
||||
include(../qtcreator.pri)
|
||||
|
||||
win32 {
|
||||
|
||||
@@ -1,6 +1,3 @@
|
||||
isEmpty(IDE_BUILD_TREE) {
|
||||
IDE_BUILD_TREE = $$OUT_PWD/../../..
|
||||
}
|
||||
include(../qtcreator.pri)
|
||||
|
||||
isEmpty(PROVIDER) {
|
||||
|
||||
Reference in New Issue
Block a user