summaryrefslogtreecommitdiffstats
path: root/subsurface-install.pri
diff options
context:
space:
mode:
authorGravatar Thiago Macieira <thiago@macieira.org>2013-10-08 21:07:43 -0700
committerGravatar Thiago Macieira <thiago@macieira.org>2013-10-08 23:29:43 -0700
commit245e29a72e47177b3337f7046b6bb0702888e3d8 (patch)
treed6b006b0aecec3f700c5b371885df99291b55a7f /subsurface-install.pri
parent9294d5984c2f0f052015573a3411de76f71b235f (diff)
downloadsubsurface-245e29a72e47177b3337f7046b6bb0702888e3d8.tar.gz
Use the $PATH environment variable to pass extra dirs for DLLs
Unix developers, look away... this is how it's done on Windows: the binary loader searches $PATH for the DLLs, so let's reuse the same variable. This simplifies the command-line a little. Signed-off-by: Thiago Macieira <thiago@macieira.org>
Diffstat (limited to 'subsurface-install.pri')
-rw-r--r--subsurface-install.pri2
1 files changed, 1 insertions, 1 deletions
diff --git a/subsurface-install.pri b/subsurface-install.pri
index 37c8e077f..c71ae0ada 100644
--- a/subsurface-install.pri
+++ b/subsurface-install.pri
@@ -51,8 +51,8 @@ mac {
!win32-msvc* {
#!equals($$QMAKE_HOST.os, "Windows"): dlls.commands += OBJDUMP=`$(CC) -dumpmachine`-objdump
+ dlls.commands += PATH=\$\$PATH:`$(CC) -print-search-dirs | $(SED) -nE \'/^libraries: =/{s///;s,/lib/?(:|\\\$\$),/bin\\1,g;p;q;}\'`
dlls.commands += perl $$PWD/scripts/win-ldd.pl $(DESTDIR_TARGET)
- dlls.commands += `$(CC) -print-search-dirs | $(SED) -n \'/^libraries: =/{s///;s/:/\\n/g;p;q;}\' | $(SED) -E \'s,/lib/?\\\$\$,/bin,\'`
dlls.commands += $$LIBS
dlls.commands += | while read name; do $(INSTALL_FILE) \$\$name $$PWD/$$WINDOWSSTAGING; done
dlls.depends = $(DESTDIR_TARGET)