zstd-ruby 1.4.5.0 → 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 +3 -2
- 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 +45 -62
- data/ext/zstdruby/libzstd/common/compiler.h +205 -22
- data/ext/zstdruby/libzstd/common/cpu.h +1 -3
- data/ext/zstdruby/libzstd/common/debug.c +1 -1
- data/ext/zstdruby/libzstd/common/debug.h +12 -19
- data/ext/zstdruby/libzstd/common/entropy_common.c +172 -48
- data/ext/zstdruby/libzstd/common/error_private.c +10 -2
- data/ext/zstdruby/libzstd/common/error_private.h +82 -3
- data/ext/zstdruby/libzstd/common/fse.h +37 -86
- data/ext/zstdruby/libzstd/common/fse_decompress.c +117 -92
- data/ext/zstdruby/libzstd/common/huf.h +99 -166
- data/ext/zstdruby/libzstd/common/mem.h +124 -142
- data/ext/zstdruby/libzstd/common/pool.c +54 -27
- data/ext/zstdruby/libzstd/common/pool.h +10 -4
- data/ext/zstdruby/libzstd/common/portability_macros.h +156 -0
- data/ext/zstdruby/libzstd/common/threading.c +74 -19
- data/ext/zstdruby/libzstd/common/threading.h +5 -10
- data/ext/zstdruby/libzstd/common/xxhash.c +7 -847
- data/ext/zstdruby/libzstd/common/xxhash.h +5568 -167
- data/ext/zstdruby/libzstd/common/zstd_common.c +2 -37
- data/ext/zstdruby/libzstd/common/zstd_deps.h +111 -0
- data/ext/zstdruby/libzstd/common/zstd_internal.h +132 -187
- data/ext/zstdruby/libzstd/common/zstd_trace.h +163 -0
- data/ext/zstdruby/libzstd/compress/clevels.h +134 -0
- data/ext/zstdruby/libzstd/compress/fse_compress.c +83 -157
- data/ext/zstdruby/libzstd/compress/hist.c +27 -29
- data/ext/zstdruby/libzstd/compress/hist.h +2 -2
- data/ext/zstdruby/libzstd/compress/huf_compress.c +916 -279
- data/ext/zstdruby/libzstd/compress/zstd_compress.c +3773 -1019
- data/ext/zstdruby/libzstd/compress/zstd_compress_internal.h +610 -203
- data/ext/zstdruby/libzstd/compress/zstd_compress_literals.c +119 -42
- data/ext/zstdruby/libzstd/compress/zstd_compress_literals.h +16 -6
- data/ext/zstdruby/libzstd/compress/zstd_compress_sequences.c +42 -19
- data/ext/zstdruby/libzstd/compress/zstd_compress_sequences.h +1 -1
- data/ext/zstdruby/libzstd/compress/zstd_compress_superblock.c +49 -317
- data/ext/zstdruby/libzstd/compress/zstd_compress_superblock.h +1 -1
- data/ext/zstdruby/libzstd/compress/zstd_cwksp.h +320 -103
- data/ext/zstdruby/libzstd/compress/zstd_double_fast.c +388 -151
- data/ext/zstdruby/libzstd/compress/zstd_double_fast.h +3 -2
- data/ext/zstdruby/libzstd/compress/zstd_fast.c +729 -265
- data/ext/zstdruby/libzstd/compress/zstd_fast.h +3 -2
- data/ext/zstdruby/libzstd/compress/zstd_lazy.c +1270 -251
- data/ext/zstdruby/libzstd/compress/zstd_lazy.h +61 -1
- data/ext/zstdruby/libzstd/compress/zstd_ldm.c +324 -219
- data/ext/zstdruby/libzstd/compress/zstd_ldm.h +9 -2
- data/ext/zstdruby/libzstd/compress/zstd_ldm_geartab.h +106 -0
- data/ext/zstdruby/libzstd/compress/zstd_opt.c +481 -209
- data/ext/zstdruby/libzstd/compress/zstd_opt.h +1 -1
- data/ext/zstdruby/libzstd/compress/zstdmt_compress.c +181 -457
- data/ext/zstdruby/libzstd/compress/zstdmt_compress.h +34 -113
- data/ext/zstdruby/libzstd/decompress/huf_decompress.c +1199 -565
- data/ext/zstdruby/libzstd/decompress/huf_decompress_amd64.S +576 -0
- data/ext/zstdruby/libzstd/decompress/zstd_ddict.c +12 -12
- data/ext/zstdruby/libzstd/decompress/zstd_ddict.h +2 -2
- data/ext/zstdruby/libzstd/decompress/zstd_decompress.c +627 -157
- data/ext/zstdruby/libzstd/decompress/zstd_decompress_block.c +1086 -326
- data/ext/zstdruby/libzstd/decompress/zstd_decompress_block.h +19 -5
- data/ext/zstdruby/libzstd/decompress/zstd_decompress_internal.h +62 -13
- data/ext/zstdruby/libzstd/dictBuilder/cover.c +73 -52
- data/ext/zstdruby/libzstd/dictBuilder/cover.h +7 -6
- data/ext/zstdruby/libzstd/dictBuilder/divsufsort.c +1 -1
- data/ext/zstdruby/libzstd/dictBuilder/fastcover.c +44 -35
- data/ext/zstdruby/libzstd/dictBuilder/zdict.c +103 -111
- data/ext/zstdruby/libzstd/{dictBuilder/zdict.h → zdict.h} +203 -34
- data/ext/zstdruby/libzstd/zstd.h +1217 -287
- data/ext/zstdruby/libzstd/{common/zstd_errors.h → zstd_errors.h} +28 -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 +114 -32
- data/lib/zstd-ruby/version.rb +1 -1
- data/lib/zstd-ruby.rb +0 -1
- data/zstd-ruby.gemspec +1 -1
- metadata +19 -36
- data/.travis.yml +0 -14
- data/ext/zstdruby/libzstd/.gitignore +0 -3
- data/ext/zstdruby/libzstd/BUCK +0 -234
- data/ext/zstdruby/libzstd/Makefile +0 -354
- data/ext/zstdruby/libzstd/README.md +0 -179
- 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 -147
- 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 -69
- 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.pc.in +0 -15
- 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.
|
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
|
@@ -78,7 +78,6 @@ files:
|
|
78
78
|
- ".gitignore"
|
79
79
|
- ".gitmodules"
|
80
80
|
- ".rspec"
|
81
|
-
- ".travis.yml"
|
82
81
|
- CODE_OF_CONDUCT.md
|
83
82
|
- Gemfile
|
84
83
|
- LICENSE.txt
|
@@ -86,11 +85,10 @@ files:
|
|
86
85
|
- Rakefile
|
87
86
|
- bin/console
|
88
87
|
- bin/setup
|
88
|
+
- ext/zstdruby/common.h
|
89
89
|
- ext/zstdruby/extconf.rb
|
90
|
-
- ext/zstdruby/libzstd
|
91
|
-
- ext/zstdruby/libzstd/
|
92
|
-
- ext/zstdruby/libzstd/Makefile
|
93
|
-
- ext/zstdruby/libzstd/README.md
|
90
|
+
- ext/zstdruby/libzstd/common/allocations.h
|
91
|
+
- ext/zstdruby/libzstd/common/bits.h
|
94
92
|
- ext/zstdruby/libzstd/common/bitstream.h
|
95
93
|
- ext/zstdruby/libzstd/common/compiler.h
|
96
94
|
- ext/zstdruby/libzstd/common/cpu.h
|
@@ -105,13 +103,16 @@ files:
|
|
105
103
|
- ext/zstdruby/libzstd/common/mem.h
|
106
104
|
- ext/zstdruby/libzstd/common/pool.c
|
107
105
|
- ext/zstdruby/libzstd/common/pool.h
|
106
|
+
- ext/zstdruby/libzstd/common/portability_macros.h
|
108
107
|
- ext/zstdruby/libzstd/common/threading.c
|
109
108
|
- ext/zstdruby/libzstd/common/threading.h
|
110
109
|
- ext/zstdruby/libzstd/common/xxhash.c
|
111
110
|
- ext/zstdruby/libzstd/common/xxhash.h
|
112
111
|
- ext/zstdruby/libzstd/common/zstd_common.c
|
113
|
-
- ext/zstdruby/libzstd/common/
|
112
|
+
- ext/zstdruby/libzstd/common/zstd_deps.h
|
114
113
|
- ext/zstdruby/libzstd/common/zstd_internal.h
|
114
|
+
- ext/zstdruby/libzstd/common/zstd_trace.h
|
115
|
+
- ext/zstdruby/libzstd/compress/clevels.h
|
115
116
|
- ext/zstdruby/libzstd/compress/fse_compress.c
|
116
117
|
- ext/zstdruby/libzstd/compress/hist.c
|
117
118
|
- ext/zstdruby/libzstd/compress/hist.h
|
@@ -133,52 +134,34 @@ files:
|
|
133
134
|
- ext/zstdruby/libzstd/compress/zstd_lazy.h
|
134
135
|
- ext/zstdruby/libzstd/compress/zstd_ldm.c
|
135
136
|
- ext/zstdruby/libzstd/compress/zstd_ldm.h
|
137
|
+
- ext/zstdruby/libzstd/compress/zstd_ldm_geartab.h
|
136
138
|
- ext/zstdruby/libzstd/compress/zstd_opt.c
|
137
139
|
- ext/zstdruby/libzstd/compress/zstd_opt.h
|
138
140
|
- ext/zstdruby/libzstd/compress/zstdmt_compress.c
|
139
141
|
- ext/zstdruby/libzstd/compress/zstdmt_compress.h
|
140
142
|
- ext/zstdruby/libzstd/decompress/huf_decompress.c
|
143
|
+
- ext/zstdruby/libzstd/decompress/huf_decompress_amd64.S
|
141
144
|
- ext/zstdruby/libzstd/decompress/zstd_ddict.c
|
142
145
|
- ext/zstdruby/libzstd/decompress/zstd_ddict.h
|
143
146
|
- ext/zstdruby/libzstd/decompress/zstd_decompress.c
|
144
147
|
- ext/zstdruby/libzstd/decompress/zstd_decompress_block.c
|
145
148
|
- ext/zstdruby/libzstd/decompress/zstd_decompress_block.h
|
146
149
|
- ext/zstdruby/libzstd/decompress/zstd_decompress_internal.h
|
147
|
-
- ext/zstdruby/libzstd/deprecated/zbuff.h
|
148
|
-
- ext/zstdruby/libzstd/deprecated/zbuff_common.c
|
149
|
-
- ext/zstdruby/libzstd/deprecated/zbuff_compress.c
|
150
|
-
- ext/zstdruby/libzstd/deprecated/zbuff_decompress.c
|
151
150
|
- ext/zstdruby/libzstd/dictBuilder/cover.c
|
152
151
|
- ext/zstdruby/libzstd/dictBuilder/cover.h
|
153
152
|
- ext/zstdruby/libzstd/dictBuilder/divsufsort.c
|
154
153
|
- ext/zstdruby/libzstd/dictBuilder/divsufsort.h
|
155
154
|
- ext/zstdruby/libzstd/dictBuilder/fastcover.c
|
156
155
|
- ext/zstdruby/libzstd/dictBuilder/zdict.c
|
157
|
-
- ext/zstdruby/libzstd/
|
158
|
-
- ext/zstdruby/libzstd/dll/example/Makefile
|
159
|
-
- ext/zstdruby/libzstd/dll/example/README.md
|
160
|
-
- ext/zstdruby/libzstd/dll/example/build_package.bat
|
161
|
-
- ext/zstdruby/libzstd/dll/example/fullbench-dll.sln
|
162
|
-
- ext/zstdruby/libzstd/dll/example/fullbench-dll.vcxproj
|
163
|
-
- ext/zstdruby/libzstd/legacy/zstd_legacy.h
|
164
|
-
- ext/zstdruby/libzstd/legacy/zstd_v01.c
|
165
|
-
- ext/zstdruby/libzstd/legacy/zstd_v01.h
|
166
|
-
- ext/zstdruby/libzstd/legacy/zstd_v02.c
|
167
|
-
- ext/zstdruby/libzstd/legacy/zstd_v02.h
|
168
|
-
- ext/zstdruby/libzstd/legacy/zstd_v03.c
|
169
|
-
- ext/zstdruby/libzstd/legacy/zstd_v03.h
|
170
|
-
- ext/zstdruby/libzstd/legacy/zstd_v04.c
|
171
|
-
- ext/zstdruby/libzstd/legacy/zstd_v04.h
|
172
|
-
- ext/zstdruby/libzstd/legacy/zstd_v05.c
|
173
|
-
- ext/zstdruby/libzstd/legacy/zstd_v05.h
|
174
|
-
- ext/zstdruby/libzstd/legacy/zstd_v06.c
|
175
|
-
- ext/zstdruby/libzstd/legacy/zstd_v06.h
|
176
|
-
- ext/zstdruby/libzstd/legacy/zstd_v07.c
|
177
|
-
- ext/zstdruby/libzstd/legacy/zstd_v07.h
|
178
|
-
- ext/zstdruby/libzstd/libzstd.pc.in
|
156
|
+
- ext/zstdruby/libzstd/zdict.h
|
179
157
|
- ext/zstdruby/libzstd/zstd.h
|
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
|
180
164
|
- ext/zstdruby/zstdruby.c
|
181
|
-
- ext/zstdruby/zstdruby.h
|
182
165
|
- lib/zstd-ruby.rb
|
183
166
|
- lib/zstd-ruby/version.rb
|
184
167
|
- zstd-ruby.gemspec
|
@@ -201,7 +184,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
201
184
|
- !ruby/object:Gem::Version
|
202
185
|
version: '0'
|
203
186
|
requirements: []
|
204
|
-
rubygems_version: 3.
|
187
|
+
rubygems_version: 3.3.26
|
205
188
|
signing_key:
|
206
189
|
specification_version: 4
|
207
190
|
summary: Ruby binding for zstd(Zstandard - Fast real-time compression algorithm)
|
data/.travis.yml
DELETED
data/ext/zstdruby/libzstd/BUCK
DELETED
@@ -1,234 +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=subdir_glob([
|
69
|
-
('dictBuilder', 'zdict.h'),
|
70
|
-
]),
|
71
|
-
headers=subdir_glob([
|
72
|
-
('dictBuilder', 'divsufsort.h'),
|
73
|
-
('dictBuilder', 'cover.h'),
|
74
|
-
]),
|
75
|
-
srcs=glob(['dictBuilder/*.c']),
|
76
|
-
deps=[':common'],
|
77
|
-
)
|
78
|
-
|
79
|
-
cxx_library(
|
80
|
-
name='compiler',
|
81
|
-
header_namespace='',
|
82
|
-
visibility=['PUBLIC'],
|
83
|
-
exported_headers=subdir_glob([
|
84
|
-
('common', 'compiler.h'),
|
85
|
-
]),
|
86
|
-
)
|
87
|
-
|
88
|
-
cxx_library(
|
89
|
-
name='cpu',
|
90
|
-
header_namespace='',
|
91
|
-
visibility=['PUBLIC'],
|
92
|
-
exported_headers=subdir_glob([
|
93
|
-
('common', 'cpu.h'),
|
94
|
-
]),
|
95
|
-
)
|
96
|
-
|
97
|
-
cxx_library(
|
98
|
-
name='bitstream',
|
99
|
-
header_namespace='',
|
100
|
-
visibility=['PUBLIC'],
|
101
|
-
exported_headers=subdir_glob([
|
102
|
-
('common', 'bitstream.h'),
|
103
|
-
]),
|
104
|
-
)
|
105
|
-
|
106
|
-
cxx_library(
|
107
|
-
name='entropy',
|
108
|
-
header_namespace='',
|
109
|
-
visibility=['PUBLIC'],
|
110
|
-
exported_headers=subdir_glob([
|
111
|
-
('common', 'fse.h'),
|
112
|
-
('common', 'huf.h'),
|
113
|
-
]),
|
114
|
-
srcs=[
|
115
|
-
'common/entropy_common.c',
|
116
|
-
'common/fse_decompress.c',
|
117
|
-
'compress/fse_compress.c',
|
118
|
-
'compress/huf_compress.c',
|
119
|
-
'decompress/huf_decompress.c',
|
120
|
-
],
|
121
|
-
deps=[
|
122
|
-
':debug',
|
123
|
-
':bitstream',
|
124
|
-
':compiler',
|
125
|
-
':errors',
|
126
|
-
':mem',
|
127
|
-
],
|
128
|
-
)
|
129
|
-
|
130
|
-
cxx_library(
|
131
|
-
name='errors',
|
132
|
-
header_namespace='',
|
133
|
-
visibility=['PUBLIC'],
|
134
|
-
exported_headers=subdir_glob([
|
135
|
-
('common', 'error_private.h'),
|
136
|
-
('common', 'zstd_errors.h'),
|
137
|
-
]),
|
138
|
-
srcs=['common/error_private.c'],
|
139
|
-
)
|
140
|
-
|
141
|
-
cxx_library(
|
142
|
-
name='mem',
|
143
|
-
header_namespace='',
|
144
|
-
visibility=['PUBLIC'],
|
145
|
-
exported_headers=subdir_glob([
|
146
|
-
('common', 'mem.h'),
|
147
|
-
]),
|
148
|
-
)
|
149
|
-
|
150
|
-
cxx_library(
|
151
|
-
name='pool',
|
152
|
-
header_namespace='',
|
153
|
-
visibility=['PUBLIC'],
|
154
|
-
exported_headers=subdir_glob([
|
155
|
-
('common', 'pool.h'),
|
156
|
-
]),
|
157
|
-
srcs=['common/pool.c'],
|
158
|
-
deps=[
|
159
|
-
':threading',
|
160
|
-
':zstd_common',
|
161
|
-
],
|
162
|
-
)
|
163
|
-
|
164
|
-
cxx_library(
|
165
|
-
name='threading',
|
166
|
-
header_namespace='',
|
167
|
-
visibility=['PUBLIC'],
|
168
|
-
exported_headers=subdir_glob([
|
169
|
-
('common', 'threading.h'),
|
170
|
-
]),
|
171
|
-
srcs=['common/threading.c'],
|
172
|
-
exported_preprocessor_flags=[
|
173
|
-
'-DZSTD_MULTITHREAD',
|
174
|
-
],
|
175
|
-
exported_linker_flags=[
|
176
|
-
'-pthread',
|
177
|
-
],
|
178
|
-
)
|
179
|
-
|
180
|
-
cxx_library(
|
181
|
-
name='xxhash',
|
182
|
-
header_namespace='',
|
183
|
-
visibility=['PUBLIC'],
|
184
|
-
exported_headers=subdir_glob([
|
185
|
-
('common', 'xxhash.h'),
|
186
|
-
]),
|
187
|
-
srcs=['common/xxhash.c'],
|
188
|
-
exported_preprocessor_flags=[
|
189
|
-
'-DXXH_NAMESPACE=ZSTD_',
|
190
|
-
],
|
191
|
-
)
|
192
|
-
|
193
|
-
cxx_library(
|
194
|
-
name='zstd_common',
|
195
|
-
header_namespace='',
|
196
|
-
visibility=['PUBLIC'],
|
197
|
-
exported_headers=subdir_glob([
|
198
|
-
('', 'zstd.h'),
|
199
|
-
('common', 'zstd_internal.h'),
|
200
|
-
]),
|
201
|
-
srcs=['common/zstd_common.c'],
|
202
|
-
deps=[
|
203
|
-
':compiler',
|
204
|
-
':errors',
|
205
|
-
':mem',
|
206
|
-
],
|
207
|
-
)
|
208
|
-
|
209
|
-
cxx_library(
|
210
|
-
name='debug',
|
211
|
-
header_namespace='',
|
212
|
-
visibility=['PUBLIC'],
|
213
|
-
exported_headers=subdir_glob([
|
214
|
-
('common', 'debug.h'),
|
215
|
-
]),
|
216
|
-
srcs=['common/debug.c'],
|
217
|
-
)
|
218
|
-
|
219
|
-
cxx_library(
|
220
|
-
name='common',
|
221
|
-
deps=[
|
222
|
-
':debug',
|
223
|
-
':bitstream',
|
224
|
-
':compiler',
|
225
|
-
':cpu',
|
226
|
-
':entropy',
|
227
|
-
':errors',
|
228
|
-
':mem',
|
229
|
-
':pool',
|
230
|
-
':threading',
|
231
|
-
':xxhash',
|
232
|
-
':zstd_common',
|
233
|
-
]
|
234
|
-
)
|