diff --git a/build.pro b/build.pro index 09f334ee9..4e49962ab 100644 --- a/build.pro +++ b/build.pro @@ -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, diff --git a/pri/vars.pri b/pri/vars.pri index 0a1562d96..fb529b730 100644 --- a/pri/vars.pri +++ b/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.) +}