deps,tools: add zstd 1.5.6 · nodejs/node@f9f611f · GitHub
Skip to content

Commit f9f611f

Browse files
hybristRafaelGSS
authored andcommitted
deps,tools: add zstd 1.5.6
PR-URL: #52100 Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com>
1 parent 35b3140 commit f9f611f

112 files changed

Lines changed: 79826 additions & 0 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

LICENSE

Lines changed: 34 additions & 0 deletions

configure.py

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -573,6 +573,29 @@
573573
dest='shared_sqlite_libpath',
574574
help='a directory to search for the shared sqlite DLL')
575575

576+
shared_optgroup.add_argument('--shared-zstd',
577+
action='store_true',
578+
dest='shared_zstd',
579+
default=None,
580+
help='link to a shared zstd DLL instead of static linking')
581+
582+
shared_optgroup.add_argument('--shared-zstd-includes',
583+
action='store',
584+
dest='shared_zstd_includes',
585+
help='directory containing zstd header files')
586+
587+
shared_optgroup.add_argument('--shared-zstd-libname',
588+
action='store',
589+
dest='shared_zstd_libname',
590+
default='zstd',
591+
help='alternative lib name to link to [default: %(default)s]')
592+
593+
shared_optgroup.add_argument('--shared-zstd-libpath',
594+
action='store',
595+
dest='shared_zstd_libpath',
596+
help='a directory to search for the shared zstd DLL')
597+
598+
parser.add_argument_group(shared_optgroup)
576599

577600
for builtin in shareable_builtins:
578601
builtin_id = 'shared_builtin_' + builtin + '_path'
@@ -2224,6 +2247,7 @@ def make_bin_override():
22242247
configure_library('ngtcp2', output, pkgname='libngtcp2')
22252248
configure_library('sqlite', output, pkgname='sqlite3')
22262249
configure_library('uvwasi', output, pkgname='libuvwasi')
2250+
configure_library('zstd', output)
22272251
configure_v8(output, configurations)
22282252
configure_openssl(output)
22292253
configure_intl(output)

deps/zstd/BUILD.gn

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
##############################################################################
2+
# #
3+
# DO NOT EDIT THIS FILE! #
4+
# #
5+
##############################################################################
6+
7+
# This file is used by GN for building, which is NOT the build system used for
8+
# building official binaries.
9+
# Please modify the gyp files if you are making changes to build system.
10+
11+
import("unofficial.gni")
12+
13+
zstd_gn_build("zstd") {
14+
}

deps/zstd/LICENSE

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
BSD License
2+
3+
For Zstandard software
4+
5+
Copyright (c) Meta Platforms, Inc. and affiliates. All rights reserved.
6+
7+
Redistribution and use in source and binary forms, with or without modification,
8+
are permitted provided that the following conditions are met:
9+
10+
* Redistributions of source code must retain the above copyright notice, this
11+
list of conditions and the following disclaimer.
12+
13+
* Redistributions in binary form must reproduce the above copyright notice,
14+
this list of conditions and the following disclaimer in the documentation
15+
and/or other materials provided with the distribution.
16+
17+
* Neither the name Facebook, nor Meta, nor the names of its contributors may
18+
be used to endorse or promote products derived from this software without
19+
specific prior written permission.
20+
21+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
22+
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
23+
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
24+
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR
25+
ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
26+
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
27+
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
28+
ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
29+
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
30+
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

deps/zstd/lib/.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# make install artefact
2+
libzstd.pc
3+
libzstd-nomt

deps/zstd/lib/BUCK

Lines changed: 232 additions & 0 deletions

0 commit comments

Comments
 (0)