mirror of
https://github.com/QuasarApp/installer-framework.git
synced 2025-05-06 10:09:34 +00:00
Always build libinstaller as a static library
This fixes the build if IFW is built with a dynamically linked Qt, and does not otherwise affect use of static builds of Qt. Task-number: QTIFW-993 Change-Id: I1e6807e522adde339263c697fa4a1353250a2e3f Reviewed-by: Katja Marttila <katja.marttila@qt.io>
This commit is contained in:
parent
21214c88dd
commit
0089d7b3b7
@ -126,13 +126,11 @@ DEFINES += NOMINMAX QT_NO_CAST_FROM_ASCII QT_STRICT_ITERATORS QT_USE_QSTRINGBUIL
|
||||
IFW_VERSION_STR=$$IFW_VERSION_STR IFW_VERSION=$$IFW_VERSION
|
||||
DEFINES += IFW_REPOSITORY_FORMAT_VERSION=$$IFW_REPOSITORY_FORMAT_VERSION
|
||||
|
||||
static {
|
||||
LIBS += -l7z
|
||||
win32-g++*: LIBS += -lmpr -luuid
|
||||
LIBS += -l7z
|
||||
win32-g++*: LIBS += -lmpr -luuid
|
||||
|
||||
equals(TEMPLATE, app) {
|
||||
msvc:POST_TARGETDEPS += $$IFW_LIB_PATH/installer.lib $$IFW_LIB_PATH/7z.lib
|
||||
win32-g++*:POST_TARGETDEPS += $$IFW_LIB_PATH/libinstaller.a $$IFW_LIB_PATH/lib7z.a
|
||||
unix:POST_TARGETDEPS += $$IFW_LIB_PATH/libinstaller.a $$IFW_LIB_PATH/lib7z.a
|
||||
}
|
||||
equals(TEMPLATE, app) {
|
||||
msvc:POST_TARGETDEPS += $$IFW_LIB_PATH/installer.lib $$IFW_LIB_PATH/7z.lib
|
||||
win32-g++*:POST_TARGETDEPS += $$IFW_LIB_PATH/libinstaller.a $$IFW_LIB_PATH/lib7z.a
|
||||
unix:POST_TARGETDEPS += $$IFW_LIB_PATH/libinstaller.a $$IFW_LIB_PATH/lib7z.a
|
||||
}
|
||||
|
@ -2,6 +2,8 @@ TEMPLATE = lib
|
||||
TARGET = installer
|
||||
INCLUDEPATH += . ..
|
||||
|
||||
CONFIG += staticlib
|
||||
|
||||
include(../7zip/7zip.pri)
|
||||
include(../kdtools/kdtools.pri)
|
||||
include(../../../installerfw.pri)
|
||||
|
Loading…
x
Reference in New Issue
Block a user