2021-02-21 20:43:14 +01:00
|
|
|
CONFIG *= c++1z warn_on
|
|
|
|
|
|
|
|
!os2 {
|
|
|
|
CONFIG *= resources_big
|
|
|
|
}
|
|
|
|
|
2019-06-10 09:54:18 +02:00
|
|
|
CONFIG -= debug_and_release
|
|
|
|
DEFINES *= QT_USE_QSTRINGBUILDER QT_USE_FAST_CONCATENATION QT_USE_FAST_OPERATOR_PLUS UNICODE _UNICODE
|
|
|
|
VERSION = $$APP_VERSION
|
2021-08-13 09:13:55 +02:00
|
|
|
QT *= core gui widgets sql network xml qml
|
|
|
|
|
|
|
|
!os2 {
|
|
|
|
QT *= multimedia
|
|
|
|
}
|
2019-06-10 09:54:18 +02:00
|
|
|
|
2020-11-23 12:59:59 +01:00
|
|
|
greaterThan(QT_MAJOR_VERSION, 5) {
|
2021-06-21 13:08:22 +02:00
|
|
|
QT *= core5compat
|
|
|
|
}
|
|
|
|
|
|
|
|
unix:!mac:!android {
|
|
|
|
QT *= dbus
|
2020-11-23 12:59:59 +01:00
|
|
|
}
|
|
|
|
|
2019-06-10 09:54:18 +02:00
|
|
|
equals(USE_WEBENGINE, true) {
|
|
|
|
message($$MSG_PREFIX: Application will be compiled WITH QtWebEngine module.)
|
|
|
|
QT *= webenginewidgets
|
|
|
|
DEFINES *= USE_WEBENGINE
|
|
|
|
}
|
|
|
|
else {
|
|
|
|
message($$MSG_PREFIX: Application will be compiled without QtWebEngine module. Some features will be disabled.)
|
|
|
|
}
|
|
|
|
|
|
|
|
gcc|g++|clang* {
|
|
|
|
QMAKE_CXXFLAGS *= -std=c++17
|
|
|
|
}
|
|
|
|
|
|
|
|
msvc {
|
|
|
|
QMAKE_CXXFLAGS *= /std:c++17
|
2021-05-19 10:10:06 +02:00
|
|
|
QMAKE_CXXFLAGS *= /wd5240
|
2019-06-10 09:54:18 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
clang* {
|
|
|
|
DEFINES *= CLANG=1
|
|
|
|
}
|
|
|
|
|
|
|
|
# Setup specific compiler options.
|
|
|
|
CONFIG(release, debug|release) {
|
|
|
|
message($$MSG_PREFIX: Building in "release" mode.)
|
|
|
|
|
|
|
|
gcc:QMAKE_CXXFLAGS_RELEASE -= -O2
|
|
|
|
clang:QMAKE_CXXFLAGS_RELEASE -= -O2
|
|
|
|
gcc:QMAKE_CXXFLAGS_RELEASE *= -O3
|
|
|
|
clang:QMAKE_CXXFLAGS_RELEASE *= -O3
|
|
|
|
}
|
|
|
|
else {
|
|
|
|
message($$MSG_PREFIX: Building in "debug" mode.)
|
|
|
|
|
|
|
|
DEFINES *= DEBUG=1
|
|
|
|
gcc:QMAKE_CXXFLAGS_DEBUG *= -Wall
|
|
|
|
clang:QMAKE_CXXFLAGS_DEBUG *= -Wall
|
2020-07-08 11:30:48 +02:00
|
|
|
msvc:QMAKE_CXXFLAGS_DEBUG *= /W4 /wd4127
|
|
|
|
msvc:QMAKE_CXXFLAGS_WARN_ON = ""
|
|
|
|
msvc:QMAKE_CXXFLAGS_DEBUG -= /W3
|
|
|
|
msvc:QMAKE_CXXFLAGS -= /W3
|
2019-06-10 09:54:18 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
MOC_DIR = $$OUT_PWD/moc
|
|
|
|
RCC_DIR = $$OUT_PWD/rcc
|
|
|
|
UI_DIR = $$OUT_PWD/ui
|
|
|
|
|
2020-05-14 09:07:25 +02:00
|
|
|
mac:qtHaveModule(macextras) {
|
2019-06-10 09:54:18 +02:00
|
|
|
QT *= macextras
|
|
|
|
}
|
|
|
|
|
|
|
|
# Make needed tweaks for RC file getting generated on Windows.
|
|
|
|
win32 {
|
|
|
|
RC_ICONS = ../../resources/graphics/rssguard.ico
|
|
|
|
QMAKE_TARGET_COMPANY = $$APP_AUTHOR
|
2020-07-21 12:11:32 +02:00
|
|
|
QMAKE_TARGET_DESCRIPTION = $$APP_NAME
|
2019-06-10 09:54:18 +02:00
|
|
|
QMAKE_TARGET_COPYRIGHT = $$APP_COPYRIGHT
|
|
|
|
QMAKE_TARGET_PRODUCT = $$APP_NAME
|
|
|
|
|
|
|
|
# Additionally link against Shell32.
|
|
|
|
LIBS *= Shell32.lib
|
|
|
|
}
|
|
|
|
|
|
|
|
static {
|
|
|
|
message($$MSG_PREFIX: Building static version of library.)
|
|
|
|
}
|
|
|
|
else {
|
|
|
|
message($$MSG_PREFIX: Building shared version of library.)
|
|
|
|
}
|