extzstd 0.3.2 → 0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +4 -3
- data/contrib/zstd/CHANGELOG +225 -1
- data/contrib/zstd/CONTRIBUTING.md +158 -75
- data/contrib/zstd/LICENSE +4 -4
- data/contrib/zstd/Makefile +106 -69
- data/contrib/zstd/Package.swift +36 -0
- data/contrib/zstd/README.md +64 -36
- data/contrib/zstd/SECURITY.md +15 -0
- data/contrib/zstd/TESTING.md +2 -3
- data/contrib/zstd/lib/BUCK +5 -7
- data/contrib/zstd/lib/Makefile +117 -199
- data/contrib/zstd/lib/README.md +37 -7
- data/contrib/zstd/lib/common/allocations.h +55 -0
- data/contrib/zstd/lib/common/bits.h +200 -0
- data/contrib/zstd/lib/common/bitstream.h +80 -86
- data/contrib/zstd/lib/common/compiler.h +225 -63
- data/contrib/zstd/lib/common/cpu.h +37 -1
- data/contrib/zstd/lib/common/debug.c +7 -1
- data/contrib/zstd/lib/common/debug.h +21 -12
- data/contrib/zstd/lib/common/entropy_common.c +15 -37
- data/contrib/zstd/lib/common/error_private.c +9 -2
- data/contrib/zstd/lib/common/error_private.h +93 -5
- data/contrib/zstd/lib/common/fse.h +12 -87
- data/contrib/zstd/lib/common/fse_decompress.c +37 -117
- data/contrib/zstd/lib/common/huf.h +97 -172
- data/contrib/zstd/lib/common/mem.h +58 -58
- data/contrib/zstd/lib/common/pool.c +38 -17
- data/contrib/zstd/lib/common/pool.h +10 -4
- data/contrib/zstd/lib/common/portability_macros.h +158 -0
- data/contrib/zstd/lib/common/threading.c +74 -14
- data/contrib/zstd/lib/common/threading.h +5 -10
- data/contrib/zstd/lib/common/xxhash.c +6 -814
- data/contrib/zstd/lib/common/xxhash.h +6930 -195
- data/contrib/zstd/lib/common/zstd_common.c +1 -36
- data/contrib/zstd/lib/common/zstd_deps.h +1 -1
- data/contrib/zstd/lib/common/zstd_internal.h +68 -154
- data/contrib/zstd/lib/common/zstd_trace.h +163 -0
- data/contrib/zstd/lib/compress/clevels.h +134 -0
- data/contrib/zstd/lib/compress/fse_compress.c +75 -155
- data/contrib/zstd/lib/compress/hist.c +1 -1
- data/contrib/zstd/lib/compress/hist.h +1 -1
- data/contrib/zstd/lib/compress/huf_compress.c +810 -259
- data/contrib/zstd/lib/compress/zstd_compress.c +2864 -919
- data/contrib/zstd/lib/compress/zstd_compress_internal.h +523 -192
- data/contrib/zstd/lib/compress/zstd_compress_literals.c +117 -40
- data/contrib/zstd/lib/compress/zstd_compress_literals.h +16 -6
- data/contrib/zstd/lib/compress/zstd_compress_sequences.c +28 -19
- data/contrib/zstd/lib/compress/zstd_compress_sequences.h +1 -1
- data/contrib/zstd/lib/compress/zstd_compress_superblock.c +251 -412
- data/contrib/zstd/lib/compress/zstd_compress_superblock.h +1 -1
- data/contrib/zstd/lib/compress/zstd_cwksp.h +284 -97
- data/contrib/zstd/lib/compress/zstd_double_fast.c +382 -133
- data/contrib/zstd/lib/compress/zstd_double_fast.h +14 -2
- data/contrib/zstd/lib/compress/zstd_fast.c +732 -260
- data/contrib/zstd/lib/compress/zstd_fast.h +3 -2
- data/contrib/zstd/lib/compress/zstd_lazy.c +1177 -390
- data/contrib/zstd/lib/compress/zstd_lazy.h +129 -14
- data/contrib/zstd/lib/compress/zstd_ldm.c +280 -210
- data/contrib/zstd/lib/compress/zstd_ldm.h +3 -2
- data/contrib/zstd/lib/compress/zstd_ldm_geartab.h +106 -0
- data/contrib/zstd/lib/compress/zstd_opt.c +516 -285
- data/contrib/zstd/lib/compress/zstd_opt.h +32 -8
- data/contrib/zstd/lib/compress/zstdmt_compress.c +202 -131
- data/contrib/zstd/lib/compress/zstdmt_compress.h +9 -6
- data/contrib/zstd/lib/decompress/huf_decompress.c +1149 -555
- data/contrib/zstd/lib/decompress/huf_decompress_amd64.S +595 -0
- data/contrib/zstd/lib/decompress/zstd_ddict.c +4 -4
- data/contrib/zstd/lib/decompress/zstd_ddict.h +1 -1
- data/contrib/zstd/lib/decompress/zstd_decompress.c +583 -106
- data/contrib/zstd/lib/decompress/zstd_decompress_block.c +1054 -379
- data/contrib/zstd/lib/decompress/zstd_decompress_block.h +14 -3
- data/contrib/zstd/lib/decompress/zstd_decompress_internal.h +56 -6
- data/contrib/zstd/lib/deprecated/zbuff.h +1 -1
- data/contrib/zstd/lib/deprecated/zbuff_common.c +1 -1
- data/contrib/zstd/lib/deprecated/zbuff_compress.c +24 -4
- data/contrib/zstd/lib/deprecated/zbuff_decompress.c +3 -1
- data/contrib/zstd/lib/dictBuilder/cover.c +60 -44
- data/contrib/zstd/lib/dictBuilder/cover.h +6 -11
- data/contrib/zstd/lib/dictBuilder/divsufsort.c +1 -1
- data/contrib/zstd/lib/dictBuilder/fastcover.c +26 -18
- data/contrib/zstd/lib/dictBuilder/zdict.c +100 -101
- data/contrib/zstd/lib/legacy/zstd_legacy.h +38 -1
- data/contrib/zstd/lib/legacy/zstd_v01.c +18 -53
- data/contrib/zstd/lib/legacy/zstd_v01.h +1 -1
- data/contrib/zstd/lib/legacy/zstd_v02.c +28 -85
- data/contrib/zstd/lib/legacy/zstd_v02.h +1 -1
- data/contrib/zstd/lib/legacy/zstd_v03.c +29 -88
- data/contrib/zstd/lib/legacy/zstd_v03.h +1 -1
- data/contrib/zstd/lib/legacy/zstd_v04.c +27 -80
- data/contrib/zstd/lib/legacy/zstd_v04.h +1 -1
- data/contrib/zstd/lib/legacy/zstd_v05.c +36 -85
- data/contrib/zstd/lib/legacy/zstd_v05.h +1 -1
- data/contrib/zstd/lib/legacy/zstd_v06.c +44 -96
- data/contrib/zstd/lib/legacy/zstd_v06.h +1 -1
- data/contrib/zstd/lib/legacy/zstd_v07.c +37 -92
- data/contrib/zstd/lib/legacy/zstd_v07.h +1 -1
- data/contrib/zstd/lib/libzstd.mk +237 -0
- data/contrib/zstd/lib/libzstd.pc.in +4 -3
- data/contrib/zstd/lib/module.modulemap +35 -0
- data/contrib/zstd/lib/{dictBuilder/zdict.h → zdict.h} +202 -33
- data/contrib/zstd/lib/zstd.h +1030 -332
- data/contrib/zstd/lib/{common/zstd_errors.h → zstd_errors.h} +27 -8
- data/ext/extconf.rb +26 -7
- data/ext/extzstd.c +51 -24
- data/ext/extzstd.h +33 -6
- data/ext/extzstd_stream.c +74 -31
- data/ext/libzstd_conf.h +0 -1
- data/ext/zstd_decompress_asm.S +1 -0
- metadata +17 -7
- data/contrib/zstd/appveyor.yml +0 -292
- data/ext/depend +0 -2
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: extzstd
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: '0.4'
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- dearblue
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2024-05-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|
@@ -69,12 +69,15 @@ files:
|
|
69
69
|
- contrib/zstd/COPYING
|
70
70
|
- contrib/zstd/LICENSE
|
71
71
|
- contrib/zstd/Makefile
|
72
|
+
- contrib/zstd/Package.swift
|
72
73
|
- contrib/zstd/README.md
|
74
|
+
- contrib/zstd/SECURITY.md
|
73
75
|
- contrib/zstd/TESTING.md
|
74
|
-
- contrib/zstd/appveyor.yml
|
75
76
|
- contrib/zstd/lib/BUCK
|
76
77
|
- contrib/zstd/lib/Makefile
|
77
78
|
- contrib/zstd/lib/README.md
|
79
|
+
- contrib/zstd/lib/common/allocations.h
|
80
|
+
- contrib/zstd/lib/common/bits.h
|
78
81
|
- contrib/zstd/lib/common/bitstream.h
|
79
82
|
- contrib/zstd/lib/common/compiler.h
|
80
83
|
- contrib/zstd/lib/common/cpu.h
|
@@ -89,14 +92,16 @@ files:
|
|
89
92
|
- contrib/zstd/lib/common/mem.h
|
90
93
|
- contrib/zstd/lib/common/pool.c
|
91
94
|
- contrib/zstd/lib/common/pool.h
|
95
|
+
- contrib/zstd/lib/common/portability_macros.h
|
92
96
|
- contrib/zstd/lib/common/threading.c
|
93
97
|
- contrib/zstd/lib/common/threading.h
|
94
98
|
- contrib/zstd/lib/common/xxhash.c
|
95
99
|
- contrib/zstd/lib/common/xxhash.h
|
96
100
|
- contrib/zstd/lib/common/zstd_common.c
|
97
101
|
- contrib/zstd/lib/common/zstd_deps.h
|
98
|
-
- contrib/zstd/lib/common/zstd_errors.h
|
99
102
|
- contrib/zstd/lib/common/zstd_internal.h
|
103
|
+
- contrib/zstd/lib/common/zstd_trace.h
|
104
|
+
- contrib/zstd/lib/compress/clevels.h
|
100
105
|
- contrib/zstd/lib/compress/fse_compress.c
|
101
106
|
- contrib/zstd/lib/compress/hist.c
|
102
107
|
- contrib/zstd/lib/compress/hist.h
|
@@ -118,11 +123,13 @@ files:
|
|
118
123
|
- contrib/zstd/lib/compress/zstd_lazy.h
|
119
124
|
- contrib/zstd/lib/compress/zstd_ldm.c
|
120
125
|
- contrib/zstd/lib/compress/zstd_ldm.h
|
126
|
+
- contrib/zstd/lib/compress/zstd_ldm_geartab.h
|
121
127
|
- contrib/zstd/lib/compress/zstd_opt.c
|
122
128
|
- contrib/zstd/lib/compress/zstd_opt.h
|
123
129
|
- contrib/zstd/lib/compress/zstdmt_compress.c
|
124
130
|
- contrib/zstd/lib/compress/zstdmt_compress.h
|
125
131
|
- contrib/zstd/lib/decompress/huf_decompress.c
|
132
|
+
- contrib/zstd/lib/decompress/huf_decompress_amd64.S
|
126
133
|
- contrib/zstd/lib/decompress/zstd_ddict.c
|
127
134
|
- contrib/zstd/lib/decompress/zstd_ddict.h
|
128
135
|
- contrib/zstd/lib/decompress/zstd_decompress.c
|
@@ -139,7 +146,6 @@ files:
|
|
139
146
|
- contrib/zstd/lib/dictBuilder/divsufsort.h
|
140
147
|
- contrib/zstd/lib/dictBuilder/fastcover.c
|
141
148
|
- contrib/zstd/lib/dictBuilder/zdict.c
|
142
|
-
- contrib/zstd/lib/dictBuilder/zdict.h
|
143
149
|
- contrib/zstd/lib/legacy/zstd_legacy.h
|
144
150
|
- contrib/zstd/lib/legacy/zstd_v01.c
|
145
151
|
- contrib/zstd/lib/legacy/zstd_v01.h
|
@@ -155,9 +161,12 @@ files:
|
|
155
161
|
- contrib/zstd/lib/legacy/zstd_v06.h
|
156
162
|
- contrib/zstd/lib/legacy/zstd_v07.c
|
157
163
|
- contrib/zstd/lib/legacy/zstd_v07.h
|
164
|
+
- contrib/zstd/lib/libzstd.mk
|
158
165
|
- contrib/zstd/lib/libzstd.pc.in
|
166
|
+
- contrib/zstd/lib/module.modulemap
|
167
|
+
- contrib/zstd/lib/zdict.h
|
159
168
|
- contrib/zstd/lib/zstd.h
|
160
|
-
-
|
169
|
+
- contrib/zstd/lib/zstd_errors.h
|
161
170
|
- ext/extconf.rb
|
162
171
|
- ext/extzstd.c
|
163
172
|
- ext/extzstd.h
|
@@ -167,6 +176,7 @@ files:
|
|
167
176
|
- ext/zstd_common.c
|
168
177
|
- ext/zstd_compress.c
|
169
178
|
- ext/zstd_decompress.c
|
179
|
+
- ext/zstd_decompress_asm.S
|
170
180
|
- ext/zstd_dictbuilder.c
|
171
181
|
- ext/zstd_dictbuilder_fastcover.c
|
172
182
|
- ext/zstd_legacy_v01.c
|
@@ -203,7 +213,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
203
213
|
- !ruby/object:Gem::Version
|
204
214
|
version: '0'
|
205
215
|
requirements: []
|
206
|
-
rubygems_version: 3.
|
216
|
+
rubygems_version: 3.5.9
|
207
217
|
signing_key:
|
208
218
|
specification_version: 4
|
209
219
|
summary: ruby bindings for Zstandard (zstd)
|
data/contrib/zstd/appveyor.yml
DELETED
@@ -1,292 +0,0 @@
|
|
1
|
-
# Following tests are run _only_ on master branch
|
2
|
-
# To reproduce these tests, it's possible to push into a branch `appveyorTest`
|
3
|
-
# or a branch `visual*`, they will intentionnally trigger `master` tests
|
4
|
-
|
5
|
-
-
|
6
|
-
version: 1.0.{build}
|
7
|
-
branches:
|
8
|
-
only:
|
9
|
-
- master
|
10
|
-
- appveyorTest
|
11
|
-
- /visual*/
|
12
|
-
environment:
|
13
|
-
matrix:
|
14
|
-
- COMPILER: "gcc"
|
15
|
-
HOST: "mingw"
|
16
|
-
PLATFORM: "x64"
|
17
|
-
SCRIPT: "make allzstd MOREFLAGS=-static && make -C tests fullbench-lib"
|
18
|
-
ARTIFACT: "true"
|
19
|
-
BUILD: "true"
|
20
|
-
- COMPILER: "gcc"
|
21
|
-
HOST: "mingw"
|
22
|
-
PLATFORM: "x86"
|
23
|
-
SCRIPT: "make allzstd MOREFLAGS=-static"
|
24
|
-
ARTIFACT: "true"
|
25
|
-
BUILD: "true"
|
26
|
-
- COMPILER: "clang"
|
27
|
-
HOST: "mingw"
|
28
|
-
PLATFORM: "x64"
|
29
|
-
SCRIPT: "MOREFLAGS='--target=x86_64-w64-mingw32 -Werror -Wconversion -Wno-sign-conversion' make allzstd"
|
30
|
-
BUILD: "true"
|
31
|
-
|
32
|
-
- COMPILER: "gcc"
|
33
|
-
HOST: "mingw"
|
34
|
-
PLATFORM: "x64"
|
35
|
-
SCRIPT: ""
|
36
|
-
TEST: "cmake"
|
37
|
-
|
38
|
-
- COMPILER: "visual"
|
39
|
-
HOST: "visual"
|
40
|
-
PLATFORM: "x64"
|
41
|
-
CONFIGURATION: "Debug"
|
42
|
-
- COMPILER: "visual"
|
43
|
-
HOST: "visual"
|
44
|
-
PLATFORM: "Win32"
|
45
|
-
CONFIGURATION: "Debug"
|
46
|
-
- COMPILER: "visual"
|
47
|
-
HOST: "visual"
|
48
|
-
PLATFORM: "x64"
|
49
|
-
CONFIGURATION: "Release"
|
50
|
-
- COMPILER: "visual"
|
51
|
-
HOST: "visual"
|
52
|
-
PLATFORM: "Win32"
|
53
|
-
CONFIGURATION: "Release"
|
54
|
-
|
55
|
-
install:
|
56
|
-
- ECHO Installing %COMPILER% %PLATFORM% %CONFIGURATION%
|
57
|
-
- SET PATH_ORIGINAL=%PATH%
|
58
|
-
- if [%HOST%]==[mingw] (
|
59
|
-
SET "PATH_MINGW32=C:\mingw-w64\i686-6.3.0-posix-dwarf-rt_v5-rev1\mingw32\bin" &&
|
60
|
-
SET "PATH_MINGW64=C:\mingw-w64\x86_64-6.3.0-posix-seh-rt_v5-rev1\mingw64\bin" &&
|
61
|
-
COPY C:\msys64\usr\bin\make.exe C:\mingw-w64\i686-6.3.0-posix-dwarf-rt_v5-rev1\mingw32\bin\make.exe &&
|
62
|
-
COPY C:\msys64\usr\bin\make.exe C:\mingw-w64\x86_64-6.3.0-posix-seh-rt_v5-rev1\mingw64\bin\make.exe
|
63
|
-
)
|
64
|
-
- IF [%HOST%]==[visual] IF [%PLATFORM%]==[x64] (
|
65
|
-
SET ADDITIONALPARAM=/p:LibraryPath="C:\Program Files\Microsoft SDKs\Windows\v7.1\lib\x64;c:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\lib\amd64;C:\Program Files (x86)\Microsoft Visual Studio 10.0\;C:\Program Files (x86)\Microsoft Visual Studio 10.0\lib\amd64;"
|
66
|
-
)
|
67
|
-
|
68
|
-
build_script:
|
69
|
-
- if [%HOST%]==[mingw] (
|
70
|
-
( if [%PLATFORM%]==[x64] (
|
71
|
-
SET "PATH=%PATH_MINGW64%;%PATH_ORIGINAL%"
|
72
|
-
) else if [%PLATFORM%]==[x86] (
|
73
|
-
SET "PATH=%PATH_MINGW32%;%PATH_ORIGINAL%"
|
74
|
-
) )
|
75
|
-
)
|
76
|
-
- if [%HOST%]==[mingw] if [%BUILD%]==[true] (
|
77
|
-
make -v &&
|
78
|
-
sh -c "%COMPILER% -v" &&
|
79
|
-
ECHO Building zlib to static link &&
|
80
|
-
SET "CC=%COMPILER%" &&
|
81
|
-
sh -c "cd .. && git clone --depth 1 --branch v1.2.11 https://github.com/madler/zlib" &&
|
82
|
-
sh -c "cd ../zlib && make -f win32/Makefile.gcc libz.a"
|
83
|
-
ECHO Building zstd &&
|
84
|
-
SET "CPPFLAGS=-I../../zlib" &&
|
85
|
-
SET "LDFLAGS=../../zlib/libz.a" &&
|
86
|
-
sh -c "%SCRIPT%" &&
|
87
|
-
( if [%COMPILER%]==[gcc] if [%ARTIFACT%]==[true]
|
88
|
-
ECHO Creating artifacts &&
|
89
|
-
ECHO %cd% &&
|
90
|
-
lib\dll\example\build_package.bat &&
|
91
|
-
make -C programs DEBUGFLAGS= clean zstd &&
|
92
|
-
cd programs\ && 7z a -tzip -mx9 zstd-win-binary-%PLATFORM%.zip zstd.exe &&
|
93
|
-
appveyor PushArtifact zstd-win-binary-%PLATFORM%.zip &&
|
94
|
-
cp zstd.exe ..\bin\zstd.exe &&
|
95
|
-
git clone --depth 1 --branch master https://github.com/facebook/zstd &&
|
96
|
-
cd zstd &&
|
97
|
-
git archive --format=tar master -o zstd-src.tar &&
|
98
|
-
..\zstd -19 zstd-src.tar &&
|
99
|
-
appveyor PushArtifact zstd-src.tar.zst &&
|
100
|
-
certUtil -hashfile zstd-src.tar.zst SHA256 > zstd-src.tar.zst.sha256.sig &&
|
101
|
-
appveyor PushArtifact zstd-src.tar.zst.sha256.sig &&
|
102
|
-
cd ..\..\bin\ &&
|
103
|
-
7z a -tzip -mx9 zstd-win-release-%PLATFORM%.zip * &&
|
104
|
-
appveyor PushArtifact zstd-win-release-%PLATFORM%.zip
|
105
|
-
)
|
106
|
-
)
|
107
|
-
- if [%HOST%]==[visual] (
|
108
|
-
ECHO *** &&
|
109
|
-
ECHO *** Building Visual Studio 2008 %PLATFORM%\%CONFIGURATION% in %APPVEYOR_BUILD_FOLDER% &&
|
110
|
-
ECHO *** &&
|
111
|
-
msbuild "build\VS2008\zstd.sln" /m /verbosity:minimal /property:PlatformToolset=v90 /t:Clean,Build /p:Platform=%PLATFORM% /p:Configuration=%CONFIGURATION% /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll" &&
|
112
|
-
DIR build\VS2008\bin\%PLATFORM%\%CONFIGURATION%\*.exe &&
|
113
|
-
MD5sum build/VS2008/bin/%PLATFORM%/%CONFIGURATION%/*.exe &&
|
114
|
-
COPY build\VS2008\bin\%PLATFORM%\%CONFIGURATION%\fuzzer.exe tests\fuzzer_VS2008_%PLATFORM%_%CONFIGURATION%.exe &&
|
115
|
-
ECHO *** &&
|
116
|
-
ECHO *** Building Visual Studio 2010 %PLATFORM%\%CONFIGURATION% &&
|
117
|
-
ECHO *** &&
|
118
|
-
msbuild "build\VS2010\zstd.sln" %ADDITIONALPARAM% /m /verbosity:minimal /property:PlatformToolset=v100 /p:ForceImportBeforeCppTargets=%APPVEYOR_BUILD_FOLDER%\build\VS2010\CompileAsCpp.props /t:Clean,Build /p:Platform=%PLATFORM% /p:Configuration=%CONFIGURATION% /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll" &&
|
119
|
-
DIR build\VS2010\bin\%PLATFORM%_%CONFIGURATION%\*.exe &&
|
120
|
-
MD5sum build/VS2010/bin/%PLATFORM%_%CONFIGURATION%/*.exe &&
|
121
|
-
msbuild "build\VS2010\zstd.sln" %ADDITIONALPARAM% /m /verbosity:minimal /property:PlatformToolset=v100 /t:Clean,Build /p:Platform=%PLATFORM% /p:Configuration=%CONFIGURATION% /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll" &&
|
122
|
-
DIR build\VS2010\bin\%PLATFORM%_%CONFIGURATION%\*.exe &&
|
123
|
-
MD5sum build/VS2010/bin/%PLATFORM%_%CONFIGURATION%/*.exe &&
|
124
|
-
COPY build\VS2010\bin\%PLATFORM%_%CONFIGURATION%\fuzzer.exe tests\fuzzer_VS2010_%PLATFORM%_%CONFIGURATION%.exe &&
|
125
|
-
ECHO *** &&
|
126
|
-
ECHO *** Building Visual Studio 2012 %PLATFORM%\%CONFIGURATION% &&
|
127
|
-
ECHO *** &&
|
128
|
-
msbuild "build\VS2010\zstd.sln" /m /verbosity:minimal /property:PlatformToolset=v110 /p:ForceImportBeforeCppTargets=%APPVEYOR_BUILD_FOLDER%\build\VS2010\CompileAsCpp.props /t:Clean,Build /p:Platform=%PLATFORM% /p:Configuration=%CONFIGURATION% /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll" &&
|
129
|
-
DIR build\VS2010\bin\%PLATFORM%_%CONFIGURATION%\*.exe &&
|
130
|
-
MD5sum build/VS2010/bin/%PLATFORM%_%CONFIGURATION%/*.exe &&
|
131
|
-
msbuild "build\VS2010\zstd.sln" /m /verbosity:minimal /property:PlatformToolset=v110 /t:Clean,Build /p:Platform=%PLATFORM% /p:Configuration=%CONFIGURATION% /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll" &&
|
132
|
-
DIR build\VS2010\bin\%PLATFORM%_%CONFIGURATION%\*.exe &&
|
133
|
-
MD5sum build/VS2010/bin/%PLATFORM%_%CONFIGURATION%/*.exe &&
|
134
|
-
COPY build\VS2010\bin\%PLATFORM%_%CONFIGURATION%\fuzzer.exe tests\fuzzer_VS2012_%PLATFORM%_%CONFIGURATION%.exe &&
|
135
|
-
ECHO *** &&
|
136
|
-
ECHO *** Building Visual Studio 2013 %PLATFORM%\%CONFIGURATION% &&
|
137
|
-
ECHO *** &&
|
138
|
-
msbuild "build\VS2010\zstd.sln" /m /verbosity:minimal /property:PlatformToolset=v120 /p:ForceImportBeforeCppTargets=%APPVEYOR_BUILD_FOLDER%\build\VS2010\CompileAsCpp.props /t:Clean,Build /p:Platform=%PLATFORM% /p:Configuration=%CONFIGURATION% /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll" &&
|
139
|
-
DIR build\VS2010\bin\%PLATFORM%_%CONFIGURATION%\*.exe &&
|
140
|
-
MD5sum build/VS2010/bin/%PLATFORM%_%CONFIGURATION%/*.exe &&
|
141
|
-
msbuild "build\VS2010\zstd.sln" /m /verbosity:minimal /property:PlatformToolset=v120 /t:Clean,Build /p:Platform=%PLATFORM% /p:Configuration=%CONFIGURATION% /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll" &&
|
142
|
-
DIR build\VS2010\bin\%PLATFORM%_%CONFIGURATION%\*.exe &&
|
143
|
-
MD5sum build/VS2010/bin/%PLATFORM%_%CONFIGURATION%/*.exe &&
|
144
|
-
COPY build\VS2010\bin\%PLATFORM%_%CONFIGURATION%\fuzzer.exe tests\fuzzer_VS2013_%PLATFORM%_%CONFIGURATION%.exe &&
|
145
|
-
ECHO *** &&
|
146
|
-
ECHO *** Building Visual Studio 2015 %PLATFORM%\%CONFIGURATION% &&
|
147
|
-
ECHO *** &&
|
148
|
-
msbuild "build\VS2010\zstd.sln" /m /verbosity:minimal /property:PlatformToolset=v140 /p:ForceImportBeforeCppTargets=%APPVEYOR_BUILD_FOLDER%\build\VS2010\CompileAsCpp.props /t:Clean,Build /p:Platform=%PLATFORM% /p:Configuration=%CONFIGURATION% /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll" &&
|
149
|
-
DIR build\VS2010\bin\%PLATFORM%_%CONFIGURATION%\*.exe &&
|
150
|
-
MD5sum build/VS2010/bin/%PLATFORM%_%CONFIGURATION%/*.exe &&
|
151
|
-
msbuild "build\VS2010\zstd.sln" /m /verbosity:minimal /property:PlatformToolset=v140 /t:Clean,Build /p:Platform=%PLATFORM% /p:Configuration=%CONFIGURATION% /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll" &&
|
152
|
-
DIR build\VS2010\bin\%PLATFORM%_%CONFIGURATION%\*.exe &&
|
153
|
-
MD5sum build/VS2010/bin/%PLATFORM%_%CONFIGURATION%/*.exe &&
|
154
|
-
COPY build\VS2010\bin\%PLATFORM%_%CONFIGURATION%\fuzzer.exe tests\fuzzer_VS2015_%PLATFORM%_%CONFIGURATION%.exe &&
|
155
|
-
COPY build\VS2010\bin\%PLATFORM%_%CONFIGURATION%\*.exe tests\
|
156
|
-
)
|
157
|
-
|
158
|
-
test_script:
|
159
|
-
- ECHO Testing %COMPILER% %PLATFORM% %CONFIGURATION%
|
160
|
-
- SET "CC=gcc"
|
161
|
-
- SET "CXX=g++"
|
162
|
-
- if [%TEST%]==[cmake] (
|
163
|
-
mkdir build\cmake\build &&
|
164
|
-
cd build\cmake\build &&
|
165
|
-
SET FUZZERTEST=-T2mn &&
|
166
|
-
SET ZSTREAM_TESTTIME=-T2mn &&
|
167
|
-
cmake -G "Visual Studio 14 2015 Win64" .. &&
|
168
|
-
cd ..\..\.. &&
|
169
|
-
make clean
|
170
|
-
)
|
171
|
-
- SET "FUZZERTEST=-T30s"
|
172
|
-
- if [%HOST%]==[visual] if [%CONFIGURATION%]==[Release] (
|
173
|
-
CD tests &&
|
174
|
-
SET ZSTD_BIN=./zstd.exe&&
|
175
|
-
SET DATAGEN_BIN=./datagen.exe&&
|
176
|
-
sh -e playTests.sh --test-large-data &&
|
177
|
-
fullbench.exe -i1 &&
|
178
|
-
fullbench.exe -i1 -P0 &&
|
179
|
-
fuzzer_VS2012_%PLATFORM%_Release.exe %FUZZERTEST% &&
|
180
|
-
fuzzer_VS2013_%PLATFORM%_Release.exe %FUZZERTEST% &&
|
181
|
-
fuzzer_VS2015_%PLATFORM%_Release.exe %FUZZERTEST%
|
182
|
-
)
|
183
|
-
|
184
|
-
|
185
|
-
# The following tests are for regular pushes
|
186
|
-
# into `dev` or some feature branch
|
187
|
-
# There run less tests, for shorter feedback loop
|
188
|
-
|
189
|
-
-
|
190
|
-
version: 1.0.{build}
|
191
|
-
environment:
|
192
|
-
matrix:
|
193
|
-
- COMPILER: "gcc"
|
194
|
-
HOST: "cygwin"
|
195
|
-
PLATFORM: "x64"
|
196
|
-
- COMPILER: "gcc"
|
197
|
-
HOST: "mingw"
|
198
|
-
PLATFORM: "x64"
|
199
|
-
SCRIPT: "CFLAGS=-Werror make -j allzstd DEBUGLEVEL=2"
|
200
|
-
- COMPILER: "gcc"
|
201
|
-
HOST: "mingw"
|
202
|
-
PLATFORM: "x86"
|
203
|
-
SCRIPT: "CFLAGS=-Werror make -j allzstd"
|
204
|
-
- COMPILER: "clang"
|
205
|
-
HOST: "mingw"
|
206
|
-
PLATFORM: "x64"
|
207
|
-
SCRIPT: "CFLAGS='--target=x86_64-w64-mingw32 -Werror -Wconversion -Wno-sign-conversion' make -j allzstd"
|
208
|
-
|
209
|
-
- COMPILER: "visual"
|
210
|
-
HOST: "visual"
|
211
|
-
PLATFORM: "x64"
|
212
|
-
CONFIGURATION: "Debug"
|
213
|
-
- COMPILER: "visual"
|
214
|
-
HOST: "visual"
|
215
|
-
PLATFORM: "Win32"
|
216
|
-
CONFIGURATION: "Debug"
|
217
|
-
- COMPILER: "visual"
|
218
|
-
HOST: "visual"
|
219
|
-
PLATFORM: "x64"
|
220
|
-
CONFIGURATION: "Release"
|
221
|
-
- COMPILER: "visual"
|
222
|
-
HOST: "visual"
|
223
|
-
PLATFORM: "Win32"
|
224
|
-
CONFIGURATION: "Release"
|
225
|
-
|
226
|
-
install:
|
227
|
-
- ECHO Installing %COMPILER% %PLATFORM% %CONFIGURATION%
|
228
|
-
- SET PATH_ORIGINAL=%PATH%
|
229
|
-
- if [%HOST%]==[cygwin] (
|
230
|
-
ECHO Installing Cygwin Packages &&
|
231
|
-
C:\cygwin64\setup-x86_64.exe -qnNdO -R "C:\cygwin64" -g -P ^
|
232
|
-
gcc-g++,^
|
233
|
-
gcc,^
|
234
|
-
cmake,^
|
235
|
-
make
|
236
|
-
)
|
237
|
-
- if [%HOST%]==[mingw] (
|
238
|
-
SET "PATH_MINGW32=C:\mingw-w64\i686-6.3.0-posix-dwarf-rt_v5-rev1\mingw32\bin" &&
|
239
|
-
SET "PATH_MINGW64=C:\mingw-w64\x86_64-6.3.0-posix-seh-rt_v5-rev1\mingw64\bin" &&
|
240
|
-
COPY C:\msys64\usr\bin\make.exe C:\mingw-w64\i686-6.3.0-posix-dwarf-rt_v5-rev1\mingw32\bin\make.exe &&
|
241
|
-
COPY C:\msys64\usr\bin\make.exe C:\mingw-w64\x86_64-6.3.0-posix-seh-rt_v5-rev1\mingw64\bin\make.exe
|
242
|
-
)
|
243
|
-
- IF [%HOST%]==[visual] IF [%PLATFORM%]==[x64] (
|
244
|
-
SET ADDITIONALPARAM=/p:LibraryPath="C:\Program Files\Microsoft SDKs\Windows\v7.1\lib\x64;c:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\lib\amd64;C:\Program Files (x86)\Microsoft Visual Studio 10.0\;C:\Program Files (x86)\Microsoft Visual Studio 10.0\lib\amd64;"
|
245
|
-
)
|
246
|
-
|
247
|
-
build_script:
|
248
|
-
- ECHO Building %COMPILER% %PLATFORM% %CONFIGURATION%
|
249
|
-
- if [%HOST%]==[cygwin] (
|
250
|
-
set CHERE_INVOKING=yes &&
|
251
|
-
set CC=%COMPILER% &&
|
252
|
-
C:\cygwin64\bin\bash --login -c "
|
253
|
-
set -e;
|
254
|
-
cd build/cmake;
|
255
|
-
CFLAGS='-Werror' cmake -G 'Unix Makefiles' -DCMAKE_BUILD_TYPE=Debug -DZSTD_BUILD_TESTS:BOOL=ON -DZSTD_FUZZER_FLAGS=-T30s -DZSTD_ZSTREAM_FLAGS=-T30s .;
|
256
|
-
make -j4;
|
257
|
-
ctest -V -L Medium;
|
258
|
-
"
|
259
|
-
)
|
260
|
-
- if [%HOST%]==[mingw] (
|
261
|
-
( if [%PLATFORM%]==[x64] (
|
262
|
-
SET "PATH=%PATH_MINGW64%;%PATH_ORIGINAL%"
|
263
|
-
) else if [%PLATFORM%]==[x86] (
|
264
|
-
SET "PATH=%PATH_MINGW32%;%PATH_ORIGINAL%"
|
265
|
-
) ) &&
|
266
|
-
make -v &&
|
267
|
-
sh -c "%COMPILER% -v" &&
|
268
|
-
set "CC=%COMPILER%" &&
|
269
|
-
sh -c "%SCRIPT%"
|
270
|
-
)
|
271
|
-
- if [%HOST%]==[visual] (
|
272
|
-
ECHO *** &&
|
273
|
-
ECHO *** Building Visual Studio 2015 %PLATFORM%\%CONFIGURATION% &&
|
274
|
-
ECHO *** &&
|
275
|
-
msbuild "build\VS2010\zstd.sln" /m /verbosity:minimal /property:PlatformToolset=v140 /p:ForceImportBeforeCppTargets=%APPVEYOR_BUILD_FOLDER%\build\VS2010\CompileAsCpp.props /t:Clean,Build /p:Platform=%PLATFORM% /p:Configuration=%CONFIGURATION% /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll" &&
|
276
|
-
DIR build\VS2010\bin\%PLATFORM%_%CONFIGURATION%\*.exe &&
|
277
|
-
MD5sum build/VS2010/bin/%PLATFORM%_%CONFIGURATION%/*.exe &&
|
278
|
-
msbuild "build\VS2010\zstd.sln" /m /verbosity:minimal /property:PlatformToolset=v140 /t:Clean,Build /p:Platform=%PLATFORM% /p:Configuration=%CONFIGURATION% /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll" &&
|
279
|
-
DIR build\VS2010\bin\%PLATFORM%_%CONFIGURATION%\*.exe &&
|
280
|
-
MD5sum build/VS2010/bin/%PLATFORM%_%CONFIGURATION%/*.exe &&
|
281
|
-
COPY build\VS2010\bin\%PLATFORM%_%CONFIGURATION%\fuzzer.exe tests\fuzzer_VS2015_%PLATFORM%_%CONFIGURATION%.exe &&
|
282
|
-
COPY build\VS2010\bin\%PLATFORM%_%CONFIGURATION%\*.exe tests\
|
283
|
-
)
|
284
|
-
|
285
|
-
|
286
|
-
test_script:
|
287
|
-
- ECHO Testing %COMPILER% %PLATFORM% %CONFIGURATION%
|
288
|
-
- if [%HOST%]==[mingw] (
|
289
|
-
set "CC=%COMPILER%" &&
|
290
|
-
make clean &&
|
291
|
-
make check
|
292
|
-
)
|
data/ext/depend
DELETED