variables in pro file for oauth client id/secret
This commit is contained in:
parent
0e5632d805
commit
aa4921229b
|
@ -28,10 +28,8 @@
|
|||
# of this variable can be mimicked with $INSTALL_ROOT variable on Linux. Note that
|
||||
# RSS Guard's installation is automatically relocatable, in other words, no
|
||||
# absolute OS-dependent paths are used.
|
||||
# FEEDLY_CLIENT_ID - official production client ID obtained from Feedly when setting up application
|
||||
# partnership.
|
||||
# FEEDLY_CLIENT_SECRET - official production client SECRET obtained from Feedly when setting up application
|
||||
# partnership.
|
||||
# {FEEDLY,GMAIL,INOREADER}_CLIENT_ID - preconfigured OAuth cliend ID.
|
||||
# {FEEDLY,GMAIL,INOREADER}_CLIENT_SECRET - preconfigured OAuth cliend SECRET.
|
||||
#
|
||||
# Other information:
|
||||
# - supports Windows, Linux, Mac OS X, OS/2, Android,
|
||||
|
|
33
pri/vars.pri
33
pri/vars.pri
|
@ -4,7 +4,7 @@ APP_REVERSE_NAME = "com.github.rssguard"
|
|||
APP_LOW_H_NAME = ".rssguard"
|
||||
APP_AUTHOR = "Martin Rotter"
|
||||
APP_COPYRIGHT = "(C) 2011-2021 $$APP_AUTHOR"
|
||||
APP_VERSION = "3.9.2"
|
||||
APP_VERSION = "4.0.0"
|
||||
APP_LONG_NAME = "$$APP_NAME $$APP_VERSION"
|
||||
APP_EMAIL = "rotter.martinos@gmail.com"
|
||||
APP_URL = "https://github.com/martinrotter/rssguard"
|
||||
|
@ -26,11 +26,9 @@ isEmpty(USE_WEBENGINE) {
|
|||
|
||||
qtHaveModule(webenginewidgets) {
|
||||
USE_WEBENGINE = true
|
||||
##message($$MSG_PREFIX: WebEngine component IS installed, enabling it.)
|
||||
}
|
||||
else {
|
||||
USE_WEBENGINE = false
|
||||
##message($$MSG_PREFIX: WebEngine component is probably NOT installed, disabling it.)
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -47,3 +45,32 @@ else {
|
|||
|
||||
message($$MSG_PREFIX: Enabling official Feedly support.)
|
||||
}
|
||||
|
||||
|
||||
isEmpty(GMAIL_CLIENT_ID)|isEmpty(GMAIL_CLIENT_SECRET) {
|
||||
GMAIL_OFFICIAL_SUPPORT = false
|
||||
|
||||
message($$MSG_PREFIX: Gmail client ID/secret variables are not set.)
|
||||
}
|
||||
else {
|
||||
GMAIL_OFFICIAL_SUPPORT = true
|
||||
DEFINES *= GMAIL_OFFICIAL_SUPPORT
|
||||
DEFINES *= GMAIL_CLIENT_ID='"\\\"$$GMAIL_CLIENT_ID\\\""'
|
||||
DEFINES *= GMAIL_CLIENT_SECRET='"\\\"$$GMAIL_CLIENT_SECRET\\\""'
|
||||
|
||||
message($$MSG_PREFIX: Enabling official Gmail support.)
|
||||
}
|
||||
|
||||
isEmpty(INOREADER_CLIENT_ID)|isEmpty(INOREADER_CLIENT_SECRET) {
|
||||
INOREADER_OFFICIAL_SUPPORT = false
|
||||
|
||||
message($$MSG_PREFIX: Inoreader client ID/secret variables are not set.)
|
||||
}
|
||||
else {
|
||||
INOREADER_OFFICIAL_SUPPORT = true
|
||||
DEFINES *= INOREADER_OFFICIAL_SUPPORT
|
||||
DEFINES *= INOREADER_CLIENT_ID='"\\\"$$INOREADER_CLIENT_ID\\\""'
|
||||
DEFINES *= INOREADER_CLIENT_SECRET='"\\\"$$INOREADER_CLIENT_SECRET\\\""'
|
||||
|
||||
message($$MSG_PREFIX: Enabling official Inoreader support.)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue