mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Deploy some Qt plugins alongside the binary
Only implemented for Windows for now. On Mac, macdeployqt copies all imageformat plugins on its own. Signed-off-by: Thiago Macieira <thiago@macieira.org>
This commit is contained in:
parent
245e29a72e
commit
603d65c961
2 changed files with 8 additions and 1 deletions
|
@ -45,7 +45,7 @@ mac {
|
|||
|
||||
qt_conf.commands = echo \'[Paths]\' > $@
|
||||
qt_conf.commands += $${nltab}echo \'Prefix=.\' >> $@
|
||||
qt_conf.commands += $${nltab}echo \'Plugins=plugins\' >> $@
|
||||
qt_conf.commands += $${nltab}echo \'Plugins=.\' >> $@
|
||||
qt_conf.target = $$PWD/packaging/windows/qt.conf
|
||||
install.depends += qt_conf
|
||||
|
||||
|
@ -53,6 +53,12 @@ mac {
|
|||
#!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)
|
||||
|
||||
for(plugin, $$list($$DEPLOYMENT_PLUGIN)) {
|
||||
CONFIG(debug, debug|release): dlls.commands += $$[QT_INSTALL_PLUGINS]/$${plugin}d4.dll
|
||||
else: dlls.commands += $$[QT_INSTALL_PLUGINS]/$${plugin}4.dll
|
||||
}
|
||||
|
||||
dlls.commands += $$LIBS
|
||||
dlls.commands += | while read name; do $(INSTALL_FILE) \$\$name $$PWD/$$WINDOWSSTAGING; done
|
||||
dlls.depends = $(DESTDIR_TARGET)
|
||||
|
|
|
@ -136,6 +136,7 @@ MANPAGE = subsurface.1
|
|||
XSLT_FILES = xslt
|
||||
DOC_FILES = $$OUT_PWD/Documentation/user-manual.html Documentation/images
|
||||
MARBLEDIR = marbledata/maps
|
||||
DEPLOYMENT_PLUGIN += imageformats/qjpeg
|
||||
|
||||
# This information will go into the Windows .rc file and linked into the .exe
|
||||
QMAKE_TARGET_COMPANY = subsurface team
|
||||
|
|
Loading…
Add table
Reference in a new issue