From 62b0c07a93bbf244dbf8ae4bc73f008cfa1fc84d Mon Sep 17 00:00:00 2001 From: TheBloke Date: Mon, 7 Jul 2014 21:39:27 +0100 Subject: Added 'make install' steps in ModOrganizer.pro - Added config to install required libraries to output(d) directory If the user adds a Deploy step, that runs 'jom install', he will have the necessary libraries copied to output(d)\dlls These libraries are - 7z.dll Qt4 Core Declarative Gui Network OpenGL Script Sql Svg Webkit Xml XmlPatterns Different set configured for Qt5, e.g. adding Widgets, Qml, Quick In a debug build, the 'd' DLLs will be used instead. Qt4 libraries are copied from system Qt4 installation directory. This allows the Qt-Creator user to hit "Run" in Qt-C and end up with a complete install, including all DLLs; no manual Exporer copying required. This therefore removes the need for post-build steps 10 & 11 in Readme.txt. Future thought - Update all current POST_LINK (x)copy steps to make install? Fixed DESTDIR in ModOrganizer.pro It was pointing to source/output(d) before, should be ..\output(d) It was not used before so didn't matter, but is now referenced for install. --- src/ModOrganizer.pro | 28 ++++++++++++++++++++++++++-- 1 file changed, 26 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/ModOrganizer.pro b/src/ModOrganizer.pro index 4624ffec..b345d64b 100644 --- a/src/ModOrganizer.pro +++ b/src/ModOrganizer.pro @@ -21,7 +21,31 @@ hookdll.depends = shared organizer.depends = shared uibase plugins loot_cli CONFIG(debug, debug|release) { - DESTDIR = outputd + DESTDIR = $$PWD/../outputd } else { - DESTDIR = output + DESTDIR = $$PWD/../output } + +STATICDATAPATH = $${DESTDIR}\\..\\tools\\static_data\\dlls +DLLSPATH = $${DESTDIR}\\dlls + +otherlibs.path = $$DLLSPATH +otherlibs.files += $${STATICDATAPATH}\\7z.dll + +qtlibs.path = $$DLLSPATH + +equals(QT_MAJOR_VERSION, 5) { + QTLIBNAMES += Core Gui Network OpenGL Script Sql Svg Qml Quick Webkit Widgets Xml XmlPatterns +} else { + QTLIBNAMES += Core Declarative Gui Network OpenGL Script Sql Svg Webkit Xml XmlPatterns +} + +QTLIBSUFFIX = $${QT_MAJOR_VERSION}.dll +CONFIG(debug, debug|release): QTLIBSUFFIX = "d$${QTLIBSUFFIX}" # Can't use Debug: .. here, it ignores the line - no idea why, as it works in BossDummy.pro + +for(QTNAME, QTLIBNAMES) { + QTFILE = Qt$${QTNAME} + qtlibs.files += $$[QT_INSTALL_BINS]\\$${QTFILE}$${QTLIBSUFFIX} +} + +INSTALLS += qtlibs otherlibs -- cgit v1.3.1