extzstd 0.3.1 → 0.3.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (113) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +28 -14
  3. data/contrib/zstd/CHANGELOG +301 -56
  4. data/contrib/zstd/CONTRIBUTING.md +169 -72
  5. data/contrib/zstd/LICENSE +4 -4
  6. data/contrib/zstd/Makefile +116 -87
  7. data/contrib/zstd/Package.swift +36 -0
  8. data/contrib/zstd/README.md +62 -32
  9. data/contrib/zstd/TESTING.md +2 -3
  10. data/contrib/zstd/appveyor.yml +52 -136
  11. data/contrib/zstd/lib/BUCK +5 -7
  12. data/contrib/zstd/lib/Makefile +225 -222
  13. data/contrib/zstd/lib/README.md +51 -6
  14. data/contrib/zstd/lib/common/allocations.h +55 -0
  15. data/contrib/zstd/lib/common/bits.h +200 -0
  16. data/contrib/zstd/lib/common/bitstream.h +45 -62
  17. data/contrib/zstd/lib/common/compiler.h +205 -22
  18. data/contrib/zstd/lib/common/cpu.h +1 -3
  19. data/contrib/zstd/lib/common/debug.c +1 -1
  20. data/contrib/zstd/lib/common/debug.h +12 -19
  21. data/contrib/zstd/lib/common/entropy_common.c +172 -48
  22. data/contrib/zstd/lib/common/error_private.c +10 -2
  23. data/contrib/zstd/lib/common/error_private.h +82 -3
  24. data/contrib/zstd/lib/common/fse.h +37 -86
  25. data/contrib/zstd/lib/common/fse_decompress.c +117 -92
  26. data/contrib/zstd/lib/common/huf.h +99 -166
  27. data/contrib/zstd/lib/common/mem.h +124 -142
  28. data/contrib/zstd/lib/common/pool.c +54 -27
  29. data/contrib/zstd/lib/common/pool.h +10 -4
  30. data/contrib/zstd/lib/common/portability_macros.h +156 -0
  31. data/contrib/zstd/lib/common/threading.c +74 -19
  32. data/contrib/zstd/lib/common/threading.h +5 -10
  33. data/contrib/zstd/lib/common/xxhash.c +7 -847
  34. data/contrib/zstd/lib/common/xxhash.h +5568 -167
  35. data/contrib/zstd/lib/common/zstd_common.c +2 -37
  36. data/contrib/zstd/lib/common/zstd_deps.h +111 -0
  37. data/contrib/zstd/lib/common/zstd_internal.h +132 -187
  38. data/contrib/zstd/lib/common/zstd_trace.h +163 -0
  39. data/contrib/zstd/lib/compress/clevels.h +134 -0
  40. data/contrib/zstd/lib/compress/fse_compress.c +83 -157
  41. data/contrib/zstd/lib/compress/hist.c +27 -29
  42. data/contrib/zstd/lib/compress/hist.h +2 -2
  43. data/contrib/zstd/lib/compress/huf_compress.c +916 -279
  44. data/contrib/zstd/lib/compress/zstd_compress.c +3773 -1019
  45. data/contrib/zstd/lib/compress/zstd_compress_internal.h +610 -203
  46. data/contrib/zstd/lib/compress/zstd_compress_literals.c +119 -42
  47. data/contrib/zstd/lib/compress/zstd_compress_literals.h +16 -6
  48. data/contrib/zstd/lib/compress/zstd_compress_sequences.c +42 -19
  49. data/contrib/zstd/lib/compress/zstd_compress_sequences.h +1 -1
  50. data/contrib/zstd/lib/compress/zstd_compress_superblock.c +49 -317
  51. data/contrib/zstd/lib/compress/zstd_compress_superblock.h +1 -1
  52. data/contrib/zstd/lib/compress/zstd_cwksp.h +320 -103
  53. data/contrib/zstd/lib/compress/zstd_double_fast.c +388 -151
  54. data/contrib/zstd/lib/compress/zstd_double_fast.h +3 -2
  55. data/contrib/zstd/lib/compress/zstd_fast.c +729 -265
  56. data/contrib/zstd/lib/compress/zstd_fast.h +3 -2
  57. data/contrib/zstd/lib/compress/zstd_lazy.c +1270 -251
  58. data/contrib/zstd/lib/compress/zstd_lazy.h +61 -1
  59. data/contrib/zstd/lib/compress/zstd_ldm.c +324 -219
  60. data/contrib/zstd/lib/compress/zstd_ldm.h +9 -2
  61. data/contrib/zstd/lib/compress/zstd_ldm_geartab.h +106 -0
  62. data/contrib/zstd/lib/compress/zstd_opt.c +481 -209
  63. data/contrib/zstd/lib/compress/zstd_opt.h +1 -1
  64. data/contrib/zstd/lib/compress/zstdmt_compress.c +181 -457
  65. data/contrib/zstd/lib/compress/zstdmt_compress.h +34 -113
  66. data/contrib/zstd/lib/decompress/huf_decompress.c +1199 -565
  67. data/contrib/zstd/lib/decompress/huf_decompress_amd64.S +576 -0
  68. data/contrib/zstd/lib/decompress/zstd_ddict.c +12 -12
  69. data/contrib/zstd/lib/decompress/zstd_ddict.h +2 -2
  70. data/contrib/zstd/lib/decompress/zstd_decompress.c +627 -157
  71. data/contrib/zstd/lib/decompress/zstd_decompress_block.c +1086 -326
  72. data/contrib/zstd/lib/decompress/zstd_decompress_block.h +19 -5
  73. data/contrib/zstd/lib/decompress/zstd_decompress_internal.h +62 -13
  74. data/contrib/zstd/lib/deprecated/zbuff.h +1 -1
  75. data/contrib/zstd/lib/deprecated/zbuff_common.c +1 -1
  76. data/contrib/zstd/lib/deprecated/zbuff_compress.c +24 -4
  77. data/contrib/zstd/lib/deprecated/zbuff_decompress.c +3 -1
  78. data/contrib/zstd/lib/dictBuilder/cover.c +73 -52
  79. data/contrib/zstd/lib/dictBuilder/cover.h +7 -6
  80. data/contrib/zstd/lib/dictBuilder/divsufsort.c +1 -1
  81. data/contrib/zstd/lib/dictBuilder/fastcover.c +44 -35
  82. data/contrib/zstd/lib/dictBuilder/zdict.c +103 -111
  83. data/contrib/zstd/lib/legacy/zstd_legacy.h +8 -1
  84. data/contrib/zstd/lib/legacy/zstd_v01.c +21 -54
  85. data/contrib/zstd/lib/legacy/zstd_v01.h +1 -1
  86. data/contrib/zstd/lib/legacy/zstd_v02.c +29 -70
  87. data/contrib/zstd/lib/legacy/zstd_v02.h +1 -1
  88. data/contrib/zstd/lib/legacy/zstd_v03.c +30 -73
  89. data/contrib/zstd/lib/legacy/zstd_v03.h +1 -1
  90. data/contrib/zstd/lib/legacy/zstd_v04.c +29 -71
  91. data/contrib/zstd/lib/legacy/zstd_v04.h +1 -1
  92. data/contrib/zstd/lib/legacy/zstd_v05.c +40 -86
  93. data/contrib/zstd/lib/legacy/zstd_v05.h +1 -1
  94. data/contrib/zstd/lib/legacy/zstd_v06.c +47 -88
  95. data/contrib/zstd/lib/legacy/zstd_v06.h +1 -1
  96. data/contrib/zstd/lib/legacy/zstd_v07.c +40 -83
  97. data/contrib/zstd/lib/legacy/zstd_v07.h +1 -1
  98. data/contrib/zstd/lib/libzstd.mk +214 -0
  99. data/contrib/zstd/lib/libzstd.pc.in +7 -6
  100. data/contrib/zstd/lib/module.modulemap +35 -0
  101. data/contrib/zstd/lib/{dictBuilder/zdict.h → zdict.h} +203 -34
  102. data/contrib/zstd/lib/zstd.h +1217 -287
  103. data/contrib/zstd/lib/{common/zstd_errors.h → zstd_errors.h} +28 -8
  104. data/ext/extconf.rb +7 -6
  105. data/ext/extzstd.c +19 -10
  106. data/ext/extzstd.h +6 -0
  107. data/ext/libzstd_conf.h +0 -1
  108. data/ext/zstd_decompress_asm.S +1 -0
  109. data/gemstub.rb +3 -21
  110. data/lib/extzstd/version.rb +6 -1
  111. data/lib/extzstd.rb +0 -2
  112. data/test/test_basic.rb +0 -5
  113. metadata +18 -6
@@ -1,20 +1,20 @@
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
1
+ # Following tests are run _only_ on `release` branch
2
+ # and on selected feature branch named `appveyorTest` or `visual*`
4
3
 
5
4
  -
6
5
  version: 1.0.{build}
7
6
  branches:
8
7
  only:
8
+ - release
9
9
  - master
10
- - appveyorTest
10
+ - /appveyor*/
11
11
  - /visual*/
12
12
  environment:
13
13
  matrix:
14
14
  - COMPILER: "gcc"
15
15
  HOST: "mingw"
16
16
  PLATFORM: "x64"
17
- SCRIPT: "make allzstd MOREFLAGS=-static && make -C tests fullbench-lib"
17
+ SCRIPT: "make allzstd MOREFLAGS=-static"
18
18
  ARTIFACT: "true"
19
19
  BUILD: "true"
20
20
  - COMPILER: "gcc"
@@ -23,34 +23,15 @@
23
23
  SCRIPT: "make allzstd MOREFLAGS=-static"
24
24
  ARTIFACT: "true"
25
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
26
 
32
- - COMPILER: "gcc"
33
- HOST: "mingw"
27
+ - COMPILER: "clang-cl"
28
+ HOST: "cmake-visual"
34
29
  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
30
  CONFIGURATION: "Release"
31
+ CMAKE_GENERATOR: "Visual Studio 15 2017"
32
+ CMAKE_GENERATOR_PLATFORM: "x64"
33
+ CMAKE_GENERATOR_TOOLSET: "LLVM"
34
+ APPVEYOR_BUILD_WORKER_IMAGE: "Visual Studio 2017"
54
35
 
55
36
  install:
56
37
  - ECHO Installing %COMPILER% %PLATFORM% %CONFIGURATION%
@@ -92,9 +73,9 @@
92
73
  cd programs\ && 7z a -tzip -mx9 zstd-win-binary-%PLATFORM%.zip zstd.exe &&
93
74
  appveyor PushArtifact zstd-win-binary-%PLATFORM%.zip &&
94
75
  cp zstd.exe ..\bin\zstd.exe &&
95
- git clone --depth 1 --branch master https://github.com/facebook/zstd &&
76
+ git clone --depth 1 --branch release https://github.com/facebook/zstd &&
96
77
  cd zstd &&
97
- git archive --format=tar master -o zstd-src.tar &&
78
+ git archive --format=tar release -o zstd-src.tar &&
98
79
  ..\zstd -19 zstd-src.tar &&
99
80
  appveyor PushArtifact zstd-src.tar.zst &&
100
81
  certUtil -hashfile zstd-src.tar.zst SHA256 > zstd-src.tar.zst.sha256.sig &&
@@ -104,55 +85,14 @@
104
85
  appveyor PushArtifact zstd-win-release-%PLATFORM%.zip
105
86
  )
106
87
  )
107
- - if [%HOST%]==[visual] (
108
- ECHO *** &&
109
- ECHO *** Building Visual Studio 2008 %PLATFORM%\%CONFIGURATION% in %APPVEYOR_BUILD_FOLDER% &&
88
+ - if [%HOST%]==[cmake-visual] (
110
89
  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\
90
+ ECHO *** Building %CMAKE_GENERATOR% ^(%CMAKE_GENERATOR_TOOLSET%^) %PLATFORM%\%CONFIGURATION% &&
91
+ PUSHD build\cmake &&
92
+ cmake -DBUILD_TESTING=ON . &&
93
+ cmake --build . --config %CONFIGURATION% -j4 &&
94
+ POPD &&
95
+ ECHO ***
156
96
  )
157
97
 
158
98
  test_script:
@@ -162,22 +102,12 @@
162
102
  - if [%TEST%]==[cmake] (
163
103
  mkdir build\cmake\build &&
164
104
  cd build\cmake\build &&
105
+ SET FUZZERTEST=-T2mn &&
106
+ SET ZSTREAM_TESTTIME=-T2mn &&
165
107
  cmake -G "Visual Studio 14 2015 Win64" .. &&
166
108
  cd ..\..\.. &&
167
109
  make clean
168
110
  )
169
- - SET "FUZZERTEST=-T30s"
170
- - if [%HOST%]==[visual] if [%CONFIGURATION%]==[Release] (
171
- CD tests &&
172
- SET ZSTD_BIN=./zstd.exe&&
173
- SET DATAGEN_BIN=./datagen.exe&&
174
- sh -e playTests.sh --test-large-data &&
175
- fullbench.exe -i1 &&
176
- fullbench.exe -i1 -P0 &&
177
- fuzzer_VS2012_%PLATFORM%_Release.exe %FUZZERTEST% &&
178
- fuzzer_VS2013_%PLATFORM%_Release.exe %FUZZERTEST% &&
179
- fuzzer_VS2015_%PLATFORM%_Release.exe %FUZZERTEST%
180
- )
181
111
 
182
112
 
183
113
  # The following tests are for regular pushes
@@ -188,22 +118,6 @@
188
118
  version: 1.0.{build}
189
119
  environment:
190
120
  matrix:
191
- - COMPILER: "gcc"
192
- HOST: "cygwin"
193
- PLATFORM: "x64"
194
- - COMPILER: "gcc"
195
- HOST: "mingw"
196
- PLATFORM: "x64"
197
- SCRIPT: "CPPFLAGS=-DDEBUGLEVEL=2 CFLAGS=-Werror make -j allzstd DEBUGLEVEL=2"
198
- - COMPILER: "gcc"
199
- HOST: "mingw"
200
- PLATFORM: "x86"
201
- SCRIPT: "CFLAGS=-Werror make -j allzstd"
202
- - COMPILER: "clang"
203
- HOST: "mingw"
204
- PLATFORM: "x64"
205
- SCRIPT: "CFLAGS='--target=x86_64-w64-mingw32 -Werror -Wconversion -Wno-sign-conversion' make -j allzstd"
206
-
207
121
  - COMPILER: "visual"
208
122
  HOST: "visual"
209
123
  PLATFORM: "x64"
@@ -221,23 +135,29 @@
221
135
  PLATFORM: "Win32"
222
136
  CONFIGURATION: "Release"
223
137
 
138
+ - COMPILER: "gcc"
139
+ HOST: "cygwin"
140
+ PLATFORM: "x64"
141
+
142
+ - COMPILER: "clang-cl"
143
+ HOST: "cmake-visual"
144
+ PLATFORM: "x64"
145
+ CONFIGURATION: "Release"
146
+ CMAKE_GENERATOR: "Visual Studio 15 2017"
147
+ CMAKE_GENERATOR_PLATFORM: "x64"
148
+ CMAKE_GENERATOR_TOOLSET: "LLVM"
149
+ APPVEYOR_BUILD_WORKER_IMAGE: "Visual Studio 2017"
150
+
224
151
  install:
225
152
  - ECHO Installing %COMPILER% %PLATFORM% %CONFIGURATION%
226
153
  - SET PATH_ORIGINAL=%PATH%
227
154
  - if [%HOST%]==[cygwin] (
228
155
  ECHO Installing Cygwin Packages &&
229
156
  C:\cygwin64\setup-x86_64.exe -qnNdO -R "C:\cygwin64" -g -P ^
230
- gcc-g++,^
231
157
  gcc,^
232
158
  cmake,^
233
159
  make
234
160
  )
235
- - if [%HOST%]==[mingw] (
236
- SET "PATH_MINGW32=C:\mingw-w64\i686-6.3.0-posix-dwarf-rt_v5-rev1\mingw32\bin" &&
237
- SET "PATH_MINGW64=C:\mingw-w64\x86_64-6.3.0-posix-seh-rt_v5-rev1\mingw64\bin" &&
238
- COPY C:\msys64\usr\bin\make.exe C:\mingw-w64\i686-6.3.0-posix-dwarf-rt_v5-rev1\mingw32\bin\make.exe &&
239
- COPY C:\msys64\usr\bin\make.exe C:\mingw-w64\x86_64-6.3.0-posix-seh-rt_v5-rev1\mingw64\bin\make.exe
240
- )
241
161
  - IF [%HOST%]==[visual] IF [%PLATFORM%]==[x64] (
242
162
  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;"
243
163
  )
@@ -250,40 +170,36 @@
250
170
  C:\cygwin64\bin\bash --login -c "
251
171
  set -e;
252
172
  cd build/cmake;
253
- CFLAGS='-Werror' cmake -G 'Unix Makefiles' -DCMAKE_BUILD_TYPE=Debug -DZSTD_BUILD_TESTS:BOOL=ON -DZSTD_FUZZER_FLAGS=-T30s -DZSTD_ZSTREAM_FLAGS=-T30s .;
254
- make -j4;
173
+ CFLAGS='-Werror' cmake -G 'Unix Makefiles' -DCMAKE_BUILD_TYPE=Debug -DZSTD_BUILD_TESTS:BOOL=ON -DZSTD_FUZZER_FLAGS=-T20s -DZSTD_ZSTREAM_FLAGS=-T20s -DZSTD_FULLBENCH_FLAGS=-i0 .;
174
+ make VERBOSE=1 -j;
255
175
  ctest -V -L Medium;
256
176
  "
257
177
  )
258
- - if [%HOST%]==[mingw] (
259
- ( if [%PLATFORM%]==[x64] (
260
- SET "PATH=%PATH_MINGW64%;%PATH_ORIGINAL%"
261
- ) else if [%PLATFORM%]==[x86] (
262
- SET "PATH=%PATH_MINGW32%;%PATH_ORIGINAL%"
263
- ) ) &&
264
- make -v &&
265
- sh -c "%COMPILER% -v" &&
266
- set "CC=%COMPILER%" &&
267
- sh -c "%SCRIPT%"
178
+ - if [%HOST%]==[cmake-visual] (
179
+ ECHO *** &&
180
+ ECHO *** Building %CMAKE_GENERATOR% ^(%CMAKE_GENERATOR_TOOLSET%^) %PLATFORM%\%CONFIGURATION% &&
181
+ PUSHD build\cmake &&
182
+ cmake -DBUILD_TESTING=ON . &&
183
+ cmake --build . --config %CONFIGURATION% -j4 &&
184
+ POPD &&
185
+ ECHO ***
268
186
  )
269
187
  - if [%HOST%]==[visual] (
270
188
  ECHO *** &&
271
- ECHO *** Building Visual Studio 2015 %PLATFORM%\%CONFIGURATION% &&
189
+ ECHO *** Building Visual Studio 2012 %PLATFORM%\%CONFIGURATION% &&
272
190
  ECHO *** &&
273
- 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" &&
274
- DIR build\VS2010\bin\%PLATFORM%_%CONFIGURATION%\*.exe &&
275
- MD5sum build/VS2010/bin/%PLATFORM%_%CONFIGURATION%/*.exe &&
276
- 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" &&
191
+ 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" &&
277
192
  DIR build\VS2010\bin\%PLATFORM%_%CONFIGURATION%\*.exe &&
278
- MD5sum build/VS2010/bin/%PLATFORM%_%CONFIGURATION%/*.exe &&
279
- COPY build\VS2010\bin\%PLATFORM%_%CONFIGURATION%\fuzzer.exe tests\fuzzer_VS2015_%PLATFORM%_%CONFIGURATION%.exe &&
280
- COPY build\VS2010\bin\%PLATFORM%_%CONFIGURATION%\*.exe tests\
193
+ 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" &&
194
+ DIR build\VS2010\bin\%PLATFORM%_%CONFIGURATION%\*.exe
281
195
  )
282
196
 
283
197
 
284
198
  test_script:
285
199
  - ECHO Testing %COMPILER% %PLATFORM% %CONFIGURATION%
200
+ - SET "FUZZERTEST=-T10s"
286
201
  - if [%HOST%]==[mingw] (
287
202
  set "CC=%COMPILER%" &&
203
+ make clean &&
288
204
  make check
289
- )
205
+ )
@@ -65,9 +65,7 @@ cxx_library(
65
65
  name='zdict',
66
66
  header_namespace='',
67
67
  visibility=['PUBLIC'],
68
- exported_headers=subdir_glob([
69
- ('dictBuilder', 'zdict.h'),
70
- ]),
68
+ exported_headers=['zdict.h'],
71
69
  headers=subdir_glob([
72
70
  ('dictBuilder', 'divsufsort.h'),
73
71
  ('dictBuilder', 'cover.h'),
@@ -131,10 +129,10 @@ cxx_library(
131
129
  name='errors',
132
130
  header_namespace='',
133
131
  visibility=['PUBLIC'],
134
- exported_headers=subdir_glob([
135
- ('common', 'error_private.h'),
136
- ('common', 'zstd_errors.h'),
137
- ]),
132
+ exported_headers=[
133
+ 'zstd_errors.h',
134
+ 'common/error_private.h',
135
+ ]
138
136
  srcs=['common/error_private.c'],
139
137
  )
140
138