summaryrefslogtreecommitdiffstats
path: root/subsurface-install.pri
diff options
context:
space:
mode:
authorGravatar Thiago Macieira <thiago@macieira.org>2013-10-08 17:47:25 -0700
committerGravatar Thiago Macieira <thiago@macieira.org>2013-10-08 23:29:43 -0700
commit2fedb100ca84a94868e33f871e77b6379c3748c9 (patch)
treef6fa3dd9c18cfb0e815e73400c0d4664132c3103 /subsurface-install.pri
parent57994fa7a19ece18ffbecfabd69216190f62e425 (diff)
downloadsubsurface-2fedb100ca84a94868e33f871e77b6379c3748c9.tar.gz
Add a tool to scan for dependencies on Windows
Similar to ldd on Linux. Signed-off-by: Thiago Macieira <thiago@macieira.org>
Diffstat (limited to 'subsurface-install.pri')
-rw-r--r--subsurface-install.pri15
1 files changed, 10 insertions, 5 deletions
diff --git a/subsurface-install.pri b/subsurface-install.pri
index 585481f62..b8d73785a 100644
--- a/subsurface-install.pri
+++ b/subsurface-install.pri
@@ -39,11 +39,6 @@ mac {
WINDOWSSTAGING = packaging/windows
deploy.path = $$WINDOWSSTAGING
- for(qtlib, $$list(QtCore QtGui QtNetwork QtWebKit QtSvg QtXml QtDeclarative)) {
- CONFIG(debug, debug|release): deploy.files += $$[QT_INSTALL_BINS]/$${qtlib}d4.dll
- else: deploy.files += $$[QT_INSTALL_BINS]/$${qtlib}4.dll
- }
-
deploy.files += $$marbledir.files $$xslt.files $$doc.files
target.path = $$WINDOWSSTAGING
INSTALLS += deploy target
@@ -53,6 +48,16 @@ mac {
qt_conf.commands += $${nltab}echo \'Plugins=plugins\' >> $@
qt_conf.target = $$PWD/packaging/windows/qt.conf
install.depends += qt_conf
+
+ !win32-msvc* {
+ !equals($$QMAKE_HOST.os, "Windows"): dlls.commands += OBJDUMP=`$(CC) -dumpmachine`-objdump
+ 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)
+ install.depends += dlls
+ }
} else {
# Linux install rules
# On Linux, we can count on packagers doing the right thing