variables in pro file for oauth client id/secret

This commit is contained in:
Martin Rotter 2021-02-24 12:15:10 +01:00
parent 0e5632d805
commit aa4921229b
2 changed files with 32 additions and 7 deletions

View file

@ -28,10 +28,8 @@
# of this variable can be mimicked with $INSTALL_ROOT variable on Linux. Note that # 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 # RSS Guard's installation is automatically relocatable, in other words, no
# absolute OS-dependent paths are used. # absolute OS-dependent paths are used.
# FEEDLY_CLIENT_ID - official production client ID obtained from Feedly when setting up application # {FEEDLY,GMAIL,INOREADER}_CLIENT_ID - preconfigured OAuth cliend ID.
# partnership. # {FEEDLY,GMAIL,INOREADER}_CLIENT_SECRET - preconfigured OAuth cliend SECRET.
# FEEDLY_CLIENT_SECRET - official production client SECRET obtained from Feedly when setting up application
# partnership.
# #
# Other information: # Other information:
# - supports Windows, Linux, Mac OS X, OS/2, Android, # - supports Windows, Linux, Mac OS X, OS/2, Android,

View file

@ -4,7 +4,7 @@ APP_REVERSE_NAME = "com.github.rssguard"
APP_LOW_H_NAME = ".rssguard" APP_LOW_H_NAME = ".rssguard"
APP_AUTHOR = "Martin Rotter" APP_AUTHOR = "Martin Rotter"
APP_COPYRIGHT = "(C) 2011-2021 $$APP_AUTHOR" 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_LONG_NAME = "$$APP_NAME $$APP_VERSION"
APP_EMAIL = "rotter.martinos@gmail.com" APP_EMAIL = "rotter.martinos@gmail.com"
APP_URL = "https://github.com/martinrotter/rssguard" APP_URL = "https://github.com/martinrotter/rssguard"
@ -26,11 +26,9 @@ isEmpty(USE_WEBENGINE) {
qtHaveModule(webenginewidgets) { qtHaveModule(webenginewidgets) {
USE_WEBENGINE = true USE_WEBENGINE = true
##message($$MSG_PREFIX: WebEngine component IS installed, enabling it.)
} }
else { else {
USE_WEBENGINE = false 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.) 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.)
}