summaryrefslogtreecommitdiffstats
path: root/tools/qmake
diff options
context:
space:
mode:
authorAllan Sandfeld Jensen <allan.jensen@theqtcompany.com>2015-09-16 12:04:52 +0200
committerAllan Sandfeld Jensen <allan.jensen@theqtcompany.com>2015-10-12 15:23:41 +0000
commit4654fd86fb5de097a8ad271c2f53e99e19c36c93 (patch)
treec8196e9508db73e1b947c298ba06de8c870fd110 /tools/qmake
parent3b1faa91c3e8ee4b7fb602b0b476d4deda235378 (diff)
Make NSS vs BoringSSL choice more flexible
Make the NSS library optional on Linux to reduce the hard coded difference between embedded and desktop builds. Change-Id: I3d7f703ead0ff325ffd2ae272e7e4c2d5258fc25 Reviewed-by: Michael BrĂ¼ning <michael.bruning@theqtcompany.com>
Diffstat (limited to 'tools/qmake')
-rw-r--r--tools/qmake/mkspecs/features/configure.prf17
1 files changed, 15 insertions, 2 deletions
diff --git a/tools/qmake/mkspecs/features/configure.prf b/tools/qmake/mkspecs/features/configure.prf
index 8c6876857..90966151d 100644
--- a/tools/qmake/mkspecs/features/configure.prf
+++ b/tools/qmake/mkspecs/features/configure.prf
@@ -30,7 +30,7 @@ defineTest(runConfigure) {
contains(QT_CONFIG, pulseaudio): REQUIRED_PACKAGES += libpulse
contains(QT_CONFIG, system-png): REQUIRED_PACKAGES += libpng
contains(QT_CONFIG, system-harfbuzz): REQUIRED_PACKAGES += harfbuzz
- !cross_compile: REQUIRED_PACKAGES += libpci nss
+ !cross_compile: REQUIRED_PACKAGES += libpci
for(package, $$list($$REQUIRED_PACKAGES)) {
!packagesExist($$package):skipBuild("Unmet dependency: $$package")
@@ -51,18 +51,31 @@ defineTest(runConfigure) {
else: log("System libsrtp not found. Using Chromium's copy.$${EOL}")
config_snappy: WEBENGINE_CONFIG += config_system_snappy
else: log("System snappy not found. Using Chromium's copy.$${EOL}")
+
+ # Optional dependencies
+ packagesExist(nss): WEBENGINE_CONFIG += config_system_nss
+ else: log("System NSS not found, BoringSSL will be used.$${EOL}")
}
isEmpty(skipBuildReason): {
cache(CONFIG, add, $$list(webengine_successfully_configured))
- !isEmpty(WEBENGINE_CONFIG): cache(CONFIG, add, $$list($$WEBENGINE_CONFIG))
+ !isEmpty(WEBENGINE_CONFIG) {
+ CONFIG += $$WEBENGINE_CONFIG
+ cache(CONFIG, add, $$list($$WEBENGINE_CONFIG))
+ }
}
+ export(CONFIG)
}
# This is called from default_post, at which point we've also parsed
# command line options
defineTest(finalizeConfigure) {
linux {
+ config_system_nss {
+ log("SSL............................... Using system NSS$${EOL}")
+ } else {
+ log("SSL............................... Using bundled BoringSSL$${EOL}")
+ }
contains(WEBENGINE_CONFIG, use_system_icu) {
packagesExist("icu-uc icu-i18n") {
log("ICU............................... Using system version$${EOL}")