summaryrefslogtreecommitdiffstats
path: root/platform/linuxbsd/detect.py
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2023-07-06 14:46:34 +0200
committerRémi Verschelde <rverschelde@gmail.com>2023-07-06 15:26:38 +0200
commit153c4a4c4fd9ab142004d3448d1de4923a15a871 (patch)
treec38a566c5c86177d490605e039d1f8a3085bfd1d /platform/linuxbsd/detect.py
parentb7c2fd2e9a7f01644e15fef86083a3e0e0221e4d (diff)
downloadredot-engine-153c4a4c4fd9ab142004d3448d1de4923a15a871.tar.gz
Linux: Allow unbundling brotli to use system library
Diffstat (limited to 'platform/linuxbsd/detect.py')
-rw-r--r--platform/linuxbsd/detect.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/platform/linuxbsd/detect.py b/platform/linuxbsd/detect.py
index 9faa73d6d2..6bde9233c2 100644
--- a/platform/linuxbsd/detect.py
+++ b/platform/linuxbsd/detect.py
@@ -240,6 +240,9 @@ def configure(env: "Environment"):
if not env["builtin_zstd"]:
env.ParseConfig("pkg-config libzstd --cflags --libs")
+ if env["brotli"] and not env["builtin_brotli"]:
+ env.ParseConfig("pkg-config libbrotlicommon libbrotlidec --cflags --libs")
+
# Sound and video libraries
# Keep the order as it triggers chained dependencies (ogg needed by others, etc.)