rssguard/pri/build_opts.pri

93 lines
2.0 KiB
Plaintext
Raw Normal View History

2021-02-21 20:43:14 +01:00
CONFIG *= c++1z warn_on
!os2 {
CONFIG *= resources_big
}
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
}
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
}
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
QMAKE_CXXFLAGS *= /wd5240
}
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
msvc:QMAKE_CXXFLAGS_DEBUG *= /W4 /wd4127
msvc:QMAKE_CXXFLAGS_WARN_ON = ""
msvc:QMAKE_CXXFLAGS_DEBUG -= /W3
msvc:QMAKE_CXXFLAGS -= /W3
}
MOC_DIR = $$OUT_PWD/moc
RCC_DIR = $$OUT_PWD/rcc
UI_DIR = $$OUT_PWD/ui
mac:qtHaveModule(macextras) {
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
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.)
}