summaryrefslogtreecommitdiff
path: root/configure.cmake
diff options
context:
space:
mode:
authorMichal Klocek <michal.klocek@qt.io>2023-03-16 09:20:26 +0100
committerMichal Klocek <michal.klocek@qt.io>2023-03-30 01:17:15 +0200
commita38a3aee68e796266ef6478d87d133ce1a5102c9 (patch)
treead2b678256185fee1351e2e937c2a962bd9d8e31 /configure.cmake
parent60d386ba9410f2d64dd816ce28fdaf7f1f7dfa49 (diff)
downloadqtwebengine-a38a3aee68e796266ef6478d87d133ce1a5102c9.tar.gz
Drop perl dependency for third party opus
Opus needs perl to do some optimizations, in case there is no perl print the warning and drop the perl requirement. Fixes: QTBUG-111958 Pick-to: 6.5 Change-Id: I63a66e71fdaeae61d5c9dbcfe41f03bfb717bb75 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io> Reviewed-by: Rolf Eike Beer <eb@emlix.com>
Diffstat (limited to 'configure.cmake')
-rw-r--r--configure.cmake8
1 files changed, 8 insertions, 0 deletions
diff --git a/configure.cmake b/configure.cmake
index 0b216a830..c5e561b12 100644
--- a/configure.cmake
+++ b/configure.cmake
@@ -18,6 +18,7 @@ else()
find_package(GPerf)
find_package(BISON)
find_package(FLEX)
+ find_package(Perl)
find_package(PkgConfig)
find_package(Snappy)
find_package(Nodejs 12.0)
@@ -686,3 +687,10 @@ if(PRINT_BFD_LINKER_WARNING)
MESSAGE "Using bfd linker requires at least 4096 open files limit"
)
endif()
+if(NOT FEATURE_webengine_opus_system AND NOT Perl_FOUND)
+ qt_configure_add_report_entry(
+ TYPE WARNING
+ MESSAGE "No perl found, compiling opus without some optimizations."
+ )
+endif()
+