QML Observer: reverted hack, fixed compilation for ibmake

see 576642a76a for details
This commit is contained in:
Lasse Holmstedt
2010-08-04 18:03:47 +02:00
parent 719b775792
commit 5b4a85dffe
4 changed files with 19 additions and 8 deletions
+13
View File
@@ -15,6 +15,19 @@ defineReplace(targetPath) {
return($$replace(1, /, $$QMAKE_DIR_SEP))
}
defineReplace(qtLibraryName) {
unset(LIBRARY_NAME)
LIBRARY_NAME = $$1
CONFIG(debug, debug|release) {
!debug_and_release|build_pass {
mac:RET = $$member(LIBRARY_NAME, 0)_debug
else:win32:RET = $$member(LIBRARY_NAME, 0)d
}
}
isEmpty(RET):RET = $$LIBRARY_NAME
return($$RET)
}
# For use in custom compilers which just copy files
win32:i_flag = i
defineReplace(stripSrcDir) {
+1 -1
View File
@@ -2,4 +2,4 @@ INCLUDEPATH += $$PWD/include
DEPENDPATH += $$PWD $$PWD/include $$PWD/editor
QT += declarative script
LIBS *= -l$$qtLibraryTarget(QmlJSDebugger)
LIBS *= -l$$qtLibraryName(QmlJSDebugger)
+1 -1
View File
@@ -1 +1 @@
LIBS *= -l$$qtLibraryTarget(Utils)
LIBS *= -l$$qtLibraryName(Utils)
+4 -6
View File
@@ -4,18 +4,16 @@ QT += declarative
include(qml.pri)
SOURCES += main.cpp
include(../../../../qtcreator.pri)
# hack to get qtLibraryTarget macro working
TEMPLATE +=lib
include(../../../libs/qmljsdebugger/qmljsdebugger.pri)
include(../../../libs/utils/utils.pri)
mac {
qmljsLibraryTarget = $$qtLibraryTarget(QmlJSDebugger)
utilsLibraryTarget = $$qtLibraryTarget(Utils)
qmljsLibraryTarget = $$qtLibraryName(QmlJSDebugger)
utilsLibraryTarget = $$qtLibraryName(Utils)
}
TEMPLATE -=lib
include(../../../../qtcreator.pri)
include(../../../private_headers.pri)
DESTDIR = $$IDE_BIN_PATH
include(../../../rpath.pri)