diff options
author | Oswald Buddenhagen <oswald.buddenhagen@nokia.com> | 2009-03-27 20:56:38 +0100 |
---|---|---|
committer | Oswald Buddenhagen <oswald.buddenhagen@nokia.com> | 2009-03-27 20:56:38 +0100 |
commit | 4a1acffb2913895968e445ab093fae5d4edbd3e3 (patch) | |
tree | 320b9df24cbd22d00ca8de4d3b8c623463f65255 /src/app/app.pro | |
parent | c30420af7ae0d86925f8973648436b33265c9682 (diff) |
install the wrapper script into both the builddir and the installdir
Diffstat (limited to 'src/app/app.pro')
-rw-r--r-- | src/app/app.pro | 46 |
1 files changed, 29 insertions, 17 deletions
diff --git a/src/app/app.pro b/src/app/app.pro index d1f917196d..ee298d521d 100644 --- a/src/app/app.pro +++ b/src/app/app.pro @@ -3,22 +3,6 @@ IDE_BUILD_TREE = $$OUT_PWD/../../ include(../qworkbench.pri) include(../shared/qtsingleapplication/qtsingleapplication.pri) -macx { - CONFIG(debug, debug|release):LIBS *= -lExtensionSystem_debug -lAggregation_debug - else:LIBS *= -lExtensionSystem -lAggregation -} -win32 { - CONFIG(debug, debug|release):LIBS *= -lExtensionSystemd -lAggregationd - else:LIBS *= -lExtensionSystem -lAggregation -} -unix:!macx { - LIBS *= -lExtensionSystem -lAggregation - - target.path = /bin - INSTALLS += target - -} - TEMPLATE = app TARGET = $$IDE_APP_TARGET DESTDIR = ../../bin @@ -36,5 +20,33 @@ macx { ICON = qtcreator.icns } -include(../../share/share.pri) +macx { + CONFIG(debug, debug|release):LIBS *= -lExtensionSystem_debug -lAggregation_debug + else:LIBS *= -lExtensionSystem -lAggregation +} +win32 { + CONFIG(debug, debug|release):LIBS *= -lExtensionSystemd -lAggregationd + else:LIBS *= -lExtensionSystem -lAggregation +} +unix:!macx { + LIBS *= -lExtensionSystem -lAggregation + + # make sure the wrapper is in place + !exists($$OUT_PWD/app.pro) { + # we are shadow build + COPYSRC = $$PWD/$$DESTDIR/$$IDE_APP_WRAPPER + COPYDEST = $$OUT_PWD/$$DESTDIR/$$IDE_APP_WRAPPER + win32:COPYSRC ~= s|/+|\| + win32:COPYDEST ~= s|/+|\| + unix:SEPARATOR = ; + win32:SEPARATOR = & + QMAKE_POST_LINK += $${QMAKE_COPY_FILE} $${COPYSRC} $${COPYDEST} $$SEPARATOR + } + + target.files += $$OUT_PWD/$$DESTDIR/$$IDE_APP_WRAPPER + target.path = /bin + INSTALLS += target + +} +include(../../share/share.pri) |