aboutsummaryrefslogtreecommitdiff
path: root/configure.py
diff options
context:
space:
mode:
authorAndré Draszik <git@andred.net>2020-03-02 12:17:35 +0000
committerAnna Henningsen <anna@addaleax.net>2020-03-09 13:20:47 +0100
commit616b7fbcb1a7f53ea21f5ee4e3f80c61951c5728 (patch)
treec1a89749a009f796b0c6513e260836004d2bbbe2 /configure.py
parentd3af52715271920294d244f2e7aea02757899be2 (diff)
downloadios-node-v8-616b7fbcb1a7f53ea21f5ee4e3f80c61951c5728.tar.gz
ios-node-v8-616b7fbcb1a7f53ea21f5ee4e3f80c61951c5728.tar.bz2
ios-node-v8-616b7fbcb1a7f53ea21f5ee4e3f80c61951c5728.zip
build: allow use of system-installed brotli
brotli is available as a shared library since 2016, so it makes sense to allow its use as a system-installed version. Some of the infrastructure was in place already (node.gyp and node.gypi), but some bits in the configure script here were missing. Add them, keeping the default as before, to use the bundled version. Refs: https://github.com/google/brotli/pull/421 Signed-off-by: André Draszik <git@andred.net> PR-URL: https://github.com/nodejs/node/pull/32046 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com> Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: Richard Lau <riclau@uk.ibm.com>
Diffstat (limited to 'configure.py')
-rwxr-xr-xconfigure.py22
1 files changed, 22 insertions, 0 deletions
diff --git a/configure.py b/configure.py
index e3f78f2fed..0190e31b41 100755
--- a/configure.py
+++ b/configure.py
@@ -301,6 +301,27 @@ shared_optgroup.add_option('--shared-zlib-libpath',
dest='shared_zlib_libpath',
help='a directory to search for the shared zlib DLL')
+shared_optgroup.add_option('--shared-brotli',
+ action='store_true',
+ dest='shared_brotli',
+ help='link to a shared brotli DLL instead of static linking')
+
+shared_optgroup.add_option('--shared-brotli-includes',
+ action='store',
+ dest='shared_brotli_includes',
+ help='directory containing brotli header files')
+
+shared_optgroup.add_option('--shared-brotli-libname',
+ action='store',
+ dest='shared_brotli_libname',
+ default='brotlidec,brotlienc',
+ help='alternative lib name to link to [default: %default]')
+
+shared_optgroup.add_option('--shared-brotli-libpath',
+ action='store',
+ dest='shared_brotli_libpath',
+ help='a directory to search for the shared brotli DLL')
+
shared_optgroup.add_option('--shared-cares',
action='store_true',
dest='shared_cares',
@@ -1692,6 +1713,7 @@ configure_napi(output)
configure_library('zlib', output)
configure_library('http_parser', output)
configure_library('libuv', output)
+configure_library('brotli', output, pkgname=['libbrotlidec', 'libbrotlienc'])
configure_library('cares', output, pkgname='libcares')
configure_library('nghttp2', output, pkgname='libnghttp2')
configure_v8(output)