zstd-ruby 1.5.1.1 → 1.5.5.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +2 -0
- data/README.md +78 -5
- data/Rakefile +8 -2
- data/ext/zstdruby/common.h +15 -0
- data/ext/zstdruby/extconf.rb +1 -1
- data/ext/zstdruby/libzstd/common/allocations.h +55 -0
- data/ext/zstdruby/libzstd/common/bits.h +200 -0
- data/ext/zstdruby/libzstd/common/bitstream.h +19 -60
- data/ext/zstdruby/libzstd/common/compiler.h +26 -3
- data/ext/zstdruby/libzstd/common/cpu.h +1 -1
- data/ext/zstdruby/libzstd/common/debug.c +1 -1
- data/ext/zstdruby/libzstd/common/debug.h +1 -1
- data/ext/zstdruby/libzstd/common/entropy_common.c +12 -40
- data/ext/zstdruby/libzstd/common/error_private.c +9 -2
- data/ext/zstdruby/libzstd/common/error_private.h +1 -1
- data/ext/zstdruby/libzstd/common/fse.h +5 -83
- data/ext/zstdruby/libzstd/common/fse_decompress.c +7 -99
- data/ext/zstdruby/libzstd/common/huf.h +65 -156
- data/ext/zstdruby/libzstd/common/mem.h +39 -46
- data/ext/zstdruby/libzstd/common/pool.c +37 -16
- data/ext/zstdruby/libzstd/common/pool.h +9 -3
- data/ext/zstdruby/libzstd/common/portability_macros.h +28 -3
- data/ext/zstdruby/libzstd/common/threading.c +68 -14
- data/ext/zstdruby/libzstd/common/threading.h +5 -10
- data/ext/zstdruby/libzstd/common/xxhash.c +2 -2
- data/ext/zstdruby/libzstd/common/xxhash.h +8 -8
- data/ext/zstdruby/libzstd/common/zstd_common.c +1 -36
- data/ext/zstdruby/libzstd/common/zstd_deps.h +1 -1
- data/ext/zstdruby/libzstd/common/zstd_internal.h +20 -122
- data/ext/zstdruby/libzstd/common/zstd_trace.h +3 -3
- data/ext/zstdruby/libzstd/compress/clevels.h +1 -1
- data/ext/zstdruby/libzstd/compress/fse_compress.c +7 -124
- data/ext/zstdruby/libzstd/compress/hist.c +1 -1
- data/ext/zstdruby/libzstd/compress/hist.h +1 -1
- data/ext/zstdruby/libzstd/compress/huf_compress.c +234 -169
- data/ext/zstdruby/libzstd/compress/zstd_compress.c +1317 -594
- data/ext/zstdruby/libzstd/compress/zstd_compress_internal.h +272 -165
- data/ext/zstdruby/libzstd/compress/zstd_compress_literals.c +115 -39
- data/ext/zstdruby/libzstd/compress/zstd_compress_literals.h +16 -8
- data/ext/zstdruby/libzstd/compress/zstd_compress_sequences.c +13 -13
- data/ext/zstdruby/libzstd/compress/zstd_compress_sequences.h +1 -1
- data/ext/zstdruby/libzstd/compress/zstd_compress_superblock.c +25 -21
- data/ext/zstdruby/libzstd/compress/zstd_compress_superblock.h +1 -1
- data/ext/zstdruby/libzstd/compress/zstd_cwksp.h +162 -82
- data/ext/zstdruby/libzstd/compress/zstd_double_fast.c +95 -33
- data/ext/zstdruby/libzstd/compress/zstd_double_fast.h +3 -2
- data/ext/zstdruby/libzstd/compress/zstd_fast.c +434 -149
- data/ext/zstdruby/libzstd/compress/zstd_fast.h +3 -2
- data/ext/zstdruby/libzstd/compress/zstd_lazy.c +405 -348
- data/ext/zstdruby/libzstd/compress/zstd_lazy.h +4 -2
- data/ext/zstdruby/libzstd/compress/zstd_ldm.c +9 -7
- data/ext/zstdruby/libzstd/compress/zstd_ldm.h +1 -1
- data/ext/zstdruby/libzstd/compress/zstd_ldm_geartab.h +1 -1
- data/ext/zstdruby/libzstd/compress/zstd_opt.c +149 -100
- data/ext/zstdruby/libzstd/compress/zstd_opt.h +1 -1
- data/ext/zstdruby/libzstd/compress/zstdmt_compress.c +32 -16
- data/ext/zstdruby/libzstd/compress/zstdmt_compress.h +5 -2
- data/ext/zstdruby/libzstd/decompress/huf_decompress.c +434 -441
- data/ext/zstdruby/libzstd/decompress/huf_decompress_amd64.S +42 -37
- data/ext/zstdruby/libzstd/decompress/zstd_ddict.c +4 -4
- data/ext/zstdruby/libzstd/decompress/zstd_ddict.h +1 -1
- data/ext/zstdruby/libzstd/decompress/zstd_decompress.c +205 -80
- data/ext/zstdruby/libzstd/decompress/zstd_decompress_block.c +201 -81
- data/ext/zstdruby/libzstd/decompress/zstd_decompress_block.h +6 -1
- data/ext/zstdruby/libzstd/decompress/zstd_decompress_internal.h +4 -2
- data/ext/zstdruby/libzstd/dictBuilder/cover.c +19 -15
- data/ext/zstdruby/libzstd/dictBuilder/cover.h +1 -1
- data/ext/zstdruby/libzstd/dictBuilder/fastcover.c +2 -2
- data/ext/zstdruby/libzstd/dictBuilder/zdict.c +13 -91
- data/ext/zstdruby/libzstd/zdict.h +53 -31
- data/ext/zstdruby/libzstd/zstd.h +580 -135
- data/ext/zstdruby/libzstd/zstd_errors.h +27 -8
- data/ext/zstdruby/main.c +20 -0
- data/ext/zstdruby/skippable_frame.c +63 -0
- data/ext/zstdruby/streaming_compress.c +177 -0
- data/ext/zstdruby/streaming_compress.h +5 -0
- data/ext/zstdruby/streaming_decompress.c +123 -0
- data/ext/zstdruby/zstdruby.c +113 -31
- data/lib/zstd-ruby/version.rb +1 -1
- data/lib/zstd-ruby.rb +0 -1
- data/zstd-ruby.gemspec +1 -1
- metadata +11 -37
- data/.github/dependabot.yml +0 -8
- data/.github/workflows/ruby.yml +0 -35
- data/ext/zstdruby/libzstd/.gitignore +0 -3
- data/ext/zstdruby/libzstd/BUCK +0 -232
- data/ext/zstdruby/libzstd/Makefile +0 -357
- data/ext/zstdruby/libzstd/README.md +0 -217
- data/ext/zstdruby/libzstd/deprecated/zbuff.h +0 -214
- data/ext/zstdruby/libzstd/deprecated/zbuff_common.c +0 -26
- data/ext/zstdruby/libzstd/deprecated/zbuff_compress.c +0 -167
- data/ext/zstdruby/libzstd/deprecated/zbuff_decompress.c +0 -75
- data/ext/zstdruby/libzstd/dll/example/Makefile +0 -48
- data/ext/zstdruby/libzstd/dll/example/README.md +0 -63
- data/ext/zstdruby/libzstd/dll/example/build_package.bat +0 -20
- data/ext/zstdruby/libzstd/dll/example/fullbench-dll.sln +0 -25
- data/ext/zstdruby/libzstd/dll/example/fullbench-dll.vcxproj +0 -181
- data/ext/zstdruby/libzstd/legacy/zstd_legacy.h +0 -415
- data/ext/zstdruby/libzstd/legacy/zstd_v01.c +0 -2158
- data/ext/zstdruby/libzstd/legacy/zstd_v01.h +0 -94
- data/ext/zstdruby/libzstd/legacy/zstd_v02.c +0 -3518
- data/ext/zstdruby/libzstd/legacy/zstd_v02.h +0 -93
- data/ext/zstdruby/libzstd/legacy/zstd_v03.c +0 -3160
- data/ext/zstdruby/libzstd/legacy/zstd_v03.h +0 -93
- data/ext/zstdruby/libzstd/legacy/zstd_v04.c +0 -3647
- data/ext/zstdruby/libzstd/legacy/zstd_v04.h +0 -142
- data/ext/zstdruby/libzstd/legacy/zstd_v05.c +0 -4050
- data/ext/zstdruby/libzstd/legacy/zstd_v05.h +0 -162
- data/ext/zstdruby/libzstd/legacy/zstd_v06.c +0 -4154
- data/ext/zstdruby/libzstd/legacy/zstd_v06.h +0 -172
- data/ext/zstdruby/libzstd/legacy/zstd_v07.c +0 -4541
- data/ext/zstdruby/libzstd/legacy/zstd_v07.h +0 -187
- data/ext/zstdruby/libzstd/libzstd.mk +0 -185
- data/ext/zstdruby/libzstd/libzstd.pc.in +0 -16
- data/ext/zstdruby/libzstd/modulemap/module.modulemap +0 -4
- data/ext/zstdruby/zstdruby.h +0 -6
data/zstd-ruby.gemspec
CHANGED
@@ -24,7 +24,7 @@ Gem::Specification.new do |spec|
|
|
24
24
|
#end
|
25
25
|
|
26
26
|
spec.files = `git ls-files -z`.split("\x0").reject do |f|
|
27
|
-
f.match(%r{^(test|spec|features|benchmarks|zstd)/})
|
27
|
+
f.match(%r{^(test|spec|features|benchmarks|zstd|.github)/})
|
28
28
|
end
|
29
29
|
spec.bindir = "exe"
|
30
30
|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: zstd-ruby
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.5.
|
4
|
+
version: 1.5.5.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- SpringMT
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2023-04-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -75,8 +75,6 @@ extensions:
|
|
75
75
|
- ext/zstdruby/extconf.rb
|
76
76
|
extra_rdoc_files: []
|
77
77
|
files:
|
78
|
-
- ".github/dependabot.yml"
|
79
|
-
- ".github/workflows/ruby.yml"
|
80
78
|
- ".gitignore"
|
81
79
|
- ".gitmodules"
|
82
80
|
- ".rspec"
|
@@ -87,11 +85,10 @@ files:
|
|
87
85
|
- Rakefile
|
88
86
|
- bin/console
|
89
87
|
- bin/setup
|
88
|
+
- ext/zstdruby/common.h
|
90
89
|
- ext/zstdruby/extconf.rb
|
91
|
-
- ext/zstdruby/libzstd
|
92
|
-
- ext/zstdruby/libzstd/
|
93
|
-
- ext/zstdruby/libzstd/Makefile
|
94
|
-
- ext/zstdruby/libzstd/README.md
|
90
|
+
- ext/zstdruby/libzstd/common/allocations.h
|
91
|
+
- ext/zstdruby/libzstd/common/bits.h
|
95
92
|
- ext/zstdruby/libzstd/common/bitstream.h
|
96
93
|
- ext/zstdruby/libzstd/common/compiler.h
|
97
94
|
- ext/zstdruby/libzstd/common/cpu.h
|
@@ -150,44 +147,21 @@ files:
|
|
150
147
|
- ext/zstdruby/libzstd/decompress/zstd_decompress_block.c
|
151
148
|
- ext/zstdruby/libzstd/decompress/zstd_decompress_block.h
|
152
149
|
- ext/zstdruby/libzstd/decompress/zstd_decompress_internal.h
|
153
|
-
- ext/zstdruby/libzstd/deprecated/zbuff.h
|
154
|
-
- ext/zstdruby/libzstd/deprecated/zbuff_common.c
|
155
|
-
- ext/zstdruby/libzstd/deprecated/zbuff_compress.c
|
156
|
-
- ext/zstdruby/libzstd/deprecated/zbuff_decompress.c
|
157
150
|
- ext/zstdruby/libzstd/dictBuilder/cover.c
|
158
151
|
- ext/zstdruby/libzstd/dictBuilder/cover.h
|
159
152
|
- ext/zstdruby/libzstd/dictBuilder/divsufsort.c
|
160
153
|
- ext/zstdruby/libzstd/dictBuilder/divsufsort.h
|
161
154
|
- ext/zstdruby/libzstd/dictBuilder/fastcover.c
|
162
155
|
- ext/zstdruby/libzstd/dictBuilder/zdict.c
|
163
|
-
- ext/zstdruby/libzstd/dll/example/Makefile
|
164
|
-
- ext/zstdruby/libzstd/dll/example/README.md
|
165
|
-
- ext/zstdruby/libzstd/dll/example/build_package.bat
|
166
|
-
- ext/zstdruby/libzstd/dll/example/fullbench-dll.sln
|
167
|
-
- ext/zstdruby/libzstd/dll/example/fullbench-dll.vcxproj
|
168
|
-
- ext/zstdruby/libzstd/legacy/zstd_legacy.h
|
169
|
-
- ext/zstdruby/libzstd/legacy/zstd_v01.c
|
170
|
-
- ext/zstdruby/libzstd/legacy/zstd_v01.h
|
171
|
-
- ext/zstdruby/libzstd/legacy/zstd_v02.c
|
172
|
-
- ext/zstdruby/libzstd/legacy/zstd_v02.h
|
173
|
-
- ext/zstdruby/libzstd/legacy/zstd_v03.c
|
174
|
-
- ext/zstdruby/libzstd/legacy/zstd_v03.h
|
175
|
-
- ext/zstdruby/libzstd/legacy/zstd_v04.c
|
176
|
-
- ext/zstdruby/libzstd/legacy/zstd_v04.h
|
177
|
-
- ext/zstdruby/libzstd/legacy/zstd_v05.c
|
178
|
-
- ext/zstdruby/libzstd/legacy/zstd_v05.h
|
179
|
-
- ext/zstdruby/libzstd/legacy/zstd_v06.c
|
180
|
-
- ext/zstdruby/libzstd/legacy/zstd_v06.h
|
181
|
-
- ext/zstdruby/libzstd/legacy/zstd_v07.c
|
182
|
-
- ext/zstdruby/libzstd/legacy/zstd_v07.h
|
183
|
-
- ext/zstdruby/libzstd/libzstd.mk
|
184
|
-
- ext/zstdruby/libzstd/libzstd.pc.in
|
185
|
-
- ext/zstdruby/libzstd/modulemap/module.modulemap
|
186
156
|
- ext/zstdruby/libzstd/zdict.h
|
187
157
|
- ext/zstdruby/libzstd/zstd.h
|
188
158
|
- ext/zstdruby/libzstd/zstd_errors.h
|
159
|
+
- ext/zstdruby/main.c
|
160
|
+
- ext/zstdruby/skippable_frame.c
|
161
|
+
- ext/zstdruby/streaming_compress.c
|
162
|
+
- ext/zstdruby/streaming_compress.h
|
163
|
+
- ext/zstdruby/streaming_decompress.c
|
189
164
|
- ext/zstdruby/zstdruby.c
|
190
|
-
- ext/zstdruby/zstdruby.h
|
191
165
|
- lib/zstd-ruby.rb
|
192
166
|
- lib/zstd-ruby/version.rb
|
193
167
|
- zstd-ruby.gemspec
|
@@ -210,7 +184,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
210
184
|
- !ruby/object:Gem::Version
|
211
185
|
version: '0'
|
212
186
|
requirements: []
|
213
|
-
rubygems_version: 3.3.
|
187
|
+
rubygems_version: 3.3.26
|
214
188
|
signing_key:
|
215
189
|
specification_version: 4
|
216
190
|
summary: Ruby binding for zstd(Zstandard - Fast real-time compression algorithm)
|
data/.github/dependabot.yml
DELETED
data/.github/workflows/ruby.yml
DELETED
@@ -1,35 +0,0 @@
|
|
1
|
-
# This workflow uses actions that are not certified by GitHub.
|
2
|
-
# They are provided by a third-party and are governed by
|
3
|
-
# separate terms of service, privacy policy, and support
|
4
|
-
# documentation.
|
5
|
-
# This workflow will download a prebuilt Ruby version, install dependencies and run tests with Rake
|
6
|
-
# For more information see: https://github.com/marketplace/actions/setup-ruby-jruby-and-truffleruby
|
7
|
-
|
8
|
-
name: Ruby
|
9
|
-
|
10
|
-
on: [push, pull_request]
|
11
|
-
|
12
|
-
jobs:
|
13
|
-
test:
|
14
|
-
|
15
|
-
runs-on: ubuntu-latest
|
16
|
-
strategy:
|
17
|
-
matrix:
|
18
|
-
ruby-version: ['2.6', '2.7', '3.0', '3.1']
|
19
|
-
|
20
|
-
steps:
|
21
|
-
- uses: actions/checkout@v2
|
22
|
-
- name: Set up Ruby
|
23
|
-
# To automatically get bug fixes and new Ruby versions for ruby/setup-ruby,
|
24
|
-
# change this to (see https://github.com/ruby/setup-ruby#versioning):
|
25
|
-
# uses: ruby/setup-ruby@v1
|
26
|
-
uses: ruby/setup-ruby@168d6a54b412713c0ed60998a78093a270ca8d84
|
27
|
-
with:
|
28
|
-
ruby-version: ${{ matrix.ruby-version }}
|
29
|
-
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
|
30
|
-
- name: Install dependencies
|
31
|
-
run: bundle install
|
32
|
-
- name: Compile
|
33
|
-
run: bundle exec rake compile
|
34
|
-
- name: Run tests
|
35
|
-
run: bundle exec rspec
|
data/ext/zstdruby/libzstd/BUCK
DELETED
@@ -1,232 +0,0 @@
|
|
1
|
-
cxx_library(
|
2
|
-
name='zstd',
|
3
|
-
header_namespace='',
|
4
|
-
exported_headers=['zstd.h'],
|
5
|
-
visibility=['PUBLIC'],
|
6
|
-
deps=[
|
7
|
-
':common',
|
8
|
-
':compress',
|
9
|
-
':decompress',
|
10
|
-
':deprecated',
|
11
|
-
],
|
12
|
-
)
|
13
|
-
|
14
|
-
cxx_library(
|
15
|
-
name='compress',
|
16
|
-
header_namespace='',
|
17
|
-
visibility=['PUBLIC'],
|
18
|
-
exported_headers=subdir_glob([
|
19
|
-
('compress', 'zstd*.h'),
|
20
|
-
]),
|
21
|
-
srcs=glob(['compress/zstd*.c', 'compress/hist.c']),
|
22
|
-
deps=[':common'],
|
23
|
-
)
|
24
|
-
|
25
|
-
cxx_library(
|
26
|
-
name='decompress',
|
27
|
-
header_namespace='',
|
28
|
-
visibility=['PUBLIC'],
|
29
|
-
headers=subdir_glob([
|
30
|
-
('decompress', '*_impl.h'),
|
31
|
-
]),
|
32
|
-
srcs=glob(['decompress/zstd*.c']),
|
33
|
-
deps=[
|
34
|
-
':common',
|
35
|
-
':legacy',
|
36
|
-
],
|
37
|
-
)
|
38
|
-
|
39
|
-
cxx_library(
|
40
|
-
name='deprecated',
|
41
|
-
header_namespace='',
|
42
|
-
visibility=['PUBLIC'],
|
43
|
-
exported_headers=subdir_glob([
|
44
|
-
('deprecated', '*.h'),
|
45
|
-
]),
|
46
|
-
srcs=glob(['deprecated/*.c']),
|
47
|
-
deps=[':common'],
|
48
|
-
)
|
49
|
-
|
50
|
-
cxx_library(
|
51
|
-
name='legacy',
|
52
|
-
header_namespace='',
|
53
|
-
visibility=['PUBLIC'],
|
54
|
-
exported_headers=subdir_glob([
|
55
|
-
('legacy', '*.h'),
|
56
|
-
]),
|
57
|
-
srcs=glob(['legacy/*.c']),
|
58
|
-
deps=[':common'],
|
59
|
-
exported_preprocessor_flags=[
|
60
|
-
'-DZSTD_LEGACY_SUPPORT=4',
|
61
|
-
],
|
62
|
-
)
|
63
|
-
|
64
|
-
cxx_library(
|
65
|
-
name='zdict',
|
66
|
-
header_namespace='',
|
67
|
-
visibility=['PUBLIC'],
|
68
|
-
exported_headers=['zdict.h'],
|
69
|
-
headers=subdir_glob([
|
70
|
-
('dictBuilder', 'divsufsort.h'),
|
71
|
-
('dictBuilder', 'cover.h'),
|
72
|
-
]),
|
73
|
-
srcs=glob(['dictBuilder/*.c']),
|
74
|
-
deps=[':common'],
|
75
|
-
)
|
76
|
-
|
77
|
-
cxx_library(
|
78
|
-
name='compiler',
|
79
|
-
header_namespace='',
|
80
|
-
visibility=['PUBLIC'],
|
81
|
-
exported_headers=subdir_glob([
|
82
|
-
('common', 'compiler.h'),
|
83
|
-
]),
|
84
|
-
)
|
85
|
-
|
86
|
-
cxx_library(
|
87
|
-
name='cpu',
|
88
|
-
header_namespace='',
|
89
|
-
visibility=['PUBLIC'],
|
90
|
-
exported_headers=subdir_glob([
|
91
|
-
('common', 'cpu.h'),
|
92
|
-
]),
|
93
|
-
)
|
94
|
-
|
95
|
-
cxx_library(
|
96
|
-
name='bitstream',
|
97
|
-
header_namespace='',
|
98
|
-
visibility=['PUBLIC'],
|
99
|
-
exported_headers=subdir_glob([
|
100
|
-
('common', 'bitstream.h'),
|
101
|
-
]),
|
102
|
-
)
|
103
|
-
|
104
|
-
cxx_library(
|
105
|
-
name='entropy',
|
106
|
-
header_namespace='',
|
107
|
-
visibility=['PUBLIC'],
|
108
|
-
exported_headers=subdir_glob([
|
109
|
-
('common', 'fse.h'),
|
110
|
-
('common', 'huf.h'),
|
111
|
-
]),
|
112
|
-
srcs=[
|
113
|
-
'common/entropy_common.c',
|
114
|
-
'common/fse_decompress.c',
|
115
|
-
'compress/fse_compress.c',
|
116
|
-
'compress/huf_compress.c',
|
117
|
-
'decompress/huf_decompress.c',
|
118
|
-
],
|
119
|
-
deps=[
|
120
|
-
':debug',
|
121
|
-
':bitstream',
|
122
|
-
':compiler',
|
123
|
-
':errors',
|
124
|
-
':mem',
|
125
|
-
],
|
126
|
-
)
|
127
|
-
|
128
|
-
cxx_library(
|
129
|
-
name='errors',
|
130
|
-
header_namespace='',
|
131
|
-
visibility=['PUBLIC'],
|
132
|
-
exported_headers=[
|
133
|
-
'zstd_errors.h',
|
134
|
-
'common/error_private.h',
|
135
|
-
]
|
136
|
-
srcs=['common/error_private.c'],
|
137
|
-
)
|
138
|
-
|
139
|
-
cxx_library(
|
140
|
-
name='mem',
|
141
|
-
header_namespace='',
|
142
|
-
visibility=['PUBLIC'],
|
143
|
-
exported_headers=subdir_glob([
|
144
|
-
('common', 'mem.h'),
|
145
|
-
]),
|
146
|
-
)
|
147
|
-
|
148
|
-
cxx_library(
|
149
|
-
name='pool',
|
150
|
-
header_namespace='',
|
151
|
-
visibility=['PUBLIC'],
|
152
|
-
exported_headers=subdir_glob([
|
153
|
-
('common', 'pool.h'),
|
154
|
-
]),
|
155
|
-
srcs=['common/pool.c'],
|
156
|
-
deps=[
|
157
|
-
':threading',
|
158
|
-
':zstd_common',
|
159
|
-
],
|
160
|
-
)
|
161
|
-
|
162
|
-
cxx_library(
|
163
|
-
name='threading',
|
164
|
-
header_namespace='',
|
165
|
-
visibility=['PUBLIC'],
|
166
|
-
exported_headers=subdir_glob([
|
167
|
-
('common', 'threading.h'),
|
168
|
-
]),
|
169
|
-
srcs=['common/threading.c'],
|
170
|
-
exported_preprocessor_flags=[
|
171
|
-
'-DZSTD_MULTITHREAD',
|
172
|
-
],
|
173
|
-
exported_linker_flags=[
|
174
|
-
'-pthread',
|
175
|
-
],
|
176
|
-
)
|
177
|
-
|
178
|
-
cxx_library(
|
179
|
-
name='xxhash',
|
180
|
-
header_namespace='',
|
181
|
-
visibility=['PUBLIC'],
|
182
|
-
exported_headers=subdir_glob([
|
183
|
-
('common', 'xxhash.h'),
|
184
|
-
]),
|
185
|
-
srcs=['common/xxhash.c'],
|
186
|
-
exported_preprocessor_flags=[
|
187
|
-
'-DXXH_NAMESPACE=ZSTD_',
|
188
|
-
],
|
189
|
-
)
|
190
|
-
|
191
|
-
cxx_library(
|
192
|
-
name='zstd_common',
|
193
|
-
header_namespace='',
|
194
|
-
visibility=['PUBLIC'],
|
195
|
-
exported_headers=subdir_glob([
|
196
|
-
('', 'zstd.h'),
|
197
|
-
('common', 'zstd_internal.h'),
|
198
|
-
]),
|
199
|
-
srcs=['common/zstd_common.c'],
|
200
|
-
deps=[
|
201
|
-
':compiler',
|
202
|
-
':errors',
|
203
|
-
':mem',
|
204
|
-
],
|
205
|
-
)
|
206
|
-
|
207
|
-
cxx_library(
|
208
|
-
name='debug',
|
209
|
-
header_namespace='',
|
210
|
-
visibility=['PUBLIC'],
|
211
|
-
exported_headers=subdir_glob([
|
212
|
-
('common', 'debug.h'),
|
213
|
-
]),
|
214
|
-
srcs=['common/debug.c'],
|
215
|
-
)
|
216
|
-
|
217
|
-
cxx_library(
|
218
|
-
name='common',
|
219
|
-
deps=[
|
220
|
-
':debug',
|
221
|
-
':bitstream',
|
222
|
-
':compiler',
|
223
|
-
':cpu',
|
224
|
-
':entropy',
|
225
|
-
':errors',
|
226
|
-
':mem',
|
227
|
-
':pool',
|
228
|
-
':threading',
|
229
|
-
':xxhash',
|
230
|
-
':zstd_common',
|
231
|
-
]
|
232
|
-
)
|