mirror of
https://github.com/martinrotter/rssguard.git
synced 2025-02-03 10:47:47 +01:00
WebEngine by default OFF, when used Qt 5.7+, automatically detected.
This commit is contained in:
parent
e7fb8b25bd
commit
307cab6cd4
17
rssguard.pro
17
rssguard.pro
@ -100,7 +100,19 @@ isEmpty(DESTDIR) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
isEmpty(USE_WEBENGINE) {
|
isEmpty(USE_WEBENGINE) {
|
||||||
|
USE_WEBENGINE = false
|
||||||
|
message(rssguard: USE_WEBENGINE variable is not set.)
|
||||||
|
|
||||||
|
!lessThan(QT_MAJOR_VERSION, 5):!lessThan(QT_MINOR_VERSION, 7) {
|
||||||
|
qtHaveModule(webenginewidgets) {
|
||||||
USE_WEBENGINE = true
|
USE_WEBENGINE = true
|
||||||
|
message("rssguard: WebEngine component IS installed, enabling it.")
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
USE_WEBENGINE = false
|
||||||
|
message("rssguard: WebEngine component is probably NOT installed, disabling it.")
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
message(rssguard: Shadow copy build directory \"$$OUT_PWD\".)
|
message(rssguard: Shadow copy build directory \"$$OUT_PWD\".)
|
||||||
@ -148,6 +160,7 @@ message(rssguard: Build revision: \"$$APP_REVISION\".)
|
|||||||
message(rssguard: lrelease executable name: \"$$LRELEASE_EXECUTABLE\".)
|
message(rssguard: lrelease executable name: \"$$LRELEASE_EXECUTABLE\".)
|
||||||
|
|
||||||
QT += core gui widgets sql network xml printsupport
|
QT += core gui widgets sql network xml printsupport
|
||||||
|
|
||||||
CONFIG *= c++11 debug_and_release warn_on
|
CONFIG *= c++11 debug_and_release warn_on
|
||||||
DEFINES *= QT_USE_QSTRINGBUILDER QT_USE_FAST_CONCATENATION QT_USE_FAST_OPERATOR_PLUS UNICODE _UNICODE
|
DEFINES *= QT_USE_QSTRINGBUILDER QT_USE_FAST_CONCATENATION QT_USE_FAST_OPERATOR_PLUS UNICODE _UNICODE
|
||||||
VERSION = $$APP_VERSION
|
VERSION = $$APP_VERSION
|
||||||
@ -546,6 +559,10 @@ win32 {
|
|||||||
QMAKE_EXTRA_TARGETS += seven_zip zip
|
QMAKE_EXTRA_TARGETS += seven_zip zip
|
||||||
}
|
}
|
||||||
|
|
||||||
|
equals(USE_WEBENGINE, false) {
|
||||||
|
# Add extra file naming when building without webengine.
|
||||||
|
}
|
||||||
|
|
||||||
# Create NSIS installer target on Windows.
|
# Create NSIS installer target on Windows.
|
||||||
win32 {
|
win32 {
|
||||||
nsis.target = nsis
|
nsis.target = nsis
|
||||||
|
Loading…
x
Reference in New Issue
Block a user