summaryrefslogtreecommitdiffstats
path: root/subsurface-install.pri
diff options
context:
space:
mode:
authorGravatar Lubomir I. Ivanov <neolit123@gmail.com>2013-10-13 16:20:31 +0300
committerGravatar Dirk Hohndel <dirk@hohndel.org>2013-10-13 11:31:14 -0700
commitd23266ad5119264b0e8c8de0d9edd76c491e0d84 (patch)
treeb0e27867fd43fe11ff39a644c17dc44b8dac683e /subsurface-install.pri
parentb589dedf3c8092ec4a604893aac994ae759cf42a (diff)
downloadsubsurface-d23266ad5119264b0e8c8de0d9edd76c491e0d84.tar.gz
subsurface-install.pri: attempt to fix the perl command line
\$^ or $(DESTDIR_TARGET) do not expand for some reason, but also we cannot use $$DESTDIR, $$TARGET, or $$DESTDIR_TARGET because these are empty. So what we use is a hardcoded path (debug/release) and a target with an .exe suffix on win32. Signed-off-by: Lubomir I. Ivanov <neolit123@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'subsurface-install.pri')
-rw-r--r--subsurface-install.pri5
1 files changed, 4 insertions, 1 deletions
diff --git a/subsurface-install.pri b/subsurface-install.pri
index eae2a661c..38b344387 100644
--- a/subsurface-install.pri
+++ b/subsurface-install.pri
@@ -57,7 +57,10 @@ mac {
!win32-msvc* {
#!equals($$QMAKE_HOST.os, "Windows"): dlls.commands += OBJDUMP=`$$QMAKE_CC -dumpmachine`-objdump
dlls.commands += PATH=\$\$PATH:`$$QMAKE_CC -print-search-dirs | sed -nE \'/^libraries: =/{s///;s,/lib/?(:|\$\$),/bin\\1,g;p;q;}\'`
- dlls.commands += perl $$PWD/scripts/win-ldd.pl \$^
+ dlls.commands += perl $$PWD/scripts/win-ldd.pl
+ equals(QMAKE_HOST.os, "Windows"): EXE_SUFFIX = .exe
+ CONFIG(debug, debug|release): dlls.commands += $$PWD/debug/subsurface$$EXE_SUFFIX
+ else: dlls.commands += $$PWD/release/$$TARGET$$EXE_SUFFIX
for(plugin, $$list($$DEPLOYMENT_PLUGIN)) {
CONFIG(debug, debug|release): dlls.depends += $$[QT_INSTALL_PLUGINS]/$${plugin}d4.dll