summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAllan Sandfeld Jensen <allan.jensen@qt.io>2017-08-03 14:09:37 +0200
committerSimon Hausmann <simon.hausmann@qt.io>2017-08-04 05:55:51 +0000
commita9ef2ecb1f1941a9295c58b63987565e6d3518cb (patch)
treee338ccb5bc86b8072abd18d29cbb885cb39e3cd4
parentf26d944dcff91da2cf4d2cfbabbb539e6a4a6e5c (diff)
Move NSS certificate handling configuration to configure.json
Change-Id: Ibae2b8ebb90e79ff8337d994b2234eed5e230dcc Reviewed-by: Viktor Engelmann <viktor.engelmann@qt.io> Reviewed-by: Michal Klocek <michal.klocek@qt.io>
-rw-r--r--configure.json20
-rw-r--r--mkspecs/features/configure.prf11
2 files changed, 21 insertions, 10 deletions
diff --git a/configure.json b/configure.json
index c4d00ffcc..b291e6645 100644
--- a/configure.json
+++ b/configure.json
@@ -12,6 +12,7 @@
"ffmpeg": { "type": "enum", "name": "system-ffmpeg", "values": { "system": "yes", "qt": "no" } },
"opus": { "type": "enum", "name": "system-opus", "values": { "system": "yes", "qt": "no" } },
"webp": { "type": "enum", "name": "system-webp", "values": { "system": "yes", "qt": "no" } },
+ "nss-certificate-handling": "boolean",
"pepper-plugins": "boolean",
"printing-and-pdf": "boolean",
"proprietary-codecs": "boolean",
@@ -58,6 +59,12 @@
"sources": [
{ "type": "pkgConfig", "args": "libwebp libwebpdemux" }
]
+ },
+ "nss": {
+ "label": "NSS",
+ "sources": [
+ { "type": "pkgConfig", "args": "nss" }
+ ]
}
},
@@ -171,6 +178,14 @@
"autoDetect": "!features.embedded",
"output": [ "privateFeature" ]
},
+ "nss-certificate-handling": {
+ "label": "NSS certificate handling",
+ "purpose": "Use NSS to handle certificates instead of BoringSSL. Recommended on Linux.",
+ "section": "WebEngine",
+ "condition": "config.unix && !config.darwin",
+ "autoDetect": "libs.nss",
+ "output": [ "privateFeature" ]
+ },
"system-webp": {
"label": "libwebp and libwebpdemux",
"autoDetect": "config.unix",
@@ -253,6 +268,11 @@
"condition": "config.unix"
},
{
+ "type": "feature",
+ "args": "nss-certificate-handling",
+ "condition": "config.unix && !config.darwin"
+ },
+ {
"section": "System libraries",
"condition": "config.unix",
"entries": [
diff --git a/mkspecs/features/configure.prf b/mkspecs/features/configure.prf
index 48a2f0f96..87e43733d 100644
--- a/mkspecs/features/configure.prf
+++ b/mkspecs/features/configure.prf
@@ -51,6 +51,7 @@ defineTest(runConfigure) {
qtConfig(system-opus): WEBENGINE_CONFIG += use_system_opus
qtConfig(system-ffmpeg): WEBENGINE_CONFIG += use_system_ffmpeg
qtConfig(system-icu): WEBENGINE_CONFIG += use_system_icu
+ qtConfig(nss-certificate-handling): WEBENGINE_CONFIG += use_nss
!contains(WEBENGINE_CONFIG, use_system_libwebp): WEBENGINE_CONFIG += use_bundled_libwebp
!contains(WEBENGINE_CONFIG, use_system_opus): WEBENGINE_CONFIG += use_bundled_opus
!contains(WEBENGINE_CONFIG, use_system_ffmpeg): WEBENGINE_CONFIG += use_bundled_ffmpeg
@@ -135,9 +136,6 @@ defineTest(runConfigure) {
log("System snappy not found. Using Chromium's copy.$${EOL}")
WEBENGINE_CONFIG += use_bundled_snappy
}
-
- packagesExist(nss): WEBENGINE_CONFIG += use_nss
- else: log("System NSS not found, BoringSSL will be used.$${EOL}")
}
win32 {
@@ -207,13 +205,6 @@ defineTest(runConfigure) {
} else {
log(" Geolocation ........................ Not enabled (Requires Qt Positioning module)$${EOL}")
}
- unix:!darwin {
- use?(nss) {
- log(" Certificate handling ............... Using system NSS$${EOL}")
- } else {
- log(" Certificate handling ............... Using bundled BoringSSL$${EOL}")
- }
- }
osx {
use?(native_spellchecker) {
log("Native Spellchecker .............. Enabled$${EOL}")