Index: vendor/zstd/dist/build/VS2010/zstd/zstd.rc
===================================================================
--- vendor/zstd/dist/build/VS2010/zstd/zstd.rc (revision 316986)
+++ vendor/zstd/dist/build/VS2010/zstd/zstd.rc (nonexistent)
@@ -1,51 +0,0 @@
-// Microsoft Visual C++ generated resource script.
-//
-
-#include "zstd.h" /* ZSTD_VERSION_STRING */
-#define APSTUDIO_READONLY_SYMBOLS
-#include "verrsrc.h"
-#undef APSTUDIO_READONLY_SYMBOLS
-
-
-#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_ENU)
-LANGUAGE 9, 1
-
-/////////////////////////////////////////////////////////////////////////////
-//
-// Version
-//
-
-VS_VERSION_INFO VERSIONINFO
- FILEVERSION ZSTD_VERSION_MAJOR,ZSTD_VERSION_MINOR,ZSTD_VERSION_RELEASE,0
- PRODUCTVERSION ZSTD_VERSION_MAJOR,ZSTD_VERSION_MINOR,ZSTD_VERSION_RELEASE,0
- FILEFLAGSMASK VS_FFI_FILEFLAGSMASK
-#ifdef _DEBUG
- FILEFLAGS VS_FF_DEBUG
-#else
- FILEFLAGS 0x0L
-#endif
- FILEOS VOS_NT_WINDOWS32
- FILETYPE VFT_DLL
- FILESUBTYPE VFT2_UNKNOWN
-BEGIN
- BLOCK "StringFileInfo"
- BEGIN
- BLOCK "040904B0"
- BEGIN
- VALUE "CompanyName", "Yann Collet, Facebook, Inc."
- VALUE "FileDescription", "Zstandard - Fast and efficient compression algorithm"
- VALUE "FileVersion", ZSTD_VERSION_STRING
- VALUE "InternalName", "zstd.exe"
- VALUE "LegalCopyright", "Copyright (c) 2013-present, Yann Collet, Facebook, Inc."
- VALUE "OriginalFilename", "zstd.exe"
- VALUE "ProductName", "Zstandard"
- VALUE "ProductVersion", ZSTD_VERSION_STRING
- END
- END
- BLOCK "VarFileInfo"
- BEGIN
- VALUE "Translation", 0x0409, 1200
- END
-END
-
-#endif
Index: vendor/zstd/dist/build/VS2010/zstd/zstd.vcxproj
===================================================================
--- vendor/zstd/dist/build/VS2010/zstd/zstd.vcxproj (revision 316986)
+++ vendor/zstd/dist/build/VS2010/zstd/zstd.vcxproj (nonexistent)
@@ -1,230 +0,0 @@
-
-
-
-
- Debug
- Win32
-
-
- Debug
- x64
-
-
- Release
- Win32
-
-
- Release
- x64
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {4E52A41A-F33B-4C7A-8C36-A1A6B4F4277C}
- Win32Proj
- zstd
- $(SolutionDir)bin\$(Platform)_$(Configuration)\
- $(SolutionDir)bin\obj\$(RootNamespace)_$(Platform)_$(Configuration)\
-
-
-
- Application
- true
- MultiByte
-
-
- Application
- true
- MultiByte
-
-
- Application
- false
- true
- MultiByte
-
-
- Application
- false
- true
- MultiByte
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- true
- $(IncludePath);$(SolutionDir)..\..\lib;$(SolutionDir)..\..\lib\compress;$(SolutionDir)..\..\lib\legacy;$(SolutionDir)..\..\lib\common;$(SolutionDir)..\..\lib\dictBuilder;$(UniversalCRT_IncludePath);
- false
- $(LibraryPath)
-
-
- true
- $(IncludePath);$(SolutionDir)..\..\lib;$(SolutionDir)..\..\lib\compress;$(SolutionDir)..\..\lib\legacy;$(SolutionDir)..\..\lib\common;$(SolutionDir)..\..\lib\dictBuilder;$(UniversalCRT_IncludePath);
- false
- $(LibraryPath);
-
-
- false
- $(IncludePath);$(SolutionDir)..\..\lib;$(SolutionDir)..\..\lib\compress;$(SolutionDir)..\..\lib\legacy;$(SolutionDir)..\..\lib\common;$(SolutionDir)..\..\lib\dictBuilder;$(UniversalCRT_IncludePath);
- false
- $(LibraryPath)
-
-
- false
- $(IncludePath);$(SolutionDir)..\..\lib;$(SolutionDir)..\..\lib\compress;$(SolutionDir)..\..\lib\legacy;$(SolutionDir)..\..\lib\common;$(SolutionDir)..\..\lib\dictBuilder;$(UniversalCRT_IncludePath);
- false
- $(LibraryPath);
-
-
-
-
-
- Level4
- Disabled
- ZSTD_LEGACY_SUPPORT=4;WIN32;_DEBUG;_CONSOLE;%(PreprocessorDefinitions)
- true
- false
-
-
- Console
- true
- setargv.obj;%(AdditionalDependencies)
-
-
-
-
-
-
- Level4
- Disabled
- ZSTD_LEGACY_SUPPORT=4;WIN32;_DEBUG;_CONSOLE;%(PreprocessorDefinitions)
- true
- false
-
-
- Console
- true
- setargv.obj;%(AdditionalDependencies)
-
-
-
-
- Level4
-
-
- MaxSpeed
- true
- true
- ZSTD_LEGACY_SUPPORT=4;WIN32;NDEBUG;_CONSOLE;%(PreprocessorDefinitions)
- false
- false
- MultiThreaded
-
-
- Console
- true
- true
- true
- setargv.obj;%(AdditionalDependencies)
-
-
-
-
- Level4
-
-
- MaxSpeed
- true
- true
- ZSTD_LEGACY_SUPPORT=4;WIN32;NDEBUG;_CONSOLE;%(PreprocessorDefinitions)
- false
- false
- MultiThreaded
- /DZSTD_MULTITHREAD %(AdditionalOptions)
-
-
- Console
- true
- true
- true
- setargv.obj;%(AdditionalDependencies)
-
-
-
-
-
-
Index: vendor/zstd/dist/build/VS2010/datagen/datagen.vcxproj
===================================================================
--- vendor/zstd/dist/build/VS2010/datagen/datagen.vcxproj (revision 316986)
+++ vendor/zstd/dist/build/VS2010/datagen/datagen.vcxproj (nonexistent)
@@ -1,167 +0,0 @@
-
-
-
-
- Debug
- Win32
-
-
- Debug
- x64
-
-
- Release
- Win32
-
-
- Release
- x64
-
-
-
- {037E781E-81A6-494B-B1B3-438AB1200523}
- Win32Proj
- datagen
- $(SolutionDir)bin\$(Platform)_$(Configuration)\
- $(SolutionDir)bin\obj\$(RootNamespace)_$(Platform)_$(Configuration)\
-
-
-
- Application
- true
- MultiByte
-
-
- Application
- true
- MultiByte
-
-
- Application
- false
- true
- MultiByte
-
-
- Application
- false
- true
- MultiByte
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- true
- false
- $(IncludePath);$(SolutionDir)..\..\programs;$(SolutionDir)..\..\lib\legacy;$(SolutionDir)..\..\lib\common;$(UniversalCRT_IncludePath);
-
-
- true
- false
- $(IncludePath);$(SolutionDir)..\..\programs;$(SolutionDir)..\..\lib\legacy;$(SolutionDir)..\..\lib\common;$(UniversalCRT_IncludePath);
-
-
- false
- false
- $(IncludePath);$(SolutionDir)..\..\programs;$(SolutionDir)..\..\lib\legacy;$(SolutionDir)..\..\lib\common;$(UniversalCRT_IncludePath);
-
-
- false
- false
- $(IncludePath);$(SolutionDir)..\..\programs;$(SolutionDir)..\..\lib\legacy;$(SolutionDir)..\..\lib\common;$(UniversalCRT_IncludePath);
-
-
-
-
-
- Level4
- Disabled
- WIN32;_DEBUG;_CONSOLE;%(PreprocessorDefinitions)
- true
- false
-
-
- Console
- true
-
-
-
-
-
-
- Level4
- Disabled
- WIN32;_DEBUG;_CONSOLE;%(PreprocessorDefinitions)
- true
- false
-
-
- Console
- true
-
-
-
-
- Level4
-
-
- MaxSpeed
- true
- true
- WIN32;NDEBUG;_CONSOLE;%(PreprocessorDefinitions)
- false
- false
- MultiThreaded
-
-
- Console
- true
- true
- true
-
-
-
-
- Level4
-
-
- MaxSpeed
- true
- true
- WIN32;NDEBUG;_CONSOLE;%(PreprocessorDefinitions)
- false
- false
- MultiThreaded
-
-
- Console
- true
- true
- true
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
Index: vendor/zstd/dist/build/VS2010/libzstd/libzstd.vcxproj
===================================================================
--- vendor/zstd/dist/build/VS2010/libzstd/libzstd.vcxproj (revision 316986)
+++ vendor/zstd/dist/build/VS2010/libzstd/libzstd.vcxproj (nonexistent)
@@ -1,230 +0,0 @@
-
-
-
-
- Debug
- Win32
-
-
- Debug
- x64
-
-
- Release
- Win32
-
-
- Release
- x64
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {8BFD8150-94D5-4BF9-8A50-7BD9929A0850}
- Win32Proj
- libzstd
- $(SolutionDir)bin\$(Platform)_$(Configuration)\
- $(SolutionDir)bin\obj\$(RootNamespace)_$(Platform)_$(Configuration)\
-
-
-
- StaticLibrary
- true
- MultiByte
-
-
- StaticLibrary
- true
- MultiByte
-
-
- StaticLibrary
- false
- true
- MultiByte
-
-
- StaticLibrary
- false
- true
- MultiByte
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- true
- libzstd_static
- $(IncludePath);$(SolutionDir)..\..\lib;$(SolutionDir)..\..\programs\legacy;$(SolutionDir)..\..\lib\legacy;$(SolutionDir)..\..\lib\common;$(SolutionDir)..\..\lib\dictBuilder;$(UniversalCRT_IncludePath);
- false
-
-
- true
- libzstd_static
- $(IncludePath);$(SolutionDir)..\..\lib;$(SolutionDir)..\..\programs\legacy;$(SolutionDir)..\..\lib\legacy;$(SolutionDir)..\..\lib\common;$(SolutionDir)..\..\lib\dictBuilder;$(UniversalCRT_IncludePath);
- false
-
-
- false
- libzstd_static
- $(IncludePath);$(SolutionDir)..\..\lib;$(SolutionDir)..\..\programs\legacy;$(SolutionDir)..\..\lib\legacy;$(SolutionDir)..\..\lib\common;$(SolutionDir)..\..\lib\dictBuilder;$(UniversalCRT_IncludePath);
- false
-
-
- false
- libzstd_static
- $(IncludePath);$(SolutionDir)..\..\lib;$(SolutionDir)..\..\programs\legacy;$(SolutionDir)..\..\lib\legacy;$(SolutionDir)..\..\lib\common;$(SolutionDir)..\..\lib\dictBuilder;$(UniversalCRT_IncludePath);
- false
-
-
-
-
-
- Level4
- Disabled
- ZSTD_DLL_EXPORT=1;ZSTD_LEGACY_SUPPORT=4;WIN32;_DEBUG;_CONSOLE;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)
- true
- EnableFastChecks
- MultiThreadedDebugDLL
- EditAndContinue
- true
- false
-
-
- Console
- true
- MachineX86
-
-
-
-
-
-
- Level4
- Disabled
- ZSTD_DLL_EXPORT=1;ZSTD_LEGACY_SUPPORT=4;WIN32;_DEBUG;_CONSOLE;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)
- true
- EnableFastChecks
- MultiThreadedDebugDLL
- ProgramDatabase
- false
-
-
- Console
- true
-
-
-
-
- Level4
-
-
- MaxSpeed
- true
- true
- ZSTD_DLL_EXPORT=1;ZSTD_LEGACY_SUPPORT=4;WIN32;NDEBUG;_CONSOLE;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)
- false
- MultiThreaded
- ProgramDatabase
- All
-
-
- Console
- true
- true
- true
- MachineX86
-
-
-
-
- Level4
-
-
- MaxSpeed
- true
- true
- ZSTD_DLL_EXPORT=1;ZSTD_LEGACY_SUPPORT=4;WIN32;NDEBUG;_CONSOLE;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)
- false
- false
- MultiThreaded
- ProgramDatabase
- true
- true
- All
-
-
- Console
- true
- true
- true
-
-
-
-
-
-
Index: vendor/zstd/dist/build/VS2010/zstd.sln
===================================================================
--- vendor/zstd/dist/build/VS2010/zstd.sln (revision 316986)
+++ vendor/zstd/dist/build/VS2010/zstd.sln (nonexistent)
@@ -1,89 +0,0 @@
-
-Microsoft Visual Studio Solution File, Format Version 12.00
-# Visual Studio Express 2012 for Windows Desktop
-Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "zstd", "zstd\zstd.vcxproj", "{4E52A41A-F33B-4C7A-8C36-A1A6B4F4277C}"
-EndProject
-Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "fuzzer", "fuzzer\fuzzer.vcxproj", "{6FD4352B-346C-4703-96EA-D4A8B9A6976E}"
-EndProject
-Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "fullbench", "fullbench\fullbench.vcxproj", "{61ABD629-1CC8-4FD7-9281-6B8DBB9D3DF8}"
-EndProject
-Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "fullbench-dll", "fullbench-dll\fullbench-dll.vcxproj", "{00000000-1CC8-4FD7-9281-6B8DBB9D3DF8}"
- ProjectSection(ProjectDependencies) = postProject
- {00000000-94D5-4BF9-8A50-7BD9929A0850} = {00000000-94D5-4BF9-8A50-7BD9929A0850}
- EndProjectSection
-EndProject
-Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "datagen", "datagen\datagen.vcxproj", "{037E781E-81A6-494B-B1B3-438AB1200523}"
-EndProject
-Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "libzstd", "libzstd\libzstd.vcxproj", "{8BFD8150-94D5-4BF9-8A50-7BD9929A0850}"
-EndProject
-Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "libzstd-dll", "libzstd-dll\libzstd-dll.vcxproj", "{00000000-94D5-4BF9-8A50-7BD9929A0850}"
-EndProject
-Global
- GlobalSection(SolutionConfigurationPlatforms) = preSolution
- Debug|Win32 = Debug|Win32
- Debug|x64 = Debug|x64
- Release|Win32 = Release|Win32
- Release|x64 = Release|x64
- EndGlobalSection
- GlobalSection(ProjectConfigurationPlatforms) = postSolution
- {4E52A41A-F33B-4C7A-8C36-A1A6B4F4277C}.Debug|Win32.ActiveCfg = Debug|Win32
- {4E52A41A-F33B-4C7A-8C36-A1A6B4F4277C}.Debug|Win32.Build.0 = Debug|Win32
- {4E52A41A-F33B-4C7A-8C36-A1A6B4F4277C}.Debug|x64.ActiveCfg = Debug|x64
- {4E52A41A-F33B-4C7A-8C36-A1A6B4F4277C}.Debug|x64.Build.0 = Debug|x64
- {4E52A41A-F33B-4C7A-8C36-A1A6B4F4277C}.Release|Win32.ActiveCfg = Release|Win32
- {4E52A41A-F33B-4C7A-8C36-A1A6B4F4277C}.Release|Win32.Build.0 = Release|Win32
- {4E52A41A-F33B-4C7A-8C36-A1A6B4F4277C}.Release|x64.ActiveCfg = Release|x64
- {4E52A41A-F33B-4C7A-8C36-A1A6B4F4277C}.Release|x64.Build.0 = Release|x64
- {6FD4352B-346C-4703-96EA-D4A8B9A6976E}.Debug|Win32.ActiveCfg = Debug|Win32
- {6FD4352B-346C-4703-96EA-D4A8B9A6976E}.Debug|Win32.Build.0 = Debug|Win32
- {6FD4352B-346C-4703-96EA-D4A8B9A6976E}.Debug|x64.ActiveCfg = Debug|x64
- {6FD4352B-346C-4703-96EA-D4A8B9A6976E}.Debug|x64.Build.0 = Debug|x64
- {6FD4352B-346C-4703-96EA-D4A8B9A6976E}.Release|Win32.ActiveCfg = Release|Win32
- {6FD4352B-346C-4703-96EA-D4A8B9A6976E}.Release|Win32.Build.0 = Release|Win32
- {6FD4352B-346C-4703-96EA-D4A8B9A6976E}.Release|x64.ActiveCfg = Release|x64
- {6FD4352B-346C-4703-96EA-D4A8B9A6976E}.Release|x64.Build.0 = Release|x64
- {61ABD629-1CC8-4FD7-9281-6B8DBB9D3DF8}.Debug|Win32.ActiveCfg = Debug|Win32
- {61ABD629-1CC8-4FD7-9281-6B8DBB9D3DF8}.Debug|Win32.Build.0 = Debug|Win32
- {61ABD629-1CC8-4FD7-9281-6B8DBB9D3DF8}.Debug|x64.ActiveCfg = Debug|x64
- {61ABD629-1CC8-4FD7-9281-6B8DBB9D3DF8}.Debug|x64.Build.0 = Debug|x64
- {61ABD629-1CC8-4FD7-9281-6B8DBB9D3DF8}.Release|Win32.ActiveCfg = Release|Win32
- {61ABD629-1CC8-4FD7-9281-6B8DBB9D3DF8}.Release|Win32.Build.0 = Release|Win32
- {61ABD629-1CC8-4FD7-9281-6B8DBB9D3DF8}.Release|x64.ActiveCfg = Release|x64
- {61ABD629-1CC8-4FD7-9281-6B8DBB9D3DF8}.Release|x64.Build.0 = Release|x64
- {00000000-1CC8-4FD7-9281-6B8DBB9D3DF8}.Debug|Win32.ActiveCfg = Debug|Win32
- {00000000-1CC8-4FD7-9281-6B8DBB9D3DF8}.Debug|Win32.Build.0 = Debug|Win32
- {00000000-1CC8-4FD7-9281-6B8DBB9D3DF8}.Debug|x64.ActiveCfg = Debug|x64
- {00000000-1CC8-4FD7-9281-6B8DBB9D3DF8}.Debug|x64.Build.0 = Debug|x64
- {00000000-1CC8-4FD7-9281-6B8DBB9D3DF8}.Release|Win32.ActiveCfg = Release|Win32
- {00000000-1CC8-4FD7-9281-6B8DBB9D3DF8}.Release|Win32.Build.0 = Release|Win32
- {00000000-1CC8-4FD7-9281-6B8DBB9D3DF8}.Release|x64.ActiveCfg = Release|x64
- {00000000-1CC8-4FD7-9281-6B8DBB9D3DF8}.Release|x64.Build.0 = Release|x64
- {037E781E-81A6-494B-B1B3-438AB1200523}.Debug|Win32.ActiveCfg = Debug|Win32
- {037E781E-81A6-494B-B1B3-438AB1200523}.Debug|Win32.Build.0 = Debug|Win32
- {037E781E-81A6-494B-B1B3-438AB1200523}.Debug|x64.ActiveCfg = Debug|x64
- {037E781E-81A6-494B-B1B3-438AB1200523}.Debug|x64.Build.0 = Debug|x64
- {037E781E-81A6-494B-B1B3-438AB1200523}.Release|Win32.ActiveCfg = Release|Win32
- {037E781E-81A6-494B-B1B3-438AB1200523}.Release|Win32.Build.0 = Release|Win32
- {037E781E-81A6-494B-B1B3-438AB1200523}.Release|x64.ActiveCfg = Release|x64
- {037E781E-81A6-494B-B1B3-438AB1200523}.Release|x64.Build.0 = Release|x64
- {8BFD8150-94D5-4BF9-8A50-7BD9929A0850}.Debug|Win32.ActiveCfg = Debug|Win32
- {8BFD8150-94D5-4BF9-8A50-7BD9929A0850}.Debug|Win32.Build.0 = Debug|Win32
- {8BFD8150-94D5-4BF9-8A50-7BD9929A0850}.Debug|x64.ActiveCfg = Debug|x64
- {8BFD8150-94D5-4BF9-8A50-7BD9929A0850}.Debug|x64.Build.0 = Debug|x64
- {8BFD8150-94D5-4BF9-8A50-7BD9929A0850}.Release|Win32.ActiveCfg = Release|Win32
- {8BFD8150-94D5-4BF9-8A50-7BD9929A0850}.Release|Win32.Build.0 = Release|Win32
- {8BFD8150-94D5-4BF9-8A50-7BD9929A0850}.Release|x64.ActiveCfg = Release|x64
- {8BFD8150-94D5-4BF9-8A50-7BD9929A0850}.Release|x64.Build.0 = Release|x64
- {00000000-94D5-4BF9-8A50-7BD9929A0850}.Debug|Win32.ActiveCfg = Debug|Win32
- {00000000-94D5-4BF9-8A50-7BD9929A0850}.Debug|Win32.Build.0 = Debug|Win32
- {00000000-94D5-4BF9-8A50-7BD9929A0850}.Debug|x64.ActiveCfg = Debug|x64
- {00000000-94D5-4BF9-8A50-7BD9929A0850}.Debug|x64.Build.0 = Debug|x64
- {00000000-94D5-4BF9-8A50-7BD9929A0850}.Release|Win32.ActiveCfg = Release|Win32
- {00000000-94D5-4BF9-8A50-7BD9929A0850}.Release|Win32.Build.0 = Release|Win32
- {00000000-94D5-4BF9-8A50-7BD9929A0850}.Release|x64.ActiveCfg = Release|x64
- {00000000-94D5-4BF9-8A50-7BD9929A0850}.Release|x64.Build.0 = Release|x64
- EndGlobalSection
- GlobalSection(SolutionProperties) = preSolution
- HideSolutionNode = FALSE
- EndGlobalSection
-EndGlobal
Index: vendor/zstd/dist/build/VS2010/CompileAsCpp.props
===================================================================
--- vendor/zstd/dist/build/VS2010/CompileAsCpp.props (revision 316986)
+++ vendor/zstd/dist/build/VS2010/CompileAsCpp.props (nonexistent)
@@ -1,8 +0,0 @@
-
-
-
-
- CompileAsCpp
-
-
-
Index: vendor/zstd/dist/build/VS2010/fuzzer/fuzzer.vcxproj
===================================================================
--- vendor/zstd/dist/build/VS2010/fuzzer/fuzzer.vcxproj (revision 316986)
+++ vendor/zstd/dist/build/VS2010/fuzzer/fuzzer.vcxproj (nonexistent)
@@ -1,197 +0,0 @@
-
-
-
-
- Debug
- Win32
-
-
- Debug
- x64
-
-
- Release
- Win32
-
-
- Release
- x64
-
-
-
- {6FD4352B-346C-4703-96EA-D4A8B9A6976E}
- Win32Proj
- fuzzer
- $(SolutionDir)bin\$(Platform)_$(Configuration)\
- $(SolutionDir)bin\obj\$(RootNamespace)_$(Platform)_$(Configuration)\
-
-
-
- Application
- true
- MultiByte
-
-
- Application
- true
- MultiByte
-
-
- Application
- false
- true
- MultiByte
-
-
- Application
- false
- true
- MultiByte
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- true
- false
- $(IncludePath);$(SolutionDir)..\..\lib;$(SolutionDir)..\..\programs;$(SolutionDir)..\..\lib\legacy;$(SolutionDir)..\..\lib\common;$(SolutionDir)..\..\lib\dictBuilder;$(UniversalCRT_IncludePath);
-
-
- true
- false
- $(IncludePath);$(SolutionDir)..\..\lib;$(SolutionDir)..\..\programs;$(SolutionDir)..\..\lib\legacy;$(SolutionDir)..\..\lib\common;$(SolutionDir)..\..\lib\dictBuilder;$(UniversalCRT_IncludePath);
-
-
- false
- false
- $(IncludePath);$(SolutionDir)..\..\lib;$(SolutionDir)..\..\programs;$(SolutionDir)..\..\lib\legacy;$(SolutionDir)..\..\lib\common;$(SolutionDir)..\..\lib\dictBuilder;$(UniversalCRT_IncludePath);
-
-
- false
- false
- $(IncludePath);$(SolutionDir)..\..\lib;$(SolutionDir)..\..\programs;$(SolutionDir)..\..\lib\legacy;$(SolutionDir)..\..\lib\common;$(SolutionDir)..\..\lib\dictBuilder;$(UniversalCRT_IncludePath);
-
-
-
-
-
- Level4
- Disabled
- WIN32;_DEBUG;_CONSOLE;%(PreprocessorDefinitions)
- true
- false
-
-
- Console
- true
-
-
-
-
-
-
- Level4
- Disabled
- WIN32;_DEBUG;_CONSOLE;%(PreprocessorDefinitions)
- true
- false
-
-
- Console
- true
-
-
-
-
- Level4
-
-
- MaxSpeed
- true
- true
- WIN32;NDEBUG;_CONSOLE;%(PreprocessorDefinitions)
- false
- false
- MultiThreaded
-
-
- Console
- true
- true
- true
-
-
-
-
- Level4
-
-
- MaxSpeed
- true
- true
- WIN32;NDEBUG;_CONSOLE;%(PreprocessorDefinitions)
- false
- false
- MultiThreaded
-
-
- Console
- true
- true
- true
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
Index: vendor/zstd/dist/build/VS2010/fullbench-dll/fullbench-dll.vcxproj
===================================================================
--- vendor/zstd/dist/build/VS2010/fullbench-dll/fullbench-dll.vcxproj (revision 316986)
+++ vendor/zstd/dist/build/VS2010/fullbench-dll/fullbench-dll.vcxproj (nonexistent)
@@ -1,185 +0,0 @@
-
-
-
-
- Debug
- Win32
-
-
- Debug
- x64
-
-
- Release
- Win32
-
-
- Release
- x64
-
-
-
- {00000000-1CC8-4FD7-9281-6B8DBB9D3DF8}
- Win32Proj
- fullbench-dll
- $(SolutionDir)bin\$(Platform)_$(Configuration)\
- $(SolutionDir)bin\obj\$(RootNamespace)_$(Platform)_$(Configuration)\
-
-
-
- Application
- true
- MultiByte
-
-
- Application
- true
- MultiByte
-
-
- Application
- false
- true
- MultiByte
-
-
- Application
- false
- true
- MultiByte
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- true
- $(IncludePath);$(SolutionDir)..\..\lib;$(SolutionDir)..\..\programs;$(SolutionDir)..\..\lib\legacy;$(SolutionDir)..\..\lib\common;$(UniversalCRT_IncludePath);
- false
-
-
- true
- $(IncludePath);$(SolutionDir)..\..\lib;$(SolutionDir)..\..\programs;$(SolutionDir)..\..\lib\legacy;$(SolutionDir)..\..\lib\common;$(UniversalCRT_IncludePath);
- false
-
-
- false
- $(IncludePath);$(SolutionDir)..\..\lib;$(SolutionDir)..\..\programs;$(SolutionDir)..\..\lib\legacy;$(SolutionDir)..\..\lib\common;$(UniversalCRT_IncludePath);
- false
-
-
- false
- $(IncludePath);$(SolutionDir)..\..\lib;$(SolutionDir)..\..\programs;$(SolutionDir)..\..\lib\legacy;$(SolutionDir)..\..\lib\common;$(UniversalCRT_IncludePath);
- false
-
-
-
-
-
- Level4
- Disabled
- WIN32;_DEBUG;_CONSOLE;ZSTD_DLL_IMPORT=1;%(PreprocessorDefinitions)
- true
- false
-
-
- Console
- true
- $(SolutionDir)bin\$(Platform)_$(Configuration);%(AdditionalLibraryDirectories)
- libzstd.lib;%(AdditionalDependencies)
- false
-
-
-
-
-
-
- Level4
- Disabled
- WIN32;_DEBUG;_CONSOLE;ZSTD_DLL_IMPORT=1;%(PreprocessorDefinitions)
- true
- false
-
-
- Console
- true
- $(SolutionDir)bin\$(Platform)_$(Configuration);%(AdditionalLibraryDirectories)
- libzstd.lib;%(AdditionalDependencies)
-
-
-
-
- Level4
-
-
- MaxSpeed
- true
- true
- WIN32;_DEBUG;_CONSOLE;ZSTD_DLL_IMPORT=1;%(PreprocessorDefinitions)
- false
- false
- MultiThreaded
-
-
- Console
- true
- true
- true
- $(SolutionDir)bin\$(Platform)_$(Configuration);%(AdditionalLibraryDirectories)
- libzstd.lib;%(AdditionalDependencies)
- false
-
-
-
-
- Level4
-
-
- MaxSpeed
- true
- true
- WIN32;_DEBUG;_CONSOLE;ZSTD_DLL_IMPORT=1;%(PreprocessorDefinitions)
- false
- false
- MultiThreaded
-
-
- Console
- true
- true
- true
- $(SolutionDir)bin\$(Platform)_$(Configuration);%(AdditionalLibraryDirectories)
- libzstd.lib;%(AdditionalDependencies)
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {00000000-94d5-4bf9-8a50-7bd9929a0850}
-
-
-
-
-
-
\ No newline at end of file
Index: vendor/zstd/dist/build/VS2010/fullbench/fullbench.vcxproj
===================================================================
--- vendor/zstd/dist/build/VS2010/fullbench/fullbench.vcxproj (revision 316986)
+++ vendor/zstd/dist/build/VS2010/fullbench/fullbench.vcxproj (nonexistent)
@@ -1,186 +0,0 @@
-
-
-
-
- Debug
- Win32
-
-
- Debug
- x64
-
-
- Release
- Win32
-
-
- Release
- x64
-
-
-
- {61ABD629-1CC8-4FD7-9281-6B8DBB9D3DF8}
- Win32Proj
- fullbench
- $(SolutionDir)bin\$(Platform)_$(Configuration)\
- $(SolutionDir)bin\obj\$(RootNamespace)_$(Platform)_$(Configuration)\
-
-
-
- Application
- true
- MultiByte
-
-
- Application
- true
- MultiByte
-
-
- Application
- false
- true
- MultiByte
-
-
- Application
- false
- true
- MultiByte
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- true
- $(IncludePath);$(SolutionDir)..\..\lib;$(SolutionDir)..\..\programs;$(SolutionDir)..\..\lib\legacy;$(SolutionDir)..\..\lib\common;$(UniversalCRT_IncludePath);
- false
-
-
- true
- $(IncludePath);$(SolutionDir)..\..\lib;$(SolutionDir)..\..\programs;$(SolutionDir)..\..\lib\legacy;$(SolutionDir)..\..\lib\common;$(UniversalCRT_IncludePath);
- false
-
-
- false
- $(IncludePath);$(SolutionDir)..\..\lib;$(SolutionDir)..\..\programs;$(SolutionDir)..\..\lib\legacy;$(SolutionDir)..\..\lib\common;$(UniversalCRT_IncludePath);
- false
-
-
- false
- $(IncludePath);$(SolutionDir)..\..\lib;$(SolutionDir)..\..\programs;$(SolutionDir)..\..\lib\legacy;$(SolutionDir)..\..\lib\common;$(UniversalCRT_IncludePath);
- false
-
-
-
-
-
- Level4
- Disabled
- WIN32;_DEBUG;_CONSOLE;%(PreprocessorDefinitions)
- true
- false
-
-
- Console
- true
-
-
-
-
-
-
- Level4
- Disabled
- WIN32;_DEBUG;_CONSOLE;%(PreprocessorDefinitions)
- true
- false
-
-
- Console
- true
-
-
-
-
- Level4
-
-
- MaxSpeed
- true
- true
- WIN32;NDEBUG;_CONSOLE;%(PreprocessorDefinitions)
- false
- false
- MultiThreaded
-
-
- Console
- true
- true
- true
-
-
-
-
- Level4
-
-
- MaxSpeed
- true
- true
- WIN32;NDEBUG;_CONSOLE;%(PreprocessorDefinitions)
- false
- false
- MultiThreaded
-
-
- Console
- true
- true
- true
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
Index: vendor/zstd/dist/build/VS2010/libzstd-dll/libzstd-dll.rc
===================================================================
--- vendor/zstd/dist/build/VS2010/libzstd-dll/libzstd-dll.rc (revision 316986)
+++ vendor/zstd/dist/build/VS2010/libzstd-dll/libzstd-dll.rc (nonexistent)
@@ -1,51 +0,0 @@
-// Microsoft Visual C++ generated resource script.
-//
-
-#include "zstd.h" /* ZSTD_VERSION_STRING */
-#define APSTUDIO_READONLY_SYMBOLS
-#include "verrsrc.h"
-#undef APSTUDIO_READONLY_SYMBOLS
-
-
-#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_ENU)
-LANGUAGE 9, 1
-
-/////////////////////////////////////////////////////////////////////////////
-//
-// Version
-//
-
-VS_VERSION_INFO VERSIONINFO
- FILEVERSION ZSTD_VERSION_MAJOR,ZSTD_VERSION_MINOR,ZSTD_VERSION_RELEASE,0
- PRODUCTVERSION ZSTD_VERSION_MAJOR,ZSTD_VERSION_MINOR,ZSTD_VERSION_RELEASE,0
- FILEFLAGSMASK VS_FFI_FILEFLAGSMASK
-#ifdef _DEBUG
- FILEFLAGS VS_FF_DEBUG
-#else
- FILEFLAGS 0x0L
-#endif
- FILEOS VOS_NT_WINDOWS32
- FILETYPE VFT_DLL
- FILESUBTYPE VFT2_UNKNOWN
-BEGIN
- BLOCK "StringFileInfo"
- BEGIN
- BLOCK "040904B0"
- BEGIN
- VALUE "CompanyName", "Yann Collet, Facebook, Inc."
- VALUE "FileDescription", "Zstandard - Fast and efficient compression algorithm"
- VALUE "FileVersion", ZSTD_VERSION_STRING
- VALUE "InternalName", "libzstd.dll"
- VALUE "LegalCopyright", "Copyright (c) 2013-present, Yann Collet, Facebook, Inc."
- VALUE "OriginalFilename", "libzstd.dll"
- VALUE "ProductName", "Zstandard"
- VALUE "ProductVersion", ZSTD_VERSION_STRING
- END
- END
- BLOCK "VarFileInfo"
- BEGIN
- VALUE "Translation", 0x0409, 1200
- END
-END
-
-#endif
Index: vendor/zstd/dist/build/VS2010/libzstd-dll/libzstd-dll.vcxproj
===================================================================
--- vendor/zstd/dist/build/VS2010/libzstd-dll/libzstd-dll.vcxproj (revision 316986)
+++ vendor/zstd/dist/build/VS2010/libzstd-dll/libzstd-dll.vcxproj (nonexistent)
@@ -1,233 +0,0 @@
-
-
-
-
- Debug
- Win32
-
-
- Debug
- x64
-
-
- Release
- Win32
-
-
- Release
- x64
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {00000000-94D5-4BF9-8A50-7BD9929A0850}
- Win32Proj
- libzstd-dll
- $(SolutionDir)bin\$(Platform)_$(Configuration)\
- $(SolutionDir)bin\obj\$(RootNamespace)_$(Platform)_$(Configuration)\
-
-
-
- DynamicLibrary
- true
- MultiByte
-
-
- DynamicLibrary
- true
- MultiByte
-
-
- DynamicLibrary
- false
- true
- MultiByte
-
-
- DynamicLibrary
- false
- true
- MultiByte
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- true
- libzstd
- $(IncludePath);$(SolutionDir)..\..\lib;$(SolutionDir)..\..\programs\legacy;$(SolutionDir)..\..\lib\legacy;$(SolutionDir)..\..\lib\common;$(SolutionDir)..\..\lib\dictBuilder;$(UniversalCRT_IncludePath);
- false
-
-
- true
- libzstd
- $(IncludePath);$(SolutionDir)..\..\lib;$(SolutionDir)..\..\programs\legacy;$(SolutionDir)..\..\lib\legacy;$(SolutionDir)..\..\lib\common;$(SolutionDir)..\..\lib\dictBuilder;$(UniversalCRT_IncludePath);
- false
-
-
- false
- libzstd
- $(IncludePath);$(SolutionDir)..\..\lib;$(SolutionDir)..\..\programs\legacy;$(SolutionDir)..\..\lib\legacy;$(SolutionDir)..\..\lib\common;$(SolutionDir)..\..\lib\dictBuilder;$(UniversalCRT_IncludePath);
- false
-
-
- false
- libzstd
- $(IncludePath);$(SolutionDir)..\..\lib;$(SolutionDir)..\..\programs\legacy;$(SolutionDir)..\..\lib\legacy;$(SolutionDir)..\..\lib\common;$(SolutionDir)..\..\lib\dictBuilder;$(UniversalCRT_IncludePath);
- false
-
-
-
-
-
- Level4
- Disabled
- ZSTD_DLL_EXPORT=1;ZSTD_LEGACY_SUPPORT=4;WIN32;_DEBUG;_CONSOLE;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)
- true
- EnableFastChecks
- MultiThreadedDebugDLL
- EditAndContinue
- true
- false
-
-
- Console
- true
- MachineX86
-
-
-
-
-
-
- Level4
- Disabled
- ZSTD_DLL_EXPORT=1;ZSTD_LEGACY_SUPPORT=4;WIN32;_DEBUG;_CONSOLE;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)
- true
- EnableFastChecks
- MultiThreadedDebugDLL
- ProgramDatabase
- false
-
-
- Console
- true
-
-
-
-
- Level4
-
-
- MaxSpeed
- true
- true
- ZSTD_DLL_EXPORT=1;ZSTD_LEGACY_SUPPORT=4;WIN32;NDEBUG;_CONSOLE;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)
- false
- MultiThreaded
- ProgramDatabase
- All
-
-
- Console
- true
- true
- true
- MachineX86
-
-
-
-
- Level4
-
-
- MaxSpeed
- true
- true
- ZSTD_DLL_EXPORT=1;ZSTD_LEGACY_SUPPORT=4;WIN32;NDEBUG;_CONSOLE;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)
- false
- false
- MultiThreaded
- ProgramDatabase
- true
- true
- All
-
-
- Console
- true
- true
- true
-
-
-
-
-
-
Index: vendor/zstd/dist/build/VS_scripts/build.VS2010.cmd
===================================================================
--- vendor/zstd/dist/build/VS_scripts/build.VS2010.cmd (revision 316986)
+++ vendor/zstd/dist/build/VS_scripts/build.VS2010.cmd (nonexistent)
@@ -1,7 +0,0 @@
-@echo off
-
-rem build 32-bit
-call "%~p0%build.generic.cmd" VS2010 Win32 Release v100
-
-rem build 64-bit
-call "%~p0%build.generic.cmd" VS2010 x64 Release v100
\ No newline at end of file
Index: vendor/zstd/dist/build/VS_scripts/build.VS2012.cmd
===================================================================
--- vendor/zstd/dist/build/VS_scripts/build.VS2012.cmd (revision 316986)
+++ vendor/zstd/dist/build/VS_scripts/build.VS2012.cmd (nonexistent)
@@ -1,6 +0,0 @@
-@echo off
-
-rem build 32-bit
-call "%~p0%build.generic.cmd" VS2012 Win32 Release v110
-rem build 64-bit
-call "%~p0%build.generic.cmd" VS2012 x64 Release v110
\ No newline at end of file
Index: vendor/zstd/dist/build/VS_scripts/build.VS2013.cmd
===================================================================
--- vendor/zstd/dist/build/VS_scripts/build.VS2013.cmd (revision 316986)
+++ vendor/zstd/dist/build/VS_scripts/build.VS2013.cmd (nonexistent)
@@ -1,7 +0,0 @@
-@echo off
-
-rem build 32-bit
-call "%~p0%build.generic.cmd" VS2013 Win32 Release v120
-
-rem build 64-bit
-call "%~p0%build.generic.cmd" VS2013 x64 Release v120
\ No newline at end of file
Index: vendor/zstd/dist/build/VS_scripts/build.VS2015.cmd
===================================================================
--- vendor/zstd/dist/build/VS_scripts/build.VS2015.cmd (revision 316986)
+++ vendor/zstd/dist/build/VS_scripts/build.VS2015.cmd (nonexistent)
@@ -1,7 +0,0 @@
-@echo off
-
-rem build 32-bit
-call "%~p0%build.generic.cmd" VS2015 Win32 Release v140
-
-rem build 64-bit
-call "%~p0%build.generic.cmd" VS2015 x64 Release v140
\ No newline at end of file
Index: vendor/zstd/dist/build/VS_scripts/README.md
===================================================================
--- vendor/zstd/dist/build/VS_scripts/README.md (revision 316986)
+++ vendor/zstd/dist/build/VS_scripts/README.md (nonexistent)
@@ -1,54 +0,0 @@
-Command line scripts for Visual Studio compilation without IDE
-==============================================================
-
-Here are a few command lines for reference :
-
-### Build with Visual Studio 2013 for msvcr120.dll
-
-Running the following command will build both the `Release Win32` and `Release x64` versions:
-```batch
-build\build.VS2013.cmd
-```
-The result of each build will be in the corresponding `build\bin\Release\{ARCH}\` folder.
-
-If you want to only need one architecture:
-- Win32: `build\build.generic.cmd VS2013 Win32 Release v120`
-- x64: `build\build.generic.cmd VS2013 x64 Release v120`
-
-If you want a Debug build:
-- Win32: `build\build.generic.cmd VS2013 Win32 Debug v120`
-- x64: `build\build.generic.cmd VS2013 x64 Debug v120`
-
-### Build with Visual Studio 2015 for msvcr140.dll
-
-Running the following command will build both the `Release Win32` and `Release x64` versions:
-```batch
-build\build.VS2015.cmd
-```
-The result of each build will be in the corresponding `build\bin\Release\{ARCH}\` folder.
-
-If you want to only need one architecture:
-- Win32: `build\build.generic.cmd VS2015 Win32 Release v140`
-- x64: `build\build.generic.cmd VS2015 x64 Release v140`
-
-If you want a Debug build:
-- Win32: `build\build.generic.cmd VS2015 Win32 Debug v140`
-- x64: `build\build.generic.cmd VS2015 x64 Debug v140`
-
-### Build with Visual Studio 2015 for msvcr120.dll
-
-You need to invoke `build\build.generic.cmd` with the proper arguments:
-
-**For Win32**
-```batch
-build\build.generic.cmd VS2015 Win32 Release v120
-```
-The result of the build will be in the `build\bin\Release\Win32\` folder.
-
-**For x64**
-```batch
-build\build.generic.cmd VS2015 x64 Release v120
-```
-The result of the build will be in the `build\bin\Release\x64\` folder.
-
-If you want Debug builds, replace `Release` with `Debug`.
Index: vendor/zstd/dist/build/VS_scripts/build.generic.cmd
===================================================================
--- vendor/zstd/dist/build/VS_scripts/build.generic.cmd (revision 316986)
+++ vendor/zstd/dist/build/VS_scripts/build.generic.cmd (nonexistent)
@@ -1,52 +0,0 @@
-@echo off
-
-IF "%1%" == "" GOTO display_help
-
-SETLOCAL
-
-SET msbuild_version=%1
-
-SET msbuild_platform=%2
-IF "%msbuild_platform%" == "" SET msbuild_platform=x64
-
-SET msbuild_configuration=%3
-IF "%msbuild_configuration%" == "" SET msbuild_configuration=Release
-
-SET msbuild_toolset=%4
-
-GOTO build
-
-:display_help
-
-echo Syntax: build.generic.cmd msbuild_version msbuild_platform msbuild_configuration msbuild_toolset
-echo msbuild_version: VS installed version (VS2012, VS2013, VS2015, ...)
-echo msbuild_platform: Platform (x64 or Win32)
-echo msbuild_configuration: VS configuration (Release or Debug)
-echo msbuild_toolset: Platform Toolset (v100, v110, v120, v140)
-
-EXIT /B 1
-
-:build
-
-SET msbuild="%windir%\Microsoft.NET\Framework\v4.0.30319\MSBuild.exe"
-IF %msbuild_version% == VS2013 SET msbuild="%programfiles(x86)%\MSBuild\12.0\Bin\MSBuild.exe"
-IF %msbuild_version% == VS2015 SET msbuild="%programfiles(x86)%\MSBuild\14.0\Bin\MSBuild.exe"
-rem TODO: Visual Studio "15" (vNext) will use MSBuild 15.0 ?
-
-SET project="%~p0\..\VS2010\zstd.sln"
-
-SET msbuild_params=/verbosity:minimal /nologo /t:Clean,Build /p:Platform=%msbuild_platform% /p:Configuration=%msbuild_configuration%
-IF NOT "%msbuild_toolset%" == "" SET msbuild_params=%msbuild_params% /p:PlatformToolset=%msbuild_toolset%
-
-SET output=%~p0%bin
-SET output="%output%/%msbuild_configuration%/%msbuild_platform%/"
-SET msbuild_params=%msbuild_params% /p:OutDir=%output%
-
-echo ### Building %msbuild_version% project for %msbuild_configuration% %msbuild_platform% (%msbuild_toolset%)...
-echo ### Build Params: %msbuild_params%
-
-%msbuild% %project% %msbuild_params%
-IF ERRORLEVEL 1 EXIT /B 1
-echo # Success
-echo # OutDir: %output%
-echo #
Index: vendor/zstd/dist/build/VS2005/zstd/zstd.vcproj
===================================================================
--- vendor/zstd/dist/build/VS2005/zstd/zstd.vcproj (revision 316986)
+++ vendor/zstd/dist/build/VS2005/zstd/zstd.vcproj (nonexistent)
@@ -1,548 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
Index: vendor/zstd/dist/build/VS2005/zstd.sln
===================================================================
--- vendor/zstd/dist/build/VS2005/zstd.sln (revision 316986)
+++ vendor/zstd/dist/build/VS2005/zstd.sln (nonexistent)
@@ -1,55 +0,0 @@
-Microsoft Visual Studio Solution File, Format Version 9.00
-# Visual C++ Express 2005
-Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "zstd", "zstd\zstd.vcproj", "{1A2AB08E-5CE7-4C5B-BE55-458157C14051}"
-EndProject
-Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "fuzzer", "fuzzer\fuzzer.vcproj", "{A62E89D2-9DDE-42BA-8F9B-9DA74889A6B0}"
-EndProject
-Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "fullbench", "fullbench\fullbench.vcproj", "{CC8F1D1B-BA2F-43E3-A71F-FA415D81AAD3}"
-EndProject
-Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "zstdlib", "zstdlib\zstdlib.vcproj", "{99DE2A79-7298-4004-A0ED-030D7A3796CA}"
-EndProject
-Global
- GlobalSection(SolutionConfigurationPlatforms) = preSolution
- Debug|Win32 = Debug|Win32
- Debug|x64 = Debug|x64
- Release|Win32 = Release|Win32
- Release|x64 = Release|x64
- EndGlobalSection
- GlobalSection(ProjectConfigurationPlatforms) = postSolution
- {1A2AB08E-5CE7-4C5B-BE55-458157C14051}.Debug|Win32.ActiveCfg = Debug|Win32
- {1A2AB08E-5CE7-4C5B-BE55-458157C14051}.Debug|Win32.Build.0 = Debug|Win32
- {1A2AB08E-5CE7-4C5B-BE55-458157C14051}.Debug|x64.ActiveCfg = Debug|x64
- {1A2AB08E-5CE7-4C5B-BE55-458157C14051}.Debug|x64.Build.0 = Debug|x64
- {1A2AB08E-5CE7-4C5B-BE55-458157C14051}.Release|Win32.ActiveCfg = Release|Win32
- {1A2AB08E-5CE7-4C5B-BE55-458157C14051}.Release|Win32.Build.0 = Release|Win32
- {1A2AB08E-5CE7-4C5B-BE55-458157C14051}.Release|x64.ActiveCfg = Release|x64
- {1A2AB08E-5CE7-4C5B-BE55-458157C14051}.Release|x64.Build.0 = Release|x64
- {A62E89D2-9DDE-42BA-8F9B-9DA74889A6B0}.Debug|Win32.ActiveCfg = Debug|Win32
- {A62E89D2-9DDE-42BA-8F9B-9DA74889A6B0}.Debug|Win32.Build.0 = Debug|Win32
- {A62E89D2-9DDE-42BA-8F9B-9DA74889A6B0}.Debug|x64.ActiveCfg = Debug|x64
- {A62E89D2-9DDE-42BA-8F9B-9DA74889A6B0}.Debug|x64.Build.0 = Debug|x64
- {A62E89D2-9DDE-42BA-8F9B-9DA74889A6B0}.Release|Win32.ActiveCfg = Release|Win32
- {A62E89D2-9DDE-42BA-8F9B-9DA74889A6B0}.Release|Win32.Build.0 = Release|Win32
- {A62E89D2-9DDE-42BA-8F9B-9DA74889A6B0}.Release|x64.ActiveCfg = Release|x64
- {A62E89D2-9DDE-42BA-8F9B-9DA74889A6B0}.Release|x64.Build.0 = Release|x64
- {CC8F1D1B-BA2F-43E3-A71F-FA415D81AAD3}.Debug|Win32.ActiveCfg = Debug|Win32
- {CC8F1D1B-BA2F-43E3-A71F-FA415D81AAD3}.Debug|Win32.Build.0 = Debug|Win32
- {CC8F1D1B-BA2F-43E3-A71F-FA415D81AAD3}.Debug|x64.ActiveCfg = Debug|x64
- {CC8F1D1B-BA2F-43E3-A71F-FA415D81AAD3}.Debug|x64.Build.0 = Debug|x64
- {CC8F1D1B-BA2F-43E3-A71F-FA415D81AAD3}.Release|Win32.ActiveCfg = Release|Win32
- {CC8F1D1B-BA2F-43E3-A71F-FA415D81AAD3}.Release|Win32.Build.0 = Release|Win32
- {CC8F1D1B-BA2F-43E3-A71F-FA415D81AAD3}.Release|x64.ActiveCfg = Release|x64
- {CC8F1D1B-BA2F-43E3-A71F-FA415D81AAD3}.Release|x64.Build.0 = Release|x64
- {99DE2A79-7298-4004-A0ED-030D7A3796CA}.Debug|Win32.ActiveCfg = Debug|Win32
- {99DE2A79-7298-4004-A0ED-030D7A3796CA}.Debug|Win32.Build.0 = Debug|Win32
- {99DE2A79-7298-4004-A0ED-030D7A3796CA}.Debug|x64.ActiveCfg = Debug|x64
- {99DE2A79-7298-4004-A0ED-030D7A3796CA}.Debug|x64.Build.0 = Debug|x64
- {99DE2A79-7298-4004-A0ED-030D7A3796CA}.Release|Win32.ActiveCfg = Release|Win32
- {99DE2A79-7298-4004-A0ED-030D7A3796CA}.Release|Win32.Build.0 = Release|Win32
- {99DE2A79-7298-4004-A0ED-030D7A3796CA}.Release|x64.ActiveCfg = Release|x64
- {99DE2A79-7298-4004-A0ED-030D7A3796CA}.Release|x64.Build.0 = Release|x64
- EndGlobalSection
- GlobalSection(SolutionProperties) = preSolution
- HideSolutionNode = FALSE
- EndGlobalSection
-EndGlobal
Index: vendor/zstd/dist/build/VS2005/fuzzer/fuzzer.vcproj
===================================================================
--- vendor/zstd/dist/build/VS2005/fuzzer/fuzzer.vcproj (revision 316986)
+++ vendor/zstd/dist/build/VS2005/fuzzer/fuzzer.vcproj (nonexistent)
@@ -1,488 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
Index: vendor/zstd/dist/build/VS2005/zstdlib/zstdlib.vcproj
===================================================================
--- vendor/zstd/dist/build/VS2005/zstdlib/zstdlib.vcproj (revision 316986)
+++ vendor/zstd/dist/build/VS2005/zstdlib/zstdlib.vcproj (nonexistent)
@@ -1,562 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
Index: vendor/zstd/dist/build/VS2005/fullbench/fullbench.vcproj
===================================================================
--- vendor/zstd/dist/build/VS2005/fullbench/fullbench.vcproj (revision 316986)
+++ vendor/zstd/dist/build/VS2005/fullbench/fullbench.vcproj (nonexistent)
@@ -1,440 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
Index: vendor/zstd/dist/build/VS2008/zstd/zstd.vcproj
===================================================================
--- vendor/zstd/dist/build/VS2008/zstd/zstd.vcproj (revision 316986)
+++ vendor/zstd/dist/build/VS2008/zstd/zstd.vcproj (nonexistent)
@@ -1,565 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
Index: vendor/zstd/dist/build/VS2008/zstd.sln
===================================================================
--- vendor/zstd/dist/build/VS2008/zstd.sln (revision 316986)
+++ vendor/zstd/dist/build/VS2008/zstd.sln (nonexistent)
@@ -1,56 +0,0 @@
-
-Microsoft Visual Studio Solution File, Format Version 10.00
-# Visual Studio 2008
-Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "zstd", "zstd\zstd.vcproj", "{1A2AB08E-5CE7-4C5B-BE55-458157C14051}"
-EndProject
-Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "fuzzer", "fuzzer\fuzzer.vcproj", "{A62E89D2-9DDE-42BA-8F9B-9DA74889A6B0}"
-EndProject
-Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "fullbench", "fullbench\fullbench.vcproj", "{CC8F1D1B-BA2F-43E3-A71F-FA415D81AAD3}"
-EndProject
-Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "zstdlib", "zstdlib\zstdlib.vcproj", "{99DE2A79-7298-4004-A0ED-030D7A3796CA}"
-EndProject
-Global
- GlobalSection(SolutionConfigurationPlatforms) = preSolution
- Debug|Win32 = Debug|Win32
- Debug|x64 = Debug|x64
- Release|Win32 = Release|Win32
- Release|x64 = Release|x64
- EndGlobalSection
- GlobalSection(ProjectConfigurationPlatforms) = postSolution
- {1A2AB08E-5CE7-4C5B-BE55-458157C14051}.Debug|Win32.ActiveCfg = Debug|Win32
- {1A2AB08E-5CE7-4C5B-BE55-458157C14051}.Debug|Win32.Build.0 = Debug|Win32
- {1A2AB08E-5CE7-4C5B-BE55-458157C14051}.Debug|x64.ActiveCfg = Debug|x64
- {1A2AB08E-5CE7-4C5B-BE55-458157C14051}.Debug|x64.Build.0 = Debug|x64
- {1A2AB08E-5CE7-4C5B-BE55-458157C14051}.Release|Win32.ActiveCfg = Release|Win32
- {1A2AB08E-5CE7-4C5B-BE55-458157C14051}.Release|Win32.Build.0 = Release|Win32
- {1A2AB08E-5CE7-4C5B-BE55-458157C14051}.Release|x64.ActiveCfg = Release|x64
- {1A2AB08E-5CE7-4C5B-BE55-458157C14051}.Release|x64.Build.0 = Release|x64
- {A62E89D2-9DDE-42BA-8F9B-9DA74889A6B0}.Debug|Win32.ActiveCfg = Debug|Win32
- {A62E89D2-9DDE-42BA-8F9B-9DA74889A6B0}.Debug|Win32.Build.0 = Debug|Win32
- {A62E89D2-9DDE-42BA-8F9B-9DA74889A6B0}.Debug|x64.ActiveCfg = Debug|x64
- {A62E89D2-9DDE-42BA-8F9B-9DA74889A6B0}.Debug|x64.Build.0 = Debug|x64
- {A62E89D2-9DDE-42BA-8F9B-9DA74889A6B0}.Release|Win32.ActiveCfg = Release|Win32
- {A62E89D2-9DDE-42BA-8F9B-9DA74889A6B0}.Release|Win32.Build.0 = Release|Win32
- {A62E89D2-9DDE-42BA-8F9B-9DA74889A6B0}.Release|x64.ActiveCfg = Release|x64
- {A62E89D2-9DDE-42BA-8F9B-9DA74889A6B0}.Release|x64.Build.0 = Release|x64
- {CC8F1D1B-BA2F-43E3-A71F-FA415D81AAD3}.Debug|Win32.ActiveCfg = Debug|Win32
- {CC8F1D1B-BA2F-43E3-A71F-FA415D81AAD3}.Debug|Win32.Build.0 = Debug|Win32
- {CC8F1D1B-BA2F-43E3-A71F-FA415D81AAD3}.Debug|x64.ActiveCfg = Debug|x64
- {CC8F1D1B-BA2F-43E3-A71F-FA415D81AAD3}.Debug|x64.Build.0 = Debug|x64
- {CC8F1D1B-BA2F-43E3-A71F-FA415D81AAD3}.Release|Win32.ActiveCfg = Release|Win32
- {CC8F1D1B-BA2F-43E3-A71F-FA415D81AAD3}.Release|Win32.Build.0 = Release|Win32
- {CC8F1D1B-BA2F-43E3-A71F-FA415D81AAD3}.Release|x64.ActiveCfg = Release|x64
- {CC8F1D1B-BA2F-43E3-A71F-FA415D81AAD3}.Release|x64.Build.0 = Release|x64
- {99DE2A79-7298-4004-A0ED-030D7A3796CA}.Debug|Win32.ActiveCfg = Debug|Win32
- {99DE2A79-7298-4004-A0ED-030D7A3796CA}.Debug|Win32.Build.0 = Debug|Win32
- {99DE2A79-7298-4004-A0ED-030D7A3796CA}.Debug|x64.ActiveCfg = Debug|x64
- {99DE2A79-7298-4004-A0ED-030D7A3796CA}.Debug|x64.Build.0 = Debug|x64
- {99DE2A79-7298-4004-A0ED-030D7A3796CA}.Release|Win32.ActiveCfg = Release|Win32
- {99DE2A79-7298-4004-A0ED-030D7A3796CA}.Release|Win32.Build.0 = Release|Win32
- {99DE2A79-7298-4004-A0ED-030D7A3796CA}.Release|x64.ActiveCfg = Release|x64
- {99DE2A79-7298-4004-A0ED-030D7A3796CA}.Release|x64.Build.0 = Release|x64
- EndGlobalSection
- GlobalSection(SolutionProperties) = preSolution
- HideSolutionNode = FALSE
- EndGlobalSection
-EndGlobal
Index: vendor/zstd/dist/build/VS2008/fuzzer/fuzzer.vcproj
===================================================================
--- vendor/zstd/dist/build/VS2008/fuzzer/fuzzer.vcproj (revision 316986)
+++ vendor/zstd/dist/build/VS2008/fuzzer/fuzzer.vcproj (nonexistent)
@@ -1,489 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
Index: vendor/zstd/dist/build/VS2008/zstdlib/zstdlib.vcproj
===================================================================
--- vendor/zstd/dist/build/VS2008/zstdlib/zstdlib.vcproj (revision 316986)
+++ vendor/zstd/dist/build/VS2008/zstdlib/zstdlib.vcproj (nonexistent)
@@ -1,547 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
Index: vendor/zstd/dist/build/VS2008/fullbench/fullbench.vcproj
===================================================================
--- vendor/zstd/dist/build/VS2008/fullbench/fullbench.vcproj (revision 316986)
+++ vendor/zstd/dist/build/VS2008/fullbench/fullbench.vcproj (nonexistent)
@@ -1,441 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
Index: vendor/zstd/dist/build/cmake/tests/CMakeLists.txt
===================================================================
--- vendor/zstd/dist/build/cmake/tests/CMakeLists.txt (revision 316986)
+++ vendor/zstd/dist/build/cmake/tests/CMakeLists.txt (nonexistent)
@@ -1,58 +0,0 @@
-# ################################################################
-# zstd - Makefile
-# Copyright (C) Yann Collet 2014-2016
-# All rights reserved.
-#
-# BSD license
-#
-# Redistribution and use in source and binary forms, with or without modification,
-# are permitted provided that the following conditions are met:
-#
-# * Redistributions of source code must retain the above copyright notice, this
-# list of conditions and the following disclaimer.
-#
-# * Redistributions in binary form must reproduce the above copyright notice, this
-# list of conditions and the following disclaimer in the documentation and/or
-# other materials provided with the distribution.
-#
-# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
-# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
-# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
-# DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR
-# ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
-# (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
-# LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
-# ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
-# SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-#
-# You can contact the author at :
-# - zstd homepage : http://www.zstd.net/
-# ################################################################
-
-PROJECT(tests)
-
-SET(CMAKE_INCLUDE_CURRENT_DIR TRUE)
-
-# Define project root directory
-SET(ROOT_DIR ../../..)
-
-# Define programs directory, where sources and header files are located
-SET(LIBRARY_DIR ${ROOT_DIR}/lib)
-SET(PROGRAMS_DIR ${ROOT_DIR}/programs)
-SET(TESTS_DIR ${ROOT_DIR}/tests)
-INCLUDE_DIRECTORIES(${TESTS_DIR} ${PROGRAMS_DIR} ${LIBRARY_DIR} ${LIBRARY_DIR}/common ${LIBRARY_DIR}/compress ${LIBRARY_DIR}/dictBuilder)
-
-ADD_EXECUTABLE(fullbench ${PROGRAMS_DIR}/datagen.c ${TESTS_DIR}/fullbench.c)
-TARGET_LINK_LIBRARIES(fullbench libzstd_static)
-
-ADD_EXECUTABLE(fuzzer ${PROGRAMS_DIR}/datagen.c ${TESTS_DIR}/fuzzer.c)
-TARGET_LINK_LIBRARIES(fuzzer libzstd_static)
-
-IF (UNIX)
- ADD_EXECUTABLE(paramgrill ${PROGRAMS_DIR}/datagen.c ${TESTS_DIR}/paramgrill.c)
- TARGET_LINK_LIBRARIES(paramgrill libzstd_static m) #m is math library
-
- ADD_EXECUTABLE(datagen ${PROGRAMS_DIR}/datagen.c ${TESTS_DIR}/datagencli.c)
- TARGET_LINK_LIBRARIES(datagen libzstd_static)
-ENDIF (UNIX)
Property changes on: vendor/zstd/dist/build/cmake/tests/CMakeLists.txt
___________________________________________________________________
Deleted: svn:eol-style
## -1 +0,0 ##
-native
\ No newline at end of property
Deleted: svn:keywords
## -1 +0,0 ##
-FreeBSD=%H
\ No newline at end of property
Deleted: svn:mime-type
## -1 +0,0 ##
-text/plain
\ No newline at end of property
Index: vendor/zstd/dist/build/cmake/tests/.gitignore
===================================================================
--- vendor/zstd/dist/build/cmake/tests/.gitignore (revision 316986)
+++ vendor/zstd/dist/build/cmake/tests/.gitignore (nonexistent)
@@ -1,7 +0,0 @@
-# produced by make
-datagen
-fullbench
-fuzzer
-paramgrill
-zbufftest
-
Index: vendor/zstd/dist/build/cmake/CMakeLists.txt
===================================================================
--- vendor/zstd/dist/build/cmake/CMakeLists.txt (revision 316986)
+++ vendor/zstd/dist/build/cmake/CMakeLists.txt (nonexistent)
@@ -1,41 +0,0 @@
-# ################################################################
-# Copyright (c) 2016-present, Yann Collet, Facebook, Inc.
-# All rights reserved.
-#
-# This source code is licensed under the BSD-style license found in the
-# LICENSE file in the root directory of this source tree. An additional grant
-# of patent rights can be found in the PATENTS file in the same directory.
-# ################################################################
-
-PROJECT(zstd)
-CMAKE_MINIMUM_REQUIRED(VERSION 2.8.7)
-
-OPTION(ZSTD_LEGACY_SUPPORT "LEGACY SUPPORT" OFF)
-OPTION(ZSTD_MULTITHREAD_SUPPORT "MULTITHREADING SUPPORT" ON)
-OPTION(ZSTD_BUILD_CONTRIB "BUILD CONTRIB" OFF)
-
-IF (ZSTD_LEGACY_SUPPORT)
- MESSAGE(STATUS "ZSTD_LEGACY_SUPPORT defined!")
- ADD_DEFINITIONS(-DZSTD_LEGACY_SUPPORT=4)
-ELSE (ZSTD_LEGACY_SUPPORT)
- MESSAGE(STATUS "ZSTD_LEGACY_SUPPORT not defined!")
- ADD_DEFINITIONS(-DZSTD_LEGACY_SUPPORT=0)
-ENDIF (ZSTD_LEGACY_SUPPORT)
-
-ADD_SUBDIRECTORY(lib)
-ADD_SUBDIRECTORY(programs)
-ADD_SUBDIRECTORY(tests)
-IF (ZSTD_BUILD_CONTRIB)
- ADD_SUBDIRECTORY(contrib)
-ENDIF (ZSTD_BUILD_CONTRIB)
-
-#-----------------------------------------------------------------------------
-# Add extra compilation flags
-#-----------------------------------------------------------------------------
-INCLUDE(CMakeModules/AddExtraCompilationFlags.cmake)
-ADD_EXTRA_COMPILATION_FLAGS()
-
-ADD_CUSTOM_TARGET(clean-all
- COMMAND ${CMAKE_BUILD_TOOL} clean
- COMMAND rm -rf ${CMAKE_BINARY_DIR}/
-)
Property changes on: vendor/zstd/dist/build/cmake/CMakeLists.txt
___________________________________________________________________
Deleted: svn:eol-style
## -1 +0,0 ##
-native
\ No newline at end of property
Deleted: svn:keywords
## -1 +0,0 ##
-FreeBSD=%H
\ No newline at end of property
Deleted: svn:mime-type
## -1 +0,0 ##
-text/plain
\ No newline at end of property
Index: vendor/zstd/dist/build/cmake/CMakeModules/AddExtraCompilationFlags.cmake
===================================================================
--- vendor/zstd/dist/build/cmake/CMakeModules/AddExtraCompilationFlags.cmake (revision 316986)
+++ vendor/zstd/dist/build/cmake/CMakeModules/AddExtraCompilationFlags.cmake (nonexistent)
@@ -1,329 +0,0 @@
-MACRO(ADD_EXTRA_COMPILATION_FLAGS)
- include(CheckCXXCompilerFlag)
- include(CheckCCompilerFlag)
- if (CMAKE_COMPILER_IS_GNUCXX OR MINGW) #Not only UNIX but also WIN32 for MinGW
-
- set(POSITION_INDEPENDENT_CODE_FLAG "-fPIC")
- CHECK_C_COMPILER_FLAG(${POSITION_INDEPENDENT_CODE_FLAG} POSITION_INDEPENDENT_CODE_FLAG_ALLOWED)
- if (POSITION_INDEPENDENT_CODE_FLAG_ALLOWED)
- MESSAGE("Compiler flag ${POSITION_INDEPENDENT_CODE_FLAG} allowed")
- set(ACTIVATE_POSITION_INDEPENDENT_CODE_FLAG "ON" CACHE BOOL "activate -fPIC flag")
- else ()
- MESSAGE("Compiler flag ${POSITION_INDEPENDENT_CODE_FLAG} not allowed")
- endif (POSITION_INDEPENDENT_CODE_FLAG_ALLOWED)
-
- set(WARNING_UNDEF "-Wundef")
- CHECK_C_COMPILER_FLAG(${WARNING_UNDEF} WARNING_UNDEF_ALLOWED)
- if (WARNING_UNDEF_ALLOWED)
- MESSAGE("Compiler flag ${WARNING_UNDEF} allowed")
- set(ACTIVATE_WARNING_UNDEF "ON" CACHE BOOL "activate -Wundef flag")
- else ()
- MESSAGE("Compiler flag ${WARNING_UNDEF} not allowed")
- endif (WARNING_UNDEF_ALLOWED)
-
- set(WARNING_SHADOW "-Wshadow")
- CHECK_C_COMPILER_FLAG(${WARNING_SHADOW} WARNING_SHADOW_ALLOWED)
- if (WARNING_SHADOW_ALLOWED)
- MESSAGE("Compiler flag ${WARNING_SHADOW} allowed")
- set(ACTIVATE_WARNING_SHADOW "ON" CACHE BOOL "activate -Wshadow flag")
- else ()
- MESSAGE("Compiler flag ${WARNING_SHADOW} not allowed")
- endif (WARNING_SHADOW_ALLOWED)
-
- set(WARNING_CAST_ALIGN "-Wcast-align")
- CHECK_C_COMPILER_FLAG(${WARNING_CAST_ALIGN} WARNING_CAST_ALIGN_ALLOWED)
- if (WARNING_CAST_ALIGN_ALLOWED)
- MESSAGE("Compiler flag ${WARNING_CAST_ALIGN} allowed")
- set(ACTIVATE_WARNING_CAST_ALIGN "ON" CACHE BOOL "activate -Wcast-align flag")
- else ()
- MESSAGE("Compiler flag ${WARNING_CAST_ALIGN} not allowed")
- endif (WARNING_CAST_ALIGN_ALLOWED)
-
- set(WARNING_CAST_QUAL "-Wcast-qual")
- CHECK_C_COMPILER_FLAG(${WARNING_CAST_QUAL} WARNING_CAST_QUAL_ALLOWED)
- if (WARNING_CAST_QUAL_ALLOWED)
- MESSAGE("Compiler flag ${WARNING_CAST_QUAL} allowed")
- set(ACTIVATE_WARNING_CAST_QUAL "ON" CACHE BOOL "activate -Wcast-qual flag")
- else ()
- MESSAGE("Compiler flag ${WARNING_CAST_QUAL} not allowed")
- endif (WARNING_CAST_QUAL_ALLOWED)
-
- set(WARNING_STRICT_PROTOTYPES "-Wstrict-prototypes")
- CHECK_C_COMPILER_FLAG(${WARNING_STRICT_PROTOTYPES} WARNING_STRICT_PROTOTYPES_ALLOWED)
- if (WARNING_STRICT_PROTOTYPES_ALLOWED)
- MESSAGE("Compiler flag ${WARNING_STRICT_PROTOTYPES} allowed")
- set(ACTIVATE_WARNING_STRICT_PROTOTYPES "ON" CACHE BOOL "activate -Wstrict-prototypes flag")
- else ()
- MESSAGE("Compiler flag ${WARNING_STRICT_PROTOTYPES} not allowed")
- endif (WARNING_STRICT_PROTOTYPES_ALLOWED)
-
- set(WARNING_ALL "-Wall")
- CHECK_C_COMPILER_FLAG(${WARNING_ALL} WARNING_ALL_ALLOWED)
- if (WARNING_ALL_ALLOWED)
- MESSAGE("Compiler flag ${WARNING_ALL} allowed")
- set(ACTIVATE_WARNING_ALL "ON" CACHE BOOL "activate -Wall flag")
- else ()
- MESSAGE("Compiler flag ${WARNING_ALL} not allowed")
- endif (WARNING_ALL_ALLOWED)
-
- set(WARNING_EXTRA "-Wextra")
- CHECK_C_COMPILER_FLAG(${WARNING_EXTRA} WARNING_EXTRA_ALLOWED)
- if (WARNING_EXTRA_ALLOWED)
- MESSAGE("Compiler flag ${WARNING_EXTRA} allowed")
- set(ACTIVATE_WARNING_EXTRA "ON" CACHE BOOL "activate -Wextra flag")
- else ()
- MESSAGE("Compiler flag ${WARNING_EXTRA} not allowed")
- endif (WARNING_EXTRA_ALLOWED)
-
- set(WARNING_FLOAT_EQUAL "-Wfloat-equal")
- CHECK_C_COMPILER_FLAG(${WARNING_FLOAT_EQUAL} WARNING_FLOAT_EQUAL_ALLOWED)
- if (WARNING_FLOAT_EQUAL_ALLOWED)
- MESSAGE("Compiler flag ${WARNING_FLOAT_EQUAL} allowed")
- set(ACTIVATE_WARNING_FLOAT_EQUAL "OFF" CACHE BOOL "activate -Wfloat-equal flag")
- else ()
- MESSAGE("Compiler flag ${WARNING_FLOAT_EQUAL} not allowed")
- endif (WARNING_FLOAT_EQUAL_ALLOWED)
-
- set(WARNING_SIGN_CONVERSION "-Wsign-conversion")
- CHECK_C_COMPILER_FLAG(${WARNING_SIGN_CONVERSION} WARNING_SIGN_CONVERSION_ALLOWED)
- if (WARNING_SIGN_CONVERSION_ALLOWED)
- MESSAGE("Compiler flag ${WARNING_SIGN_CONVERSION} allowed")
- set(ACTIVATE_WARNING_SIGN_CONVERSION "OFF" CACHE BOOL "activate -Wsign-conversion flag")
- else ()
- MESSAGE("Compiler flag ${WARNING_SIGN_CONVERSION} not allowed")
- endif (WARNING_SIGN_CONVERSION_ALLOWED)
-
- if (ACTIVATE_POSITION_INDEPENDENT_CODE_FLAG)
- list(APPEND CMAKE_C_FLAGS ${POSITION_INDEPENDENT_CODE_FLAG})
- else ()
- string(REPLACE ${POSITION_INDEPENDENT_CODE_FLAG} "" CMAKE_C_FLAGS "${POSITION_INDEPENDENT_CODE_FLAG}")
- endif (ACTIVATE_POSITION_INDEPENDENT_CODE_FLAG)
-
- if (ACTIVATE_WARNING_UNDEF)
- list(APPEND CMAKE_CXX_FLAGS ${WARNING_UNDEF})
- list(APPEND CMAKE_C_FLAGS ${WARNING_UNDEF})
- else ()
- string(REPLACE ${WARNING_UNDEF} "" CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS}")
- string(REPLACE ${WARNING_UNDEF} "" CMAKE_C_FLAGS "${CMAKE_C_FLAGS}")
- endif (ACTIVATE_WARNING_UNDEF)
-
- if (ACTIVATE_WARNING_SHADOW)
- list(APPEND CMAKE_CXX_FLAGS ${WARNING_SHADOW})
- list(APPEND CMAKE_C_FLAGS ${WARNING_SHADOW})
- else ()
- string(REPLACE ${WARNING_SHADOW} "" CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS}")
- string(REPLACE ${WARNING_SHADOW} "" CMAKE_C_FLAGS "${CMAKE_C_FLAGS}")
- endif (ACTIVATE_WARNING_SHADOW)
-
- if (ACTIVATE_WARNING_CAST_QUAL)
- list(APPEND CMAKE_CXX_FLAGS ${WARNING_CAST_QUAL})
- list(APPEND CMAKE_C_FLAGS ${WARNING_CAST_QUAL})
- else ()
- string(REPLACE ${WARNING_CAST_QUAL} "" CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS}")
- string(REPLACE ${WARNING_CAST_QUAL} "" CMAKE_C_FLAGS "${CMAKE_C_FLAGS}")
- endif (ACTIVATE_WARNING_CAST_QUAL)
-
- if (ACTIVATE_WARNING_CAST_ALIGN)
- list(APPEND CMAKE_CXX_FLAGS ${WARNING_CAST_ALIGN})
- list(APPEND CMAKE_C_FLAGS ${WARNING_CAST_ALIGN})
- else ()
- string(REPLACE ${WARNING_CAST_ALIGN} "" CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS}")
- string(REPLACE ${WARNING_CAST_ALIGN} "" CMAKE_C_FLAGS "${CMAKE_C_FLAGS}")
- endif (ACTIVATE_WARNING_CAST_ALIGN)
-
- if (ACTIVATE_WARNING_STRICT_PROTOTYPES)
- list(APPEND CMAKE_C_FLAGS ${WARNING_STRICT_PROTOTYPES})
- else ()
- string(REPLACE ${WARNING_STRICT_PROTOTYPES} "" CMAKE_C_FLAGS "${CMAKE_C_FLAGS}")
- endif (ACTIVATE_WARNING_STRICT_PROTOTYPES)
-
- if (ACTIVATE_WARNING_ALL)
- list(APPEND CMAKE_CXX_FLAGS ${WARNING_ALL})
- list(APPEND CMAKE_C_FLAGS ${WARNING_ALL})
- else ()
- string(REPLACE ${WARNING_ALL} "" CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS}")
- string(REPLACE ${WARNING_ALL} "" CMAKE_C_FLAGS "${CMAKE_C_FLAGS}")
- endif (ACTIVATE_WARNING_ALL)
-
- if (ACTIVATE_WARNING_EXTRA)
- list(APPEND CMAKE_CXX_FLAGS ${WARNING_EXTRA})
- list(APPEND CMAKE_C_FLAGS ${WARNING_EXTRA})
- else ()
- string(REPLACE ${WARNING_EXTRA} "" CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS}")
- string(REPLACE ${WARNING_EXTRA} "" CMAKE_C_FLAGS "${CMAKE_C_FLAGS}")
- endif (ACTIVATE_WARNING_EXTRA)
-
- if (ACTIVATE_WARNING_FLOAT_EQUAL)
- list(APPEND CMAKE_CXX_FLAGS ${WARNING_FLOAT_EQUAL})
- list(APPEND CMAKE_C_FLAGS ${WARNING_FLOAT_EQUAL})
- else ()
- string(REPLACE ${WARNING_FLOAT_EQUAL} "" CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS}")
- string(REPLACE ${WARNING_FLOAT_EQUAL} "" CMAKE_C_FLAGS "${CMAKE_C_FLAGS}")
- endif (ACTIVATE_WARNING_FLOAT_EQUAL)
-
- if (ACTIVATE_WARNING_SIGN_CONVERSION)
- list(APPEND CMAKE_CXX_FLAGS ${WARNING_SIGN_CONVERSION})
- list(APPEND CMAKE_C_FLAGS ${WARNING_SIGN_CONVERSION})
- else ()
- string(REPLACE ${WARNING_SIGN_CONVERSION} "" CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS}")
- string(REPLACE ${WARNING_SIGN_CONVERSION} "" CMAKE_C_FLAGS "${CMAKE_C_FLAGS}")
- endif (ACTIVATE_WARNING_SIGN_CONVERSION)
-
- #Set c++11 by default
- list(APPEND CMAKE_CXX_FLAGS "-std=c++11")
-
- #Set c99 by default
- list(APPEND CMAKE_C_FLAGS "-std=c99")
-
- elseif (MSVC)
- # Add specific compilation flags for Windows Visual
-
- set(WARNING_ALL "/Wall")
- CHECK_C_COMPILER_FLAG(${WARNING_ALL} WARNING_ALL_ALLOWED)
- if (WARNING_ALL_ALLOWED)
- MESSAGE("Compiler flag ${WARNING_ALL} allowed")
- set(ACTIVATE_WARNING_ALL "OFF" CACHE BOOL "activate /Wall flag")
- else ()
- MESSAGE("Compiler flag ${WARNING_ALL} not allowed")
- endif (WARNING_ALL_ALLOWED)
-
- set(RTC_FLAG "/RTC1")
- CHECK_C_COMPILER_FLAG(${RTC_FLAG} RTC_FLAG_ALLOWED)
- if (RTC_FLAG_ALLOWED)
- MESSAGE("Compiler flag ${RTC_FLAG} allowed")
- set(ACTIVATE_RTC_FLAG "ON" CACHE BOOL "activate /RTC1 flag")
- else ()
- MESSAGE("Compiler flag ${RTC_FLAG} not allowed")
- endif (RTC_FLAG_ALLOWED)
-
- set(ZC_FLAG "/Zc:forScope")
- CHECK_C_COMPILER_FLAG(${ZC_FLAG} ZC_FLAG_ALLOWED)
- if (ZC_FLAG_ALLOWED)
- MESSAGE("Compiler flag ${ZC_FLAG} allowed")
- set(ACTIVATE_ZC_FLAG "ON" CACHE BOOL "activate /Zc:forScope flag")
- else ()
- MESSAGE("Compiler flag ${ZC_FLAG} not allowed")
- endif (ZC_FLAG_ALLOWED)
-
- set(GD_FLAG "/Gd")
- CHECK_C_COMPILER_FLAG(${GD_FLAG} GD_FLAG_ALLOWED)
- if (GD_FLAG_ALLOWED)
- MESSAGE("Compiler flag ${GD_FLAG} allowed")
- set(ACTIVATE_GD_FLAG "ON" CACHE BOOL "activate /Gd flag")
- else ()
- MESSAGE("Compiler flag ${GD_FLAG} not allowed")
- endif (GD_FLAG_ALLOWED)
-
- set(ANALYZE_FLAG "/analyze:stacksize25000")
- CHECK_C_COMPILER_FLAG(${ANALYZE_FLAG} ANALYZE_FLAG_ALLOWED)
- if (ANALYZE_FLAG_ALLOWED)
- MESSAGE("Compiler flag ${ANALYZE_FLAG} allowed")
- set(ACTIVATE_ANALYZE_FLAG "ON" CACHE BOOL "activate /ANALYZE flag")
- else ()
- MESSAGE("Compiler flag ${ANALYZE_FLAG} not allowed")
- endif (ANALYZE_FLAG_ALLOWED)
-
- if (ACTIVATE_WARNING_ALL)
- list(APPEND CMAKE_CXX_FLAGS ${WARNING_ALL})
- list(APPEND CMAKE_C_FLAGS ${WARNING_ALL})
- else ()
- string(REPLACE ${WARNING_ALL} "" CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS}")
- string(REPLACE ${WARNING_ALL} "" CMAKE_C_FLAGS "${CMAKE_C_FLAGS}")
- endif (ACTIVATE_WARNING_ALL)
-
- # Only for DEBUG version
- if (ACTIVATE_RTC_FLAG)
- list(APPEND CMAKE_CXX_FLAGS_DEBUG ${RTC_FLAG})
- list(APPEND CMAKE_C_FLAGS_DEBUG ${RTC_FLAG})
- else ()
- string(REPLACE ${RTC_FLAG} "" CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG}")
- string(REPLACE ${RTC_FLAG} "" CMAKE_C_FLAGS_DEBUG "${CMAKE_C_FLAGS_DEBUG}")
- endif (ACTIVATE_RTC_FLAG)
-
- if (ACTIVATE_ZC_FLAG)
- list(APPEND CMAKE_CXX_FLAGS ${ZC_FLAG})
- list(APPEND CMAKE_C_FLAGS ${ZC_FLAG})
- else ()
- string(REPLACE ${ZC_FLAG} "" CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS}")
- string(REPLACE ${ZC_FLAG} "" CMAKE_C_FLAGS "${CMAKE_C_FLAGS}")
- endif (ACTIVATE_ZC_FLAG)
-
- if (ACTIVATE_GD_FLAG)
- list(APPEND CMAKE_CXX_FLAGS ${GD_FLAG})
- list(APPEND CMAKE_C_FLAGS ${GD_FLAG})
- else ()
- string(REPLACE ${GD_FLAG} "" CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS}")
- string(REPLACE ${GD_FLAG} "" CMAKE_C_FLAGS "${CMAKE_C_FLAGS}")
- endif (ACTIVATE_GD_FLAG)
-
- if (ACTIVATE_ANALYZE_FLAG)
- list(APPEND CMAKE_CXX_FLAGS ${ANALYZE_FLAG})
- list(APPEND CMAKE_C_FLAGS ${ANALYZE_FLAG})
- else ()
- string(REPLACE ${ANALYZE_FLAG} "" CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS}")
- string(REPLACE ${ANALYZE_FLAG} "" CMAKE_C_FLAGS "${CMAKE_C_FLAGS}")
- endif (ACTIVATE_ANALYZE_FLAG)
-
- if (MSVC80 OR MSVC90 OR MSVC10 OR MSVC11)
- # To avoid compiler warning (level 4) C4571, compile with /EHa if you still want
- # your catch(...) blocks to catch structured exceptions.
- list(APPEND CMAKE_CXX_FLAGS "/EHa")
- endif (MSVC80 OR MSVC90 OR MSVC10 OR MSVC11)
-
- set(MULTITHREADED_COMPILATION "/MP")
- MESSAGE("Compiler flag ${MULTITHREADED_COMPILATION} allowed")
- set(ACTIVATE_MULTITHREADED_COMPILATION "ON" CACHE BOOL "activate /MP flag")
-
- if (ACTIVATE_MULTITHREADED_COMPILATION)
- list(APPEND CMAKE_CXX_FLAGS ${MULTITHREADED_COMPILATION})
- list(APPEND CMAKE_C_FLAGS ${MULTITHREADED_COMPILATION})
- else ()
- string(REPLACE ${MULTITHREADED_COMPILATION} "" CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS}")
- string(REPLACE ${MULTITHREADED_COMPILATION} "" CMAKE_C_FLAGS "${CMAKE_C_FLAGS}")
- endif (ACTIVATE_MULTITHREADED_COMPILATION)
-
- #For exceptions
- list(APPEND CMAKE_CXX_FLAGS "/EHsc")
- list(APPEND CMAKE_C_FLAGS "/EHsc")
-
- # UNICODE SUPPORT
- list(APPEND CMAKE_CXX_FLAGS "/D_UNICODE /DUNICODE")
- list(APPEND CMAKE_C_FLAGS "/D_UNICODE /DUNICODE")
- endif ()
-
- # Remove duplicates compilation flags
- FOREACH (flag_var CMAKE_C_FLAGS CMAKE_C_FLAGS_DEBUG CMAKE_C_FLAGS_RELEASE
- CMAKE_C_FLAGS_MINSIZEREL CMAKE_C_FLAGS_RELWITHDEBINFO
- CMAKE_CXX_FLAGS CMAKE_CXX_FLAGS_DEBUG CMAKE_CXX_FLAGS_RELEASE
- CMAKE_CXX_FLAGS_MINSIZEREL CMAKE_CXX_FLAGS_RELWITHDEBINFO)
- separate_arguments(${flag_var})
- list(REMOVE_DUPLICATES ${flag_var})
- string(REPLACE ";" " " ${flag_var} "${${flag_var}}")
- set(${flag_var} "${${flag_var}}" CACHE STRING "common build flags" FORCE)
- ENDFOREACH (flag_var)
-
- if (MSVC)
- # Replace /MT to /MD flag
- # Replace /O2 to /O3 flag
- FOREACH (flag_var CMAKE_C_FLAGS CMAKE_C_FLAGS_DEBUG CMAKE_C_FLAGS_RELEASE
- CMAKE_C_FLAGS_MINSIZEREL CMAKE_C_FLAGS_RELWITHDEBINFO
- CMAKE_CXX_FLAGS CMAKE_CXX_FLAGS_DEBUG CMAKE_CXX_FLAGS_RELEASE
- CMAKE_CXX_FLAGS_MINSIZEREL CMAKE_CXX_FLAGS_RELWITHDEBINFO)
- STRING(REGEX REPLACE "/MT" "/MD" ${flag_var} "${${flag_var}}")
- STRING(REGEX REPLACE "/O2" "/Ox" ${flag_var} "${${flag_var}}")
- ENDFOREACH (flag_var)
- endif ()
-
- set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS}" CACHE STRING "Updated flags" FORCE)
- set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG}" CACHE STRING "Updated flags" FORCE)
- set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE}" CACHE STRING "Updated flags" FORCE)
- set(CMAKE_CXX_FLAGS_MINSIZEREL "${CMAKE_CXX_FLAGS_MINSIZEREL}" CACHE STRING "Updated flags" FORCE)
- set(CMAKE_CXX_FLAGS_RELWITHDEBINFO "${CMAKE_CXX_FLAGS_RELWITHDEBINFO}" CACHE STRING "Updated flags" FORCE)
-
- set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS}" CACHE STRING "Updated flags" FORCE)
- set(CMAKE_C_FLAGS_DEBUG "${CMAKE_C_FLAGS_DEBUG}" CACHE STRING "Updated flags" FORCE)
- set(CMAKE_C_FLAGS_RELEASE "${CMAKE_C_FLAGS_RELEASE}" CACHE STRING "Updated flags" FORCE)
- set(CMAKE_C_FLAGS_MINSIZEREL "${CMAKE_C_FLAGS_MINSIZEREL}" CACHE STRING "Updated flags" FORCE)
- set(CMAKE_C_FLAGS_RELWITHDEBINFO "${CMAKE_C_FLAGS_RELWITHDEBINFO}" CACHE STRING "Updated flags" FORCE)
-
-ENDMACRO(ADD_EXTRA_COMPILATION_FLAGS)
Index: vendor/zstd/dist/build/cmake/cmake_uninstall.cmake.in
===================================================================
--- vendor/zstd/dist/build/cmake/cmake_uninstall.cmake.in (revision 316986)
+++ vendor/zstd/dist/build/cmake/cmake_uninstall.cmake.in (nonexistent)
@@ -1,22 +0,0 @@
-
-if(NOT EXISTS "@CMAKE_BINARY_DIR@/install_manifest.txt")
- message(FATAL_ERROR "Cannot find install manifest: @CMAKE_BINARY_DIR@/install_manifest.txt")
-endif(NOT EXISTS "@CMAKE_BINARY_DIR@/install_manifest.txt")
-
-file(READ "@CMAKE_BINARY_DIR@/install_manifest.txt" files)
-string(REGEX REPLACE "\n" ";" files "${files}")
-foreach(file ${files})
- message(STATUS "Uninstalling $ENV{DESTDIR}${file}")
- if(IS_SYMLINK "$ENV{DESTDIR}${file}" OR EXISTS "$ENV{DESTDIR}${file}")
- exec_program(
- "@CMAKE_COMMAND@" ARGS "-E remove \"$ENV{DESTDIR}${file}\""
- OUTPUT_VARIABLE rm_out
- RETURN_VALUE rm_retval
- )
- if(NOT "${rm_retval}" STREQUAL 0)
- message(FATAL_ERROR "Problem when removing $ENV{DESTDIR}${file}")
- endif(NOT "${rm_retval}" STREQUAL 0)
- else(IS_SYMLINK "$ENV{DESTDIR}${file}" OR EXISTS "$ENV{DESTDIR}${file}")
- message(STATUS "File $ENV{DESTDIR}${file} does not exist.")
- endif(IS_SYMLINK "$ENV{DESTDIR}${file}" OR EXISTS "$ENV{DESTDIR}${file}")
-endforeach(file)
Property changes on: vendor/zstd/dist/build/cmake/cmake_uninstall.cmake.in
___________________________________________________________________
Deleted: svn:eol-style
## -1 +0,0 ##
-native
\ No newline at end of property
Deleted: svn:keywords
## -1 +0,0 ##
-FreeBSD=%H
\ No newline at end of property
Deleted: svn:mime-type
## -1 +0,0 ##
-text/plain
\ No newline at end of property
Index: vendor/zstd/dist/build/cmake/contrib/CMakeLists.txt
===================================================================
--- vendor/zstd/dist/build/cmake/contrib/CMakeLists.txt (revision 316986)
+++ vendor/zstd/dist/build/cmake/contrib/CMakeLists.txt (nonexistent)
@@ -1,16 +0,0 @@
-# ################################################################
-# * Copyright (c) 2015-present, Yann Collet, Facebook, Inc.
-# * All rights reserved.
-# *
-# * This source code is licensed under the BSD-style license found in the
-# * LICENSE file in the root directory of this source tree. An additional grant
-# * of patent rights can be found in the PATENTS file in the same directory.
-#
-# You can contact the author at :
-# - zstd homepage : http://www.zstd.net/
-# ################################################################
-
-PROJECT(contrib)
-
-ADD_SUBDIRECTORY(pzstd)
-
Property changes on: vendor/zstd/dist/build/cmake/contrib/CMakeLists.txt
___________________________________________________________________
Deleted: svn:eol-style
## -1 +0,0 ##
-native
\ No newline at end of property
Deleted: svn:keywords
## -1 +0,0 ##
-FreeBSD=%H
\ No newline at end of property
Deleted: svn:mime-type
## -1 +0,0 ##
-text/plain
\ No newline at end of property
Index: vendor/zstd/dist/build/cmake/contrib/pzstd/CMakeLists.txt
===================================================================
--- vendor/zstd/dist/build/cmake/contrib/pzstd/CMakeLists.txt (revision 316986)
+++ vendor/zstd/dist/build/cmake/contrib/pzstd/CMakeLists.txt (nonexistent)
@@ -1,30 +0,0 @@
-# ################################################################
-# * Copyright (c) 2015-present, Yann Collet, Facebook, Inc.
-# * All rights reserved.
-# *
-# * This source code is licensed under the BSD-style license found in the
-# * LICENSE file in the root directory of this source tree. An additional grant
-# * of patent rights can be found in the PATENTS file in the same directory.
-#
-# You can contact the author at :
-# - zstd homepage : http://www.zstd.net/
-# ################################################################
-
-PROJECT(pzstd)
-
-SET(CMAKE_INCLUDE_CURRENT_DIR TRUE)
-
-# Define project root directory
-SET(ROOT_DIR ../../../..)
-
-# Define programs directory, where sources and header files are located
-SET(LIBRARY_DIR ${ROOT_DIR}/lib)
-SET(PROGRAMS_DIR ${ROOT_DIR}/programs)
-SET(PZSTD_DIR ${ROOT_DIR}/contrib/pzstd)
-INCLUDE_DIRECTORIES(${PROGRAMS_DIR} ${LIBRARY_DIR} ${LIBRARY_DIR}/common ${PZSTD_DIR})
-
-ADD_EXECUTABLE(pzstd ${PZSTD_DIR}/main.cpp ${PZSTD_DIR}/Options.cpp ${PZSTD_DIR}/Pzstd.cpp ${PZSTD_DIR}/SkippableFrame.cpp)
-TARGET_LINK_LIBRARIES(pzstd libzstd_static pthread)
-SET_TARGET_PROPERTIES(pzstd PROPERTIES COMPILE_DEFINITIONS "NDEBUG")
-SET_TARGET_PROPERTIES(pzstd PROPERTIES COMPILE_OPTIONS "-Wno-shadow")
-
Property changes on: vendor/zstd/dist/build/cmake/contrib/pzstd/CMakeLists.txt
___________________________________________________________________
Deleted: svn:eol-style
## -1 +0,0 ##
-native
\ No newline at end of property
Deleted: svn:keywords
## -1 +0,0 ##
-FreeBSD=%H
\ No newline at end of property
Deleted: svn:mime-type
## -1 +0,0 ##
-text/plain
\ No newline at end of property
Index: vendor/zstd/dist/build/cmake/lib/CMakeLists.txt
===================================================================
--- vendor/zstd/dist/build/cmake/lib/CMakeLists.txt (revision 316986)
+++ vendor/zstd/dist/build/cmake/lib/CMakeLists.txt (nonexistent)
@@ -1,192 +0,0 @@
-# ################################################################
-# * Copyright (c) 2014-present, Yann Collet, Facebook, Inc.
-# * All rights reserved.
-# *
-# * This source code is licensed under the BSD-style license found in the
-# * LICENSE file in the root directory of this source tree. An additional grant
-# * of patent rights can be found in the PATENTS file in the same directory.
-#
-# You can contact the author at :
-# - zstd homepage : http://www.zstd.net/
-# ################################################################
-
-# Get library version based on information from input content (use regular exp)
-function(GetLibraryVersion _content _outputVar1 _outputVar2 _outputVar3)
- string(REGEX MATCHALL ".*define ZSTD_VERSION_MAJOR+.* ([0-9]+).*define ZSTD_VERSION_MINOR+.* ([0-9]+).*define ZSTD_VERSION_RELEASE+.* ([0-9]+)" VERSION_REGEX "${_content}")
- SET(${_outputVar1} ${CMAKE_MATCH_1} PARENT_SCOPE)
- SET(${_outputVar2} ${CMAKE_MATCH_2} PARENT_SCOPE)
- SET(${_outputVar3} ${CMAKE_MATCH_3} PARENT_SCOPE)
-endfunction()
-
-PROJECT(libzstd)
-
-SET(CMAKE_INCLUDE_CURRENT_DIR TRUE)
-
-# Define project root directory
-SET(ROOT_DIR ../../..)
-
-# Define library directory, where sources and header files are located
-SET(LIBRARY_DIR ${ROOT_DIR}/lib)
-INCLUDE_DIRECTORIES(${LIBRARY_DIR} ${LIBRARY_DIR}/common)
-
-# Read file content
-FILE(READ ${LIBRARY_DIR}/zstd.h HEADER_CONTENT)
-
-# Parse version
-GetLibraryVersion("${HEADER_CONTENT}" LIBVER_MAJOR LIBVER_MINOR LIBVER_RELEASE)
-MESSAGE("ZSTD VERSION ${LIBVER_MAJOR}.${LIBVER_MINOR}.${LIBVER_RELEASE}")
-
-SET(Sources
- ${LIBRARY_DIR}/common/entropy_common.c
- ${LIBRARY_DIR}/common/fse_decompress.c
- ${LIBRARY_DIR}/common/threading.c
- ${LIBRARY_DIR}/common/pool.c
- ${LIBRARY_DIR}/common/zstd_common.c
- ${LIBRARY_DIR}/common/error_private.c
- ${LIBRARY_DIR}/common/xxhash.c
- ${LIBRARY_DIR}/compress/fse_compress.c
- ${LIBRARY_DIR}/compress/huf_compress.c
- ${LIBRARY_DIR}/compress/zstd_compress.c
- ${LIBRARY_DIR}/compress/zstdmt_compress.c
- ${LIBRARY_DIR}/decompress/huf_decompress.c
- ${LIBRARY_DIR}/decompress/zstd_decompress.c
- ${LIBRARY_DIR}/dictBuilder/cover.c
- ${LIBRARY_DIR}/dictBuilder/divsufsort.c
- ${LIBRARY_DIR}/dictBuilder/zdict.c
- ${LIBRARY_DIR}/deprecated/zbuff_common.c
- ${LIBRARY_DIR}/deprecated/zbuff_compress.c
- ${LIBRARY_DIR}/deprecated/zbuff_decompress.c)
-
-SET(Headers
- ${LIBRARY_DIR}/zstd.h
- ${LIBRARY_DIR}/common/pool.h
- ${LIBRARY_DIR}/common/threading.h
- ${LIBRARY_DIR}/common/bitstream.h
- ${LIBRARY_DIR}/common/error_private.h
- ${LIBRARY_DIR}/common/zstd_errors.h
- ${LIBRARY_DIR}/common/fse.h
- ${LIBRARY_DIR}/common/huf.h
- ${LIBRARY_DIR}/common/mem.h
- ${LIBRARY_DIR}/common/zstd_internal.h
- ${LIBRARY_DIR}/compress/zstdmt_compress.h
- ${LIBRARY_DIR}/dictBuilder/zdict.h
- ${LIBRARY_DIR}/deprecated/zbuff.h)
-
-IF (ZSTD_LEGACY_SUPPORT)
- SET(LIBRARY_LEGACY_DIR ${LIBRARY_DIR}/legacy)
- INCLUDE_DIRECTORIES(${LIBRARY_LEGACY_DIR})
-
- SET(Sources ${Sources}
- ${LIBRARY_LEGACY_DIR}/zstd_v01.c
- ${LIBRARY_LEGACY_DIR}/zstd_v02.c
- ${LIBRARY_LEGACY_DIR}/zstd_v03.c
- ${LIBRARY_LEGACY_DIR}/zstd_v04.c
- ${LIBRARY_LEGACY_DIR}/zstd_v05.c
- ${LIBRARY_LEGACY_DIR}/zstd_v06.c
- ${LIBRARY_LEGACY_DIR}/zstd_v07.c)
-
- SET(Headers ${Headers}
- ${LIBRARY_LEGACY_DIR}/zstd_legacy.h
- ${LIBRARY_LEGACY_DIR}/zstd_v01.h
- ${LIBRARY_LEGACY_DIR}/zstd_v02.h
- ${LIBRARY_LEGACY_DIR}/zstd_v03.h
- ${LIBRARY_LEGACY_DIR}/zstd_v04.h
- ${LIBRARY_LEGACY_DIR}/zstd_v05.h
- ${LIBRARY_LEGACY_DIR}/zstd_v06.h
- ${LIBRARY_LEGACY_DIR}/zstd_v07.h)
-ENDIF (ZSTD_LEGACY_SUPPORT)
-
-IF (MSVC)
- SET(MSVC_RESOURCE_DIR ${ROOT_DIR}/build/VS2010/libzstd-dll)
- SET(PlatformDependResources ${MSVC_RESOURCE_DIR}/libzstd-dll.rc)
-ENDIF (MSVC)
-
-# Split project to static and shared libraries build
-ADD_LIBRARY(libzstd_static STATIC ${Sources} ${Headers})
-ADD_LIBRARY(libzstd_shared SHARED ${Sources} ${Headers} ${PlatformDependResources})
-
-# Add specific compile definitions for MSVC project
-IF (MSVC)
- SET_TARGET_PROPERTIES(libzstd_static PROPERTIES COMPILE_DEFINITIONS "ZSTD_HEAPMODE=0;_CRT_SECURE_NO_WARNINGS")
- SET_TARGET_PROPERTIES(libzstd_shared PROPERTIES COMPILE_DEFINITIONS "ZSTD_DLL_EXPORT=1;ZSTD_HEAPMODE=0;_CONSOLE;_CRT_SECURE_NO_WARNINGS")
-ENDIF (MSVC)
-
-# Define library base name
-IF (MSVC)
- SET(LIBRARY_BASE_NAME zstdlib)
-ELSE ()
- SET(LIBRARY_BASE_NAME libzstd)
-ENDIF (MSVC)
-
-IF (MSVC)
- IF (CMAKE_SIZEOF_VOID_P MATCHES "8")
- SET(LIBRARY_ARCH_SUFFIX "_x64")
- ELSE ()
- SET(LIBRARY_ARCH_SUFFIX "_x86")
- ENDIF (CMAKE_SIZEOF_VOID_P MATCHES "8")
-ELSE ()
- SET(LIBRARY_ARCH_SUFFIX "")
-ENDIF (MSVC)
-
-# Define static and shared library names
-SET(STATIC_LIBRARY_OUTPUT_NAME ${LIBRARY_BASE_NAME}${LIBRARY_ARCH_SUFFIX} CACHE STRING "Static library output name")
-SET(SHARED_LIBRARY_OUTPUT_NAME ${LIBRARY_BASE_NAME}.${LIBVER_MAJOR}.${LIBVER_MINOR}.${LIBVER_RELEASE}${LIBRARY_ARCH_SUFFIX} CACHE STRING "Shared library output name")
-
-SET_TARGET_PROPERTIES(
- libzstd_static
- PROPERTIES
- PREFIX ""
- OUTPUT_NAME ${STATIC_LIBRARY_OUTPUT_NAME})
-
-SET_TARGET_PROPERTIES(
- libzstd_shared
- PROPERTIES
- PREFIX ""
- OUTPUT_NAME ${SHARED_LIBRARY_OUTPUT_NAME})
-
-IF (UNIX)
- IF ("${PREFIX}" STREQUAL "")
- SET(PREFIX /usr/local)
- ENDIF()
- MESSAGE("the variable PREFIX=${PREFIX}")
- SET(INSTALL_LIBRARY_DIR ${PREFIX}/lib)
- SET(INSTALL_INCLUDE_DIR ${PREFIX}/include)
-
- # install target
- INSTALL(FILES ${LIBRARY_DIR}/zstd.h ${LIBRARY_DIR}/deprecated/zbuff.h ${LIBRARY_DIR}/dictBuilder/zdict.h DESTINATION ${INSTALL_INCLUDE_DIR})
- INSTALL(TARGETS libzstd_static DESTINATION ${INSTALL_LIBRARY_DIR})
- INSTALL(TARGETS libzstd_shared LIBRARY DESTINATION ${INSTALL_LIBRARY_DIR})
-
- # Create symlinks and setup this files
- SET(SHARED_LIBRARY_LINK ${SHARED_LIBRARY_OUTPUT_NAME}${CMAKE_SHARED_LIBRARY_SUFFIX})
- SET(SHARED_LIBRARY_SYMLINK1 ${LIBRARY_BASE_NAME}${CMAKE_SHARED_LIBRARY_SUFFIX})
- SET(SHARED_LIBRARY_SYMLINK2 ${LIBRARY_BASE_NAME}${CMAKE_SHARED_LIBRARY_SUFFIX}.${LIBVER_MAJOR})
-
- SET(SHARED_LIBRARY_LINK_PATH ${CMAKE_CURRENT_BINARY_DIR}/${SHARED_LIBRARY_LINK})
- SET(SHARED_LIBRARY_SYMLINK1_PATH ${CMAKE_CURRENT_BINARY_DIR}/${SHARED_LIBRARY_SYMLINK1})
- SET(SHARED_LIBRARY_SYMLINK2_PATH ${CMAKE_CURRENT_BINARY_DIR}/${SHARED_LIBRARY_SYMLINK2})
-
- ADD_CUSTOM_COMMAND(TARGET libzstd_shared POST_BUILD
- COMMAND ${CMAKE_COMMAND} -E create_symlink ${SHARED_LIBRARY_LINK} ${SHARED_LIBRARY_SYMLINK1}
- DEPENDS ${SHARED_LIBRARY_LINK_PATH}
- COMMENT "Generating symbolic link ${SHARED_LIBRARY_LINK} -> ${SHARED_LIBRARY_SYMLINK1}")
-
- ADD_CUSTOM_COMMAND(TARGET libzstd_shared POST_BUILD
- COMMAND ${CMAKE_COMMAND} -E create_symlink ${SHARED_LIBRARY_LINK} ${SHARED_LIBRARY_SYMLINK2}
- DEPENDS ${SHARED_LIBRARY_LINK_PATH}
- COMMENT "Generating symbolic link ${SHARED_LIBRARY_LINK} -> ${SHARED_LIBRARY_SYMLINK2}")
-
- SET_DIRECTORY_PROPERTIES(PROPERTIES ADDITIONAL_MAKE_CLEAN_FILES "${SHARED_LIBRARY_SYMLINK1};${SHARED_LIBRARY_SYMLINK2}")
-
- INSTALL(FILES ${SHARED_LIBRARY_SYMLINK1_PATH} DESTINATION ${INSTALL_LIBRARY_DIR})
- INSTALL(FILES ${SHARED_LIBRARY_SYMLINK2_PATH} DESTINATION ${INSTALL_LIBRARY_DIR})
-
- # uninstall target
- CONFIGURE_FILE(
- "${CMAKE_SOURCE_DIR}/cmake_uninstall.cmake.in"
- "${CMAKE_BINARY_DIR}/cmake_uninstall.cmake"
- IMMEDIATE @ONLY)
-
- ADD_CUSTOM_TARGET(uninstall
- COMMAND ${CMAKE_COMMAND} -P ${CMAKE_BINARY_DIR}/cmake_uninstall.cmake)
-ENDIF (UNIX)
Property changes on: vendor/zstd/dist/build/cmake/lib/CMakeLists.txt
___________________________________________________________________
Deleted: svn:eol-style
## -1 +0,0 ##
-native
\ No newline at end of property
Deleted: svn:keywords
## -1 +0,0 ##
-FreeBSD=%H
\ No newline at end of property
Deleted: svn:mime-type
## -1 +0,0 ##
-text/plain
\ No newline at end of property
Index: vendor/zstd/dist/build/cmake/.gitignore
===================================================================
--- vendor/zstd/dist/build/cmake/.gitignore (revision 316986)
+++ vendor/zstd/dist/build/cmake/.gitignore (nonexistent)
@@ -1,6 +0,0 @@
-# cmake producted
-CMakeCache.txt
-CMakeFiles
-Makefile
-cmake_install.cmake
-cmake_uninstall.cmake
Index: vendor/zstd/dist/build/cmake/programs/CMakeLists.txt
===================================================================
--- vendor/zstd/dist/build/cmake/programs/CMakeLists.txt (revision 316986)
+++ vendor/zstd/dist/build/cmake/programs/CMakeLists.txt (nonexistent)
@@ -1,50 +0,0 @@
-# ################################################################
-# * Copyright (c) 2015-present, Yann Collet, Facebook, Inc.
-# * All rights reserved.
-# *
-# * This source code is licensed under the BSD-style license found in the
-# * LICENSE file in the root directory of this source tree. An additional grant
-# * of patent rights can be found in the PATENTS file in the same directory.
-#
-# You can contact the author at :
-# - zstd homepage : http://www.zstd.net/
-# ################################################################
-
-PROJECT(programs)
-
-SET(CMAKE_INCLUDE_CURRENT_DIR TRUE)
-
-# Define project root directory
-SET(ROOT_DIR ../../..)
-
-# Define programs directory, where sources and header files are located
-SET(LIBRARY_DIR ${ROOT_DIR}/lib)
-SET(PROGRAMS_DIR ${ROOT_DIR}/programs)
-INCLUDE_DIRECTORIES(${PROGRAMS_DIR} ${LIBRARY_DIR} ${LIBRARY_DIR}/common ${LIBRARY_DIR}/compress ${LIBRARY_DIR}/dictBuilder)
-
-IF (ZSTD_LEGACY_SUPPORT)
- SET(PROGRAMS_LEGACY_DIR ${PROGRAMS_DIR}/legacy)
- INCLUDE_DIRECTORIES(${PROGRAMS_LEGACY_DIR} ${LIBRARY_DIR}/legacy)
-ENDIF (ZSTD_LEGACY_SUPPORT)
-
-IF (MSVC)
- SET(MSVC_RESOURCE_DIR ${ROOT_DIR}/build/VS2010/zstd)
- SET(PlatformDependResources ${MSVC_RESOURCE_DIR}/zstd.rc)
-ENDIF (MSVC)
-
-ADD_EXECUTABLE(zstd ${PROGRAMS_DIR}/zstdcli.c ${PROGRAMS_DIR}/fileio.c ${PROGRAMS_DIR}/bench.c ${PROGRAMS_DIR}/datagen.c ${PROGRAMS_DIR}/dibio.c ${PlatformDependResources})
-TARGET_LINK_LIBRARIES(zstd libzstd_static)
-IF (UNIX)
- ADD_EXECUTABLE(zstd-frugal ${PROGRAMS_DIR}/zstdcli.c ${PROGRAMS_DIR}/fileio.c)
- TARGET_LINK_LIBRARIES(zstd-frugal libzstd_static)
- SET_TARGET_PROPERTIES(zstd-frugal PROPERTIES COMPILE_DEFINITIONS "ZSTD_NOBENCH;ZSTD_NODICT")
-ENDIF (UNIX)
-
-IF (ZSTD_MULTITHREAD_SUPPORT)
- ADD_EXECUTABLE(zstdmt ${PROGRAMS_DIR}/zstdcli.c ${PROGRAMS_DIR}/fileio.c ${PROGRAMS_DIR}/bench.c ${PROGRAMS_DIR}/datagen.c ${PROGRAMS_DIR}/dibio.c ${PlatformDependResources})
- SET_TARGET_PROPERTIES(zstdmt PROPERTIES COMPILE_DEFINITIONS "ZSTD_MULTITHREAD")
- TARGET_LINK_LIBRARIES(zstdmt libzstd_static)
- IF (UNIX)
- TARGET_LINK_LIBRARIES(zstdmt pthread)
- ENDIF (UNIX)
-ENDIF (ZSTD_MULTITHREAD_SUPPORT)
Property changes on: vendor/zstd/dist/build/cmake/programs/CMakeLists.txt
___________________________________________________________________
Deleted: svn:eol-style
## -1 +0,0 ##
-native
\ No newline at end of property
Deleted: svn:keywords
## -1 +0,0 ##
-FreeBSD=%H
\ No newline at end of property
Deleted: svn:mime-type
## -1 +0,0 ##
-text/plain
\ No newline at end of property
Index: vendor/zstd/dist/build/cmake/programs/.gitignore
===================================================================
--- vendor/zstd/dist/build/cmake/programs/.gitignore (revision 316986)
+++ vendor/zstd/dist/build/cmake/programs/.gitignore (nonexistent)
@@ -1,3 +0,0 @@
-# produced by make
-zstd
-zstd-frugal
Index: vendor/zstd/dist/build/.gitignore
===================================================================
--- vendor/zstd/dist/build/.gitignore (revision 316986)
+++ vendor/zstd/dist/build/.gitignore (nonexistent)
@@ -1,20 +0,0 @@
-# Visual C++
-.vs/
-*Copy
-*.db
-*.opensdf
-*.sdf
-*.suo
-*.user
-*.opendb
-
-VS2005/
-VS2008/
-VS2010/bin/
-VS2010/zwrapbench/
-VS2012/bin/
-VS2013/bin/
-VS2015/bin/
-
-# CMake
-cmake/
Index: vendor/zstd/dist/build/README.md
===================================================================
--- vendor/zstd/dist/build/README.md (revision 316986)
+++ vendor/zstd/dist/build/README.md (nonexistent)
@@ -1,56 +0,0 @@
-Projects for various integrated development environments (IDE)
-==============================================================
-
-#### Included projects
-
-The following projects are included with the zstd distribution:
-- `cmake` - CMake project contributed by Artyom Dymchenko
-- `VS2005` - Visual Studio 2005 project
-- `VS2008` - Visual Studio 2008 project
-- `VS2010` - Visual Studio 2010 project (which also works well with Visual Studio 2012, 2013, 2015)
-- `VS_scripts` - command line scripts prepared for Visual Studio compilation without IDE
-
-
-#### How to compile zstd with Visual Studio
-
-1. Install Visual Studio e.g. VS 2015 Community Edition (it's free).
-2. Download the latest version of zstd from https://github.com/facebook/zstd/releases
-3. Decompress ZIP archive.
-4. Go to decompressed directory then to `projects` then `VS2010` and open `zstd.sln`
-5. Visual Studio will ask about converting VS2010 project to VS2015 and you should agree.
-6. Change `Debug` to `Release` and if you have 64-bit Windows change also `Win32` to `x64`.
-7. Press F7 on keyboard or select `BUILD` from the menu bar and choose `Build Solution`.
-8. If compilation will be fine a compiled executable will be in `projects\VS2010\bin\x64\Release\zstd.exe`
-
-
-#### Projects available within zstd.sln
-
-The Visual Studio solution file `visual\VS2010\zstd.sln` contains many projects that will be compiled to the
-`visual\VS2010\bin\$(Platform)_$(Configuration)` directory. For example `zstd` set to `x64` and
-`Release` will be compiled to `visual\VS2010\bin\x64_Release\zstd.exe`. The solution file contains the
-following projects:
-
-- `zstd` : Command Line Utility, supporting gzip-like arguments
-- `datagen` : Synthetic and parametrable data generator, for tests
-- `fullbench` : Precisely measure speed for each zstd inner functions
-- `fuzzer` : Test tool, to check zstd integrity on target platform
-- `libzstd` : A static ZSTD library compiled to `libzstd_static.lib`
-- `libzstd-dll` : A dynamic ZSTD library (DLL) compiled to `libzstd.dll` with the import library `libzstd.lib`
-- `fullbench-dll` : The fullbench program compiled with the import library; the executable requires ZSTD DLL
-
-
-#### Using ZSTD DLL with Microsoft Visual C++ project
-
-The header file `lib\zstd.h` and the import library
-`visual\VS2010\bin\$(Platform)_$(Configuration)\libzstd.lib` are required to compile
-a project using Visual C++.
-
-1. The path to header files should be added to `Additional Include Directories` that can
- be found in Project Properties of Visual Studio IDE in the `C/C++` Property Pages on the `General` page.
-2. The import library has to be added to `Additional Dependencies` that can
- be found in Project Properties in the `Linker` Property Pages on the `Input` page.
- If one will provide only the name `libzstd.lib` without a full path to the library
- then the directory has to be added to `Linker\General\Additional Library Directories`.
-
-The compiled executable will require ZSTD DLL which is available at
-`visual\VS2010\bin\$(Platform)_$(Configuration)\libzstd.dll`.
Index: vendor/zstd/dist/lib/dll/libzstd.def
===================================================================
--- vendor/zstd/dist/lib/dll/libzstd.def (revision 316986)
+++ vendor/zstd/dist/lib/dll/libzstd.def (nonexistent)
@@ -1,88 +0,0 @@
-LIBRARY libzstd.dll
-EXPORTS
- ZDICT_getDictID
- ZDICT_getErrorName
- ZDICT_isError
- ZDICT_trainFromBuffer
- ZSTD_CStreamInSize
- ZSTD_CStreamOutSize
- ZSTD_DStreamInSize
- ZSTD_DStreamOutSize
- ZSTD_adjustCParams
- ZSTD_checkCParams
- ZSTD_compress
- ZSTD_compressBegin
- ZSTD_compressBegin_advanced
- ZSTD_compressBegin_usingDict
- ZSTD_compressBlock
- ZSTD_compressBound
- ZSTD_compressCCtx
- ZSTD_compressContinue
- ZSTD_compressEnd
- ZSTD_compressStream
- ZSTD_compress_advanced
- ZSTD_compress_usingCDict
- ZSTD_compress_usingDict
- ZSTD_copyCCtx
- ZSTD_copyDCtx
- ZSTD_createCCtx
- ZSTD_createCCtx_advanced
- ZSTD_createCDict
- ZSTD_createCDict_advanced
- ZSTD_createCStream
- ZSTD_createCStream_advanced
- ZSTD_createDCtx
- ZSTD_createDCtx_advanced
- ZSTD_createDDict
- ZSTD_createDStream
- ZSTD_createDStream_advanced
- ZSTD_decompress
- ZSTD_decompressBegin
- ZSTD_decompressBegin_usingDict
- ZSTD_decompressBlock
- ZSTD_decompressContinue
- ZSTD_decompressDCtx
- ZSTD_decompressStream
- ZSTD_decompress_usingDDict
- ZSTD_decompress_usingDict
- ZSTD_endStream
- ZSTD_estimateCCtxSize
- ZSTD_estimateDCtxSize
- ZSTD_flushStream
- ZSTD_freeCCtx
- ZSTD_freeCDict
- ZSTD_freeCStream
- ZSTD_freeDCtx
- ZSTD_freeDDict
- ZSTD_freeDStream
- ZSTD_getBlockSizeMax
- ZSTD_getCParams
- ZSTD_getDecompressedSize
- ZSTD_findDecompressedSize
- ZSTD_getFrameContentSize
- ZSTD_getErrorName
- ZSTD_getFrameParams
- ZSTD_getParams
- ZSTD_initCStream
- ZSTD_initCStream_advanced
- ZSTD_initCStream_usingCDict
- ZSTD_initCStream_usingDict
- ZSTD_initDStream
- ZSTD_initDStream_usingDDict
- ZSTD_initDStream_usingDict
- ZSTD_insertBlock
- ZSTD_isError
- ZSTD_isFrame
- ZSTD_maxCLevel
- ZSTD_nextInputType
- ZSTD_nextSrcSizeToDecompress
- ZSTD_resetCStream
- ZSTD_resetDStream
- ZSTD_setDStreamParameter
- ZSTD_sizeof_CCtx
- ZSTD_sizeof_CDict
- ZSTD_sizeof_CStream
- ZSTD_sizeof_DCtx
- ZSTD_sizeof_DDict
- ZSTD_sizeof_DStream
- ZSTD_versionNumber
Index: vendor/zstd/dist/lib/dll/example/fullbench-dll.vcxproj
===================================================================
--- vendor/zstd/dist/lib/dll/example/fullbench-dll.vcxproj (revision 316986)
+++ vendor/zstd/dist/lib/dll/example/fullbench-dll.vcxproj (nonexistent)
@@ -1,181 +0,0 @@
-
-
-
-
- Debug
- Win32
-
-
- Debug
- x64
-
-
- Release
- Win32
-
-
- Release
- x64
-
-
-
- {00000000-1CC8-4FD7-9281-6B8DBB9D3DF8}
- Win32Proj
- fullbench-dll
- $(SolutionDir)bin\$(Platform)_$(Configuration)\
- $(SolutionDir)bin\obj\$(RootNamespace)_$(Platform)_$(Configuration)\
-
-
-
- Application
- true
- MultiByte
-
-
- Application
- true
- MultiByte
-
-
- Application
- false
- true
- MultiByte
-
-
- Application
- false
- true
- MultiByte
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- true
- $(IncludePath);$(SolutionDir)..\..\lib;$(SolutionDir)..\..\programs;$(SolutionDir)..\..\lib\legacy;$(SolutionDir)..\..\lib\common;$(UniversalCRT_IncludePath);
- false
-
-
- true
- $(IncludePath);$(SolutionDir)..\..\lib;$(SolutionDir)..\..\programs;$(SolutionDir)..\..\lib\legacy;$(SolutionDir)..\..\lib\common;$(UniversalCRT_IncludePath);
- false
-
-
- false
- $(IncludePath);$(SolutionDir)..\..\lib;$(SolutionDir)..\..\programs;$(SolutionDir)..\..\lib\legacy;$(SolutionDir)..\..\lib\common;$(UniversalCRT_IncludePath);
- false
-
-
- false
- $(IncludePath);$(SolutionDir)..\..\lib;$(SolutionDir)..\..\programs;$(SolutionDir)..\..\lib\legacy;$(SolutionDir)..\..\lib\common;$(UniversalCRT_IncludePath);
- false
-
-
-
-
-
- Level4
- Disabled
- WIN32;_DEBUG;_CONSOLE;ZSTD_DLL_IMPORT=1;%(PreprocessorDefinitions)
- true
- false
- ..\include
-
-
- Console
- true
- $(SolutionDir)..\dll;%(AdditionalLibraryDirectories)
- libzstd.lib;%(AdditionalDependencies)
- false
-
-
-
-
-
-
- Level4
- Disabled
- WIN32;_DEBUG;_CONSOLE;ZSTD_DLL_IMPORT=1;%(PreprocessorDefinitions)
- true
- false
- ..\include
-
-
- Console
- true
- $(SolutionDir)..\dll;%(AdditionalLibraryDirectories)
- libzstd.lib;%(AdditionalDependencies)
-
-
-
-
- Level4
-
-
- MaxSpeed
- true
- true
- WIN32;_DEBUG;_CONSOLE;ZSTD_DLL_IMPORT=1;%(PreprocessorDefinitions)
- false
- ..\include
- false
- MultiThreaded
-
-
- Console
- true
- true
- true
- $(SolutionDir)..\dll;%(AdditionalLibraryDirectories)
- libzstd.lib;%(AdditionalDependencies)
- false
-
-
-
-
- Level4
-
-
- MaxSpeed
- true
- true
- WIN32;_DEBUG;_CONSOLE;ZSTD_DLL_IMPORT=1;%(PreprocessorDefinitions)
- false
- false
- ..\include
- MultiThreaded
-
-
- Console
- true
- true
- true
- $(SolutionDir)..\dll;%(AdditionalLibraryDirectories)
- libzstd.lib;%(AdditionalDependencies)
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
Index: vendor/zstd/dist/lib/dll/example/fullbench-dll.sln
===================================================================
--- vendor/zstd/dist/lib/dll/example/fullbench-dll.sln (revision 316986)
+++ vendor/zstd/dist/lib/dll/example/fullbench-dll.sln (nonexistent)
@@ -1,25 +0,0 @@
-Microsoft Visual Studio Solution File, Format Version 12.00
-# Visual Studio Express 2012 for Windows Desktop
-Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "fullbench-dll", "fullbench-dll.vcxproj", "{13992FD2-077E-4954-B065-A428198201A9}"
-EndProject
-Global
- GlobalSection(SolutionConfigurationPlatforms) = preSolution
- Debug|Win32 = Debug|Win32
- Debug|x64 = Debug|x64
- Release|Win32 = Release|Win32
- Release|x64 = Release|x64
- EndGlobalSection
- GlobalSection(ProjectConfigurationPlatforms) = postSolution
- {13992FD2-077E-4954-B065-A428198201A9}.Debug|Win32.ActiveCfg = Debug|Win32
- {13992FD2-077E-4954-B065-A428198201A9}.Debug|Win32.Build.0 = Debug|Win32
- {13992FD2-077E-4954-B065-A428198201A9}.Debug|x64.ActiveCfg = Debug|x64
- {13992FD2-077E-4954-B065-A428198201A9}.Debug|x64.Build.0 = Debug|x64
- {13992FD2-077E-4954-B065-A428198201A9}.Release|Win32.ActiveCfg = Release|Win32
- {13992FD2-077E-4954-B065-A428198201A9}.Release|Win32.Build.0 = Release|Win32
- {13992FD2-077E-4954-B065-A428198201A9}.Release|x64.ActiveCfg = Release|x64
- {13992FD2-077E-4954-B065-A428198201A9}.Release|x64.Build.0 = Release|x64
- EndGlobalSection
- GlobalSection(SolutionProperties) = preSolution
- HideSolutionNode = FALSE
- EndGlobalSection
-EndGlobal
Index: vendor/zstd/dist/lib/dll/example/README.md
===================================================================
--- vendor/zstd/dist/lib/dll/example/README.md (revision 316986)
+++ vendor/zstd/dist/lib/dll/example/README.md (nonexistent)
@@ -1,69 +0,0 @@
-ZSTD Windows binary package
-====================================
-
-#### The package contents
-
-- `zstd.exe` : Command Line Utility, supporting gzip-like arguments
-- `dll\libzstd.dll` : The DLL of ZSTD library
-- `dll\libzstd.lib` : The import library of ZSTD library for Visual C++
-- `example\` : The example of usage of ZSTD library
-- `include\` : Header files required with ZSTD library
-- `static\libzstd_static.lib` : The static ZSTD library
-
-
-#### Usage of Command Line Interface
-
-Command Line Interface (CLI) supports gzip-like arguments.
-By default CLI takes an input file and compresses it to an output file:
-```
- Usage: zstd [arg] [input] [output]
-```
-The full list of commands for CLI can be obtained with `-h` or `-H`. The ratio can
-be improved with commands from `-3` to `-16` but higher levels also have slower
-compression. CLI includes in-memory compression benchmark module with compression
-levels starting from `-b` and ending with `-e` with iteration time of `-i` seconds.
-CLI supports aggregation of parameters i.e. `-b1`, `-e18`, and `-i1` can be joined
-into `-b1e18i1`.
-
-
-#### The example of usage of static and dynamic ZSTD libraries with gcc/MinGW
-
-Use `cd example` and `make` to build `fullbench-dll` and `fullbench-lib`.
-`fullbench-dll` uses a dynamic ZSTD library from the `dll` directory.
-`fullbench-lib` uses a static ZSTD library from the `lib` directory.
-
-
-#### Using ZSTD DLL with gcc/MinGW
-
-The header files from `include\` and the dynamic library `dll\libzstd.dll`
-are required to compile a project using gcc/MinGW.
-The dynamic library has to be added to linking options.
-It means that if a project that uses ZSTD consists of a single `test-dll.c`
-file it should be linked with `dll\libzstd.dll`. For example:
-```
- gcc $(CFLAGS) -Iinclude\ test-dll.c -o test-dll dll\libzstd.dll
-```
-The compiled executable will require ZSTD DLL which is available at `dll\libzstd.dll`.
-
-
-#### The example of usage of static and dynamic ZSTD libraries with Visual C++
-
-Open `example\fullbench-dll.sln` to compile `fullbench-dll` that uses a
-dynamic ZSTD library from the `dll` directory. The solution works with Visual C++
-2010 or newer. When one will open the solution with Visual C++ newer than 2010
-then the solution will upgraded to the current version.
-
-
-#### Using ZSTD DLL with Visual C++
-
-The header files from `include\` and the import library `dll\libzstd.lib`
-are required to compile a project using Visual C++.
-
-1. The path to header files should be added to `Additional Include Directories` that can
- be found in project properties `C/C++` then `General`.
-2. The import library has to be added to `Additional Dependencies` that can
- be found in project properties `Linker` then `Input`.
- If one will provide only the name `libzstd.lib` without a full path to the library
- the directory has to be added to `Linker\General\Additional Library Directories`.
-
-The compiled executable will require ZSTD DLL which is available at `dll\libzstd.dll`.
Index: vendor/zstd/dist/lib/dll/example/Makefile
===================================================================
--- vendor/zstd/dist/lib/dll/example/Makefile (revision 316986)
+++ vendor/zstd/dist/lib/dll/example/Makefile (nonexistent)
@@ -1,47 +0,0 @@
-# ##########################################################################
-# Copyright (c) 2016-present, Yann Collet, Facebook, Inc.
-# All rights reserved.
-#
-# This source code is licensed under the BSD-style license found in the
-# LICENSE file in the root directory of this source tree. An additional grant
-# of patent rights can be found in the PATENTS file in the same directory.
-# ##########################################################################
-
-VOID := /dev/null
-ZSTDDIR := ../include
-LIBDIR := ../static
-DLLDIR := ../dll
-
-CFLAGS ?= -O3 # can select custom flags. For example : CFLAGS="-O2 -g" make
-CFLAGS += -Wall -Wextra -Wundef -Wcast-qual -Wcast-align -Wshadow -Wswitch-enum \
- -Wdeclaration-after-statement -Wstrict-prototypes \
- -Wpointer-arith -Wstrict-aliasing=1
-CFLAGS += $(MOREFLAGS)
-CPPFLAGS:= -I$(ZSTDDIR) -DXXH_NAMESPACE=ZSTD_
-FLAGS := $(CFLAGS) $(CPPFLAGS) $(LDFLAGS)
-
-
-# Define *.exe as extension for Windows systems
-ifneq (,$(filter Windows%,$(OS)))
-EXT =.exe
-else
-EXT =
-endif
-
-.PHONY: default fullbench-dll fullbench-lib
-
-
-default: all
-
-all: fullbench-dll fullbench-lib
-
-
-fullbench-lib: fullbench.c datagen.c
- $(CC) $(FLAGS) $^ -o $@$(EXT) $(LIBDIR)/libzstd_static.lib
-
-fullbench-dll: fullbench.c datagen.c
- $(CC) $(FLAGS) $^ -o $@$(EXT) -DZSTD_DLL_IMPORT=1 $(DLLDIR)/libzstd.dll
-
-clean:
- @$(RM) fullbench-dll$(EXT) fullbench-lib$(EXT) \
- @echo Cleaning completed
Property changes on: vendor/zstd/dist/lib/dll/example/Makefile
___________________________________________________________________
Deleted: svn:eol-style
## -1 +0,0 ##
-native
\ No newline at end of property
Deleted: svn:keywords
## -1 +0,0 ##
-FreeBSD=%H
\ No newline at end of property
Deleted: svn:mime-type
## -1 +0,0 ##
-text/plain
\ No newline at end of property
Index: vendor/zstd/dist/lib/dll/example/build_package.bat
===================================================================
--- vendor/zstd/dist/lib/dll/example/build_package.bat (revision 316986)
+++ vendor/zstd/dist/lib/dll/example/build_package.bat (nonexistent)
@@ -1,18 +0,0 @@
-@ECHO OFF
-MKDIR bin\dll bin\static bin\example bin\include
-COPY tests\fullbench.c bin\example\
-COPY programs\datagen.c bin\example\
-COPY programs\datagen.h bin\example\
-COPY programs\util.h bin\example\
-COPY programs\platform.h bin\example\
-COPY lib\common\mem.h bin\example\
-COPY lib\common\zstd_errors.h bin\example\
-COPY lib\common\zstd_internal.h bin\example\
-COPY lib\common\error_private.h bin\example\
-COPY lib\zstd.h bin\include\
-COPY lib\libzstd.a bin\static\libzstd_static.lib
-COPY lib\dll\libzstd.* bin\dll\
-COPY lib\dll\example\Makefile bin\example\
-COPY lib\dll\example\fullbench-dll.* bin\example\
-COPY lib\dll\example\README.md bin\
-COPY programs\zstd.exe bin\zstd.exe
Index: vendor/zstd/dist/programs/windres/zstd32.res
===================================================================
Cannot display: file marked as a binary type.
svn:mime-type = image/x-tga
Property changes on: vendor/zstd/dist/programs/windres/zstd32.res
___________________________________________________________________
Deleted: svn:mime-type
## -1 +0,0 ##
-image/x-tga
\ No newline at end of property
Index: vendor/zstd/dist/programs/windres/zstd.rc
===================================================================
--- vendor/zstd/dist/programs/windres/zstd.rc (revision 316986)
+++ vendor/zstd/dist/programs/windres/zstd.rc (nonexistent)
@@ -1,51 +0,0 @@
-// Microsoft Visual C++ generated resource script.
-//
-
-#include "zstd.h" /* ZSTD_VERSION_STRING */
-#define APSTUDIO_READONLY_SYMBOLS
-#include "verrsrc.h"
-#undef APSTUDIO_READONLY_SYMBOLS
-
-
-#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_ENU)
-LANGUAGE 9, 1
-
-/////////////////////////////////////////////////////////////////////////////
-//
-// Version
-//
-
-VS_VERSION_INFO VERSIONINFO
- FILEVERSION ZSTD_VERSION_MAJOR,ZSTD_VERSION_MINOR,ZSTD_VERSION_RELEASE,0
- PRODUCTVERSION ZSTD_VERSION_MAJOR,ZSTD_VERSION_MINOR,ZSTD_VERSION_RELEASE,0
- FILEFLAGSMASK VS_FFI_FILEFLAGSMASK
-#ifdef _DEBUG
- FILEFLAGS VS_FF_DEBUG
-#else
- FILEFLAGS 0x0L
-#endif
- FILEOS VOS_NT_WINDOWS32
- FILETYPE VFT_DLL
- FILESUBTYPE VFT2_UNKNOWN
-BEGIN
- BLOCK "StringFileInfo"
- BEGIN
- BLOCK "040904B0"
- BEGIN
- VALUE "CompanyName", "Yann Collet, Facebook, Inc."
- VALUE "FileDescription", "Zstandard - Fast and efficient compression algorithm"
- VALUE "FileVersion", ZSTD_VERSION_STRING
- VALUE "InternalName", "zstd.exe"
- VALUE "LegalCopyright", "Copyright (c) 2013-present, Yann Collet, Facebook, Inc."
- VALUE "OriginalFilename", "zstd.exe"
- VALUE "ProductName", "Zstandard"
- VALUE "ProductVersion", ZSTD_VERSION_STRING
- END
- END
- BLOCK "VarFileInfo"
- BEGIN
- VALUE "Translation", 0x0409, 1200
- END
-END
-
-#endif
Index: vendor/zstd/dist/programs/windres/generate_res.bat
===================================================================
--- vendor/zstd/dist/programs/windres/generate_res.bat (revision 316986)
+++ vendor/zstd/dist/programs/windres/generate_res.bat (nonexistent)
@@ -1,11 +0,0 @@
-@echo off
-REM http://stackoverflow.com/questions/708238/how-do-i-add-an-icon-to-a-mingw-gcc-compiled-executable
-
-where /q windres.exe
-IF ERRORLEVEL 1 (
- ECHO The windres.exe is missing. Ensure it is installed and placed in your PATH.
- EXIT /B
-) ELSE (
- windres.exe -I ../lib -I windres -i windres/zstd.rc -O coff -F pe-x86-64 -o windres/zstd64.res
- windres.exe -I ../lib -I windres -i windres/zstd.rc -O coff -F pe-i386 -o windres/zstd32.res
-)
Index: vendor/zstd/dist/programs/windres/zstd64.res
===================================================================
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
Property changes on: vendor/zstd/dist/programs/windres/zstd64.res
___________________________________________________________________
Deleted: svn:mime-type
## -1 +0,0 ##
-application/octet-stream
\ No newline at end of property
Index: vendor/zstd/dist/programs/windres/verrsrc.h
===================================================================
--- vendor/zstd/dist/programs/windres/verrsrc.h (revision 316986)
+++ vendor/zstd/dist/programs/windres/verrsrc.h (nonexistent)
@@ -1,8 +0,0 @@
-/* minimal set of defines required to generate zstd.res from zstd.rc */
-
-#define VS_VERSION_INFO 1
-
-#define VS_FFI_FILEFLAGSMASK 0x0000003FL
-#define VOS_NT_WINDOWS32 0x00040004L
-#define VFT_DLL 0x00000002L
-#define VFT2_UNKNOWN 0x00000000L
Property changes on: vendor/zstd/dist/programs/windres/verrsrc.h
___________________________________________________________________
Deleted: svn:eol-style
## -1 +0,0 ##
-native
\ No newline at end of property
Deleted: svn:keywords
## -1 +0,0 ##
-FreeBSD=%H
\ No newline at end of property
Deleted: svn:mime-type
## -1 +0,0 ##
-text/plain
\ No newline at end of property
Index: vendor/zstd/dist/programs/fileio.c
===================================================================
--- vendor/zstd/dist/programs/fileio.c (revision 316986)
+++ vendor/zstd/dist/programs/fileio.c (revision 316987)
@@ -1,1200 +1,1200 @@
/**
* Copyright (c) 2016-present, Yann Collet, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*/
/* *************************************
* Compiler Options
***************************************/
#ifdef _MSC_VER /* Visual */
# pragma warning(disable : 4127) /* disable: C4127: conditional expression is constant */
# pragma warning(disable : 4204) /* non-constant aggregate initializer */
#endif
#if defined(__MINGW32__) && !defined(_POSIX_SOURCE)
# define _POSIX_SOURCE 1 /* disable %llu warnings with MinGW on Windows */
#endif
/*-*************************************
* Includes
***************************************/
#include "platform.h" /* Large Files support, SET_BINARY_MODE */
#include "util.h" /* UTIL_getFileSize */
#include /* fprintf, fopen, fread, _fileno, stdin, stdout */
#include /* malloc, free */
#include /* strcmp, strlen */
#include /* clock */
#include /* errno */
#include "mem.h"
#include "fileio.h"
#define ZSTD_STATIC_LINKING_ONLY /* ZSTD_magicNumber, ZSTD_frameHeaderSize_max */
#include "zstd.h"
#ifdef ZSTD_MULTITHREAD
# include "zstdmt_compress.h"
#endif
#if defined(ZSTD_GZCOMPRESS) || defined(ZSTD_GZDECOMPRESS)
# include
# if !defined(z_const)
# define z_const
# endif
#endif
#if defined(ZSTD_LZMACOMPRESS) || defined(ZSTD_LZMADECOMPRESS)
# include
#endif
/*-*************************************
* Constants
***************************************/
#define KB *(1<<10)
#define MB *(1<<20)
#define GB *(1U<<30)
#define _1BIT 0x01
#define _2BITS 0x03
#define _3BITS 0x07
#define _4BITS 0x0F
#define _6BITS 0x3F
#define _8BITS 0xFF
#define BLOCKSIZE (128 KB)
#define ROLLBUFFERSIZE (BLOCKSIZE*8*64)
#define FIO_FRAMEHEADERSIZE 5 /* as a define, because needed to allocated table on stack */
#define FSE_CHECKSUM_SEED 0
#define CACHELINE 64
#define MAX_DICT_SIZE (8 MB) /* protection against large input (attack scenario) */
#define FNSPACE 30
/*-*************************************
* Macros
***************************************/
#define DISPLAY(...) fprintf(stderr, __VA_ARGS__)
#define DISPLAYLEVEL(l, ...) { if (g_displayLevel>=l) { DISPLAY(__VA_ARGS__); } }
static U32 g_displayLevel = 2; /* 0 : no display; 1: errors; 2 : + result + interaction + warnings; 3 : + progression; 4 : + information */
void FIO_setNotificationLevel(unsigned level) { g_displayLevel=level; }
#define DISPLAYUPDATE(l, ...) { if (g_displayLevel>=l) { \
if ((clock() - g_time > refreshRate) || (g_displayLevel>=4)) \
{ g_time = clock(); DISPLAY(__VA_ARGS__); \
if (g_displayLevel>=4) fflush(stdout); } } }
static const clock_t refreshRate = CLOCKS_PER_SEC * 15 / 100;
static clock_t g_time = 0;
#define MIN(a,b) ((a) < (b) ? (a) : (b))
/* ************************************************************
* Avoid fseek()'s 2GiB barrier with MSVC, MacOS, *BSD, MinGW
***************************************************************/
#if defined(_MSC_VER) && _MSC_VER >= 1400
# define LONG_SEEK _fseeki64
#elif !defined(__64BIT__) && (PLATFORM_POSIX_VERSION >= 200112L) /* No point defining Large file for 64 bit */
# define LONG_SEEK fseeko
#elif defined(__MINGW32__) && !defined(__STRICT_ANSI__) && !defined(__NO_MINGW_LFS) && defined(__MSVCRT__)
# define LONG_SEEK fseeko64
#elif defined(_WIN32) && !defined(__DJGPP__)
# include
static int LONG_SEEK(FILE* file, __int64 offset, int origin) {
LARGE_INTEGER off;
DWORD method;
off.QuadPart = offset;
if (origin == SEEK_END)
method = FILE_END;
else if (origin == SEEK_CUR)
method = FILE_CURRENT;
else
method = FILE_BEGIN;
if (SetFilePointerEx((HANDLE) _get_osfhandle(_fileno(file)), off, NULL, method))
return 0;
else
return -1;
}
#else
# define LONG_SEEK fseek
#endif
/*-*************************************
* Local Parameters - Not thread safe
***************************************/
static FIO_compressionType_t g_compressionType = FIO_zstdCompression;
void FIO_setCompressionType(FIO_compressionType_t compressionType) { g_compressionType = compressionType; }
static U32 g_overwrite = 0;
void FIO_overwriteMode(void) { g_overwrite=1; }
static U32 g_sparseFileSupport = 1; /* 0 : no sparse allowed; 1: auto (file yes, stdout no); 2: force sparse */
void FIO_setSparseWrite(unsigned sparse) { g_sparseFileSupport=sparse; }
static U32 g_dictIDFlag = 1;
void FIO_setDictIDFlag(unsigned dictIDFlag) { g_dictIDFlag = dictIDFlag; }
static U32 g_checksumFlag = 1;
void FIO_setChecksumFlag(unsigned checksumFlag) { g_checksumFlag = checksumFlag; }
-static U32 g_removeSrcFile = 0;
+static U32 g_removeSrcFile = 1;
void FIO_setRemoveSrcFile(unsigned flag) { g_removeSrcFile = (flag>0); }
static U32 g_memLimit = 0;
void FIO_setMemLimit(unsigned memLimit) { g_memLimit = memLimit; }
static U32 g_nbThreads = 1;
void FIO_setNbThreads(unsigned nbThreads) {
#ifndef ZSTD_MULTITHREAD
if (nbThreads > 1) DISPLAYLEVEL(2, "Note : multi-threading is disabled \n");
#endif
g_nbThreads = nbThreads;
}
static U32 g_blockSize = 0;
void FIO_setBlockSize(unsigned blockSize) {
if (blockSize && g_nbThreads==1)
DISPLAYLEVEL(2, "Setting block size is useless in single-thread mode \n");
#ifdef ZSTD_MULTITHREAD
if (blockSize-1 < ZSTDMT_SECTION_SIZE_MIN-1) /* intentional underflow */
DISPLAYLEVEL(2, "Note : minimum block size is %u KB \n", (ZSTDMT_SECTION_SIZE_MIN>>10));
#endif
g_blockSize = blockSize;
}
#define FIO_OVERLAP_LOG_NOTSET 9999
static U32 g_overlapLog = FIO_OVERLAP_LOG_NOTSET;
void FIO_setOverlapLog(unsigned overlapLog){
if (overlapLog && g_nbThreads==1)
DISPLAYLEVEL(2, "Setting overlapLog is useless in single-thread mode \n");
g_overlapLog = overlapLog;
}
/*-*************************************
* Exceptions
***************************************/
#ifndef DEBUG
# define DEBUG 0
#endif
#define DEBUGOUTPUT(...) if (DEBUG) DISPLAY(__VA_ARGS__);
#define EXM_THROW(error, ...) \
{ \
DEBUGOUTPUT("Error defined at %s, line %i : \n", __FILE__, __LINE__); \
DISPLAYLEVEL(1, "Error %i : ", error); \
DISPLAYLEVEL(1, __VA_ARGS__); \
DISPLAYLEVEL(1, " \n"); \
exit(error); \
}
/*-*************************************
* Functions
***************************************/
/** FIO_openSrcFile() :
* condition : `dstFileName` must be non-NULL.
* @result : FILE* to `dstFileName`, or NULL if it fails */
static FILE* FIO_openSrcFile(const char* srcFileName)
{
FILE* f;
if (!strcmp (srcFileName, stdinmark)) {
DISPLAYLEVEL(4,"Using stdin for input\n");
f = stdin;
SET_BINARY_MODE(stdin);
} else {
if (!UTIL_isRegFile(srcFileName)) {
DISPLAYLEVEL(1, "zstd: %s is not a regular file -- ignored \n", srcFileName);
return NULL;
}
f = fopen(srcFileName, "rb");
if ( f==NULL ) DISPLAYLEVEL(1, "zstd: %s: %s \n", srcFileName, strerror(errno));
}
return f;
}
/** FIO_openDstFile() :
* condition : `dstFileName` must be non-NULL.
* @result : FILE* to `dstFileName`, or NULL if it fails */
static FILE* FIO_openDstFile(const char* dstFileName)
{
FILE* f;
if (!strcmp (dstFileName, stdoutmark)) {
DISPLAYLEVEL(4,"Using stdout for output\n");
f = stdout;
SET_BINARY_MODE(stdout);
if (g_sparseFileSupport==1) {
g_sparseFileSupport = 0;
DISPLAYLEVEL(4, "Sparse File Support is automatically disabled on stdout ; try --sparse \n");
}
} else {
if (!g_overwrite && strcmp (dstFileName, nulmark)) { /* Check if destination file already exists */
f = fopen( dstFileName, "rb" );
if (f != 0) { /* dest file exists, prompt for overwrite authorization */
fclose(f);
if (g_displayLevel <= 1) {
/* No interaction possible */
DISPLAY("zstd: %s already exists; not overwritten \n", dstFileName);
return NULL;
}
DISPLAY("zstd: %s already exists; do you wish to overwrite (y/N) ? ", dstFileName);
{ int ch = getchar();
if ((ch!='Y') && (ch!='y')) {
DISPLAY(" not overwritten \n");
return NULL;
}
while ((ch!=EOF) && (ch!='\n')) ch = getchar(); /* flush rest of input line */
} } }
f = fopen( dstFileName, "wb" );
if (f==NULL) DISPLAYLEVEL(1, "zstd: %s: %s\n", dstFileName, strerror(errno));
}
return f;
}
/*! FIO_loadFile() :
* creates a buffer, pointed by `*bufferPtr`,
* loads `filename` content into it,
* up to MAX_DICT_SIZE bytes.
* @return : loaded size
*/
static size_t FIO_loadFile(void** bufferPtr, const char* fileName)
{
FILE* fileHandle;
U64 fileSize;
*bufferPtr = NULL;
if (fileName == NULL) return 0;
DISPLAYLEVEL(4,"Loading %s as dictionary \n", fileName);
fileHandle = fopen(fileName, "rb");
if (fileHandle==0) EXM_THROW(31, "zstd: %s: %s", fileName, strerror(errno));
fileSize = UTIL_getFileSize(fileName);
if (fileSize > MAX_DICT_SIZE) {
int seekResult;
if (fileSize > 1 GB) EXM_THROW(32, "Dictionary file %s is too large", fileName); /* avoid extreme cases */
DISPLAYLEVEL(2,"Dictionary %s is too large : using last %u bytes only \n", fileName, (U32)MAX_DICT_SIZE);
seekResult = fseek(fileHandle, (long int)(fileSize-MAX_DICT_SIZE), SEEK_SET); /* use end of file */
if (seekResult != 0) EXM_THROW(33, "zstd: %s: %s", fileName, strerror(errno));
fileSize = MAX_DICT_SIZE;
}
*bufferPtr = malloc((size_t)fileSize);
if (*bufferPtr==NULL) EXM_THROW(34, "zstd: %s", strerror(errno));
{ size_t const readSize = fread(*bufferPtr, 1, (size_t)fileSize, fileHandle);
if (readSize!=fileSize) EXM_THROW(35, "Error reading dictionary file %s", fileName); }
fclose(fileHandle);
return (size_t)fileSize;
}
#ifndef ZSTD_NOCOMPRESS
/*-**********************************************************************
* Compression
************************************************************************/
typedef struct {
FILE* srcFile;
FILE* dstFile;
void* srcBuffer;
size_t srcBufferSize;
void* dstBuffer;
size_t dstBufferSize;
#ifdef ZSTD_MULTITHREAD
ZSTDMT_CCtx* cctx;
#else
ZSTD_CStream* cctx;
#endif
} cRess_t;
static cRess_t FIO_createCResources(const char* dictFileName, int cLevel,
U64 srcSize, int srcRegFile,
ZSTD_compressionParameters* comprParams) {
cRess_t ress;
memset(&ress, 0, sizeof(ress));
#ifdef ZSTD_MULTITHREAD
ress.cctx = ZSTDMT_createCCtx(g_nbThreads);
if (ress.cctx == NULL) EXM_THROW(30, "zstd: allocation error : can't create ZSTD_CStream");
if ((cLevel==ZSTD_maxCLevel()) && (g_overlapLog==FIO_OVERLAP_LOG_NOTSET))
ZSTDMT_setMTCtxParameter(ress.cctx, ZSTDMT_p_overlapSectionLog, 9); /* use complete window for overlap */
if (g_overlapLog != FIO_OVERLAP_LOG_NOTSET)
ZSTDMT_setMTCtxParameter(ress.cctx, ZSTDMT_p_overlapSectionLog, g_overlapLog);
#else
ress.cctx = ZSTD_createCStream();
if (ress.cctx == NULL) EXM_THROW(30, "zstd: allocation error : can't create ZSTD_CStream");
#endif
ress.srcBufferSize = ZSTD_CStreamInSize();
ress.srcBuffer = malloc(ress.srcBufferSize);
ress.dstBufferSize = ZSTD_CStreamOutSize();
ress.dstBuffer = malloc(ress.dstBufferSize);
if (!ress.srcBuffer || !ress.dstBuffer) EXM_THROW(31, "zstd: allocation error : not enough memory");
/* dictionary */
{ void* dictBuffer;
size_t const dictBuffSize = FIO_loadFile(&dictBuffer, dictFileName);
if (dictFileName && (dictBuffer==NULL)) EXM_THROW(32, "zstd: allocation error : can't create dictBuffer");
{ ZSTD_parameters params = ZSTD_getParams(cLevel, srcSize, dictBuffSize);
params.fParams.contentSizeFlag = srcRegFile;
params.fParams.checksumFlag = g_checksumFlag;
params.fParams.noDictIDFlag = !g_dictIDFlag;
if (comprParams->windowLog) params.cParams.windowLog = comprParams->windowLog;
if (comprParams->chainLog) params.cParams.chainLog = comprParams->chainLog;
if (comprParams->hashLog) params.cParams.hashLog = comprParams->hashLog;
if (comprParams->searchLog) params.cParams.searchLog = comprParams->searchLog;
if (comprParams->searchLength) params.cParams.searchLength = comprParams->searchLength;
if (comprParams->targetLength) params.cParams.targetLength = comprParams->targetLength;
if (comprParams->strategy) params.cParams.strategy = (ZSTD_strategy)(comprParams->strategy - 1);
#ifdef ZSTD_MULTITHREAD
{ size_t const errorCode = ZSTDMT_initCStream_advanced(ress.cctx, dictBuffer, dictBuffSize, params, srcSize);
if (ZSTD_isError(errorCode)) EXM_THROW(33, "Error initializing CStream : %s", ZSTD_getErrorName(errorCode));
ZSTDMT_setMTCtxParameter(ress.cctx, ZSTDMT_p_sectionSize, g_blockSize);
#else
{ size_t const errorCode = ZSTD_initCStream_advanced(ress.cctx, dictBuffer, dictBuffSize, params, srcSize);
if (ZSTD_isError(errorCode)) EXM_THROW(33, "Error initializing CStream : %s", ZSTD_getErrorName(errorCode));
#endif
} }
free(dictBuffer);
}
return ress;
}
static void FIO_freeCResources(cRess_t ress)
{
free(ress.srcBuffer);
free(ress.dstBuffer);
#ifdef ZSTD_MULTITHREAD
ZSTDMT_freeCCtx(ress.cctx);
#else
ZSTD_freeCStream(ress.cctx); /* never fails */
#endif
}
#ifdef ZSTD_GZCOMPRESS
static unsigned long long FIO_compressGzFrame(cRess_t* ress, const char* srcFileName, U64 const srcFileSize, int compressionLevel, U64* readsize)
{
unsigned long long inFileSize = 0, outFileSize = 0;
z_stream strm;
int ret;
if (compressionLevel > Z_BEST_COMPRESSION) compressionLevel = Z_BEST_COMPRESSION;
strm.zalloc = Z_NULL;
strm.zfree = Z_NULL;
strm.opaque = Z_NULL;
ret = deflateInit2(&strm, compressionLevel, Z_DEFLATED, 15 /* maxWindowLogSize */ + 16 /* gzip only */, 8, Z_DEFAULT_STRATEGY); /* see http://www.zlib.net/manual.html */
if (ret != Z_OK) EXM_THROW(71, "zstd: %s: deflateInit2 error %d \n", srcFileName, ret);
strm.next_in = 0;
strm.avail_in = 0;
strm.next_out = (Bytef*)ress->dstBuffer;
strm.avail_out = (uInt)ress->dstBufferSize;
while (1) {
if (strm.avail_in == 0) {
size_t const inSize = fread(ress->srcBuffer, 1, ress->srcBufferSize, ress->srcFile);
if (inSize == 0) break;
inFileSize += inSize;
strm.next_in = (z_const unsigned char*)ress->srcBuffer;
strm.avail_in = (uInt)inSize;
}
ret = deflate(&strm, Z_NO_FLUSH);
if (ret != Z_OK) EXM_THROW(72, "zstd: %s: deflate error %d \n", srcFileName, ret);
{ size_t const decompBytes = ress->dstBufferSize - strm.avail_out;
if (decompBytes) {
if (fwrite(ress->dstBuffer, 1, decompBytes, ress->dstFile) != decompBytes) EXM_THROW(73, "Write error : cannot write to output file");
outFileSize += decompBytes;
strm.next_out = (Bytef*)ress->dstBuffer;
strm.avail_out = (uInt)ress->dstBufferSize;
}
}
if (!srcFileSize) DISPLAYUPDATE(2, "\rRead : %u MB ==> %.2f%%", (U32)(inFileSize>>20), (double)outFileSize/inFileSize*100)
else DISPLAYUPDATE(2, "\rRead : %u / %u MB ==> %.2f%%", (U32)(inFileSize>>20), (U32)(srcFileSize>>20), (double)outFileSize/inFileSize*100);
}
while (1) {
ret = deflate(&strm, Z_FINISH);
{ size_t const decompBytes = ress->dstBufferSize - strm.avail_out;
if (decompBytes) {
if (fwrite(ress->dstBuffer, 1, decompBytes, ress->dstFile) != decompBytes) EXM_THROW(75, "Write error : cannot write to output file");
outFileSize += decompBytes;
strm.next_out = (Bytef*)ress->dstBuffer;
strm.avail_out = (uInt)ress->dstBufferSize;
}
}
if (ret == Z_STREAM_END) break;
if (ret != Z_BUF_ERROR) EXM_THROW(77, "zstd: %s: deflate error %d \n", srcFileName, ret);
}
ret = deflateEnd(&strm);
if (ret != Z_OK) EXM_THROW(79, "zstd: %s: deflateEnd error %d \n", srcFileName, ret);
*readsize = inFileSize;
return outFileSize;
}
#endif
#ifdef ZSTD_LZMACOMPRESS
static unsigned long long FIO_compressLzmaFrame(cRess_t* ress, const char* srcFileName, U64 const srcFileSize, int compressionLevel, U64* readsize, int plain_lzma)
{
unsigned long long inFileSize = 0, outFileSize = 0;
lzma_stream strm = LZMA_STREAM_INIT;
lzma_action action = LZMA_RUN;
lzma_ret ret;
if (compressionLevel < 0) compressionLevel = 0;
if (compressionLevel > 9) compressionLevel = 9;
if (plain_lzma) {
lzma_options_lzma opt_lzma;
if (lzma_lzma_preset(&opt_lzma, compressionLevel)) EXM_THROW(71, "zstd: %s: lzma_lzma_preset error", srcFileName);
ret = lzma_alone_encoder(&strm, &opt_lzma); /* LZMA */
if (ret != LZMA_OK) EXM_THROW(71, "zstd: %s: lzma_alone_encoder error %d", srcFileName, ret);
} else {
ret = lzma_easy_encoder(&strm, compressionLevel, LZMA_CHECK_CRC64); /* XZ */
if (ret != LZMA_OK) EXM_THROW(71, "zstd: %s: lzma_easy_encoder error %d", srcFileName, ret);
}
strm.next_in = 0;
strm.avail_in = 0;
strm.next_out = ress->dstBuffer;
strm.avail_out = ress->dstBufferSize;
while (1) {
if (strm.avail_in == 0) {
size_t const inSize = fread(ress->srcBuffer, 1, ress->srcBufferSize, ress->srcFile);
if (inSize == 0) action = LZMA_FINISH;
inFileSize += inSize;
strm.next_in = ress->srcBuffer;
strm.avail_in = inSize;
}
ret = lzma_code(&strm, action);
if (ret != LZMA_OK && ret != LZMA_STREAM_END) EXM_THROW(72, "zstd: %s: lzma_code encoding error %d", srcFileName, ret);
{ size_t const compBytes = ress->dstBufferSize - strm.avail_out;
if (compBytes) {
if (fwrite(ress->dstBuffer, 1, compBytes, ress->dstFile) != compBytes) EXM_THROW(73, "Write error : cannot write to output file");
outFileSize += compBytes;
strm.next_out = ress->dstBuffer;
strm.avail_out = ress->dstBufferSize;
}
}
if (!srcFileSize) DISPLAYUPDATE(2, "\rRead : %u MB ==> %.2f%%", (U32)(inFileSize>>20), (double)outFileSize/inFileSize*100)
else DISPLAYUPDATE(2, "\rRead : %u / %u MB ==> %.2f%%", (U32)(inFileSize>>20), (U32)(srcFileSize>>20), (double)outFileSize/inFileSize*100);
if (ret == LZMA_STREAM_END) break;
}
lzma_end(&strm);
*readsize = inFileSize;
return outFileSize;
}
#endif
/*! FIO_compressFilename_internal() :
* same as FIO_compressFilename_extRess(), with `ress.desFile` already opened.
* @return : 0 : compression completed correctly,
* 1 : missing or pb opening srcFileName
*/
static int FIO_compressFilename_internal(cRess_t ress,
const char* dstFileName, const char* srcFileName, int compressionLevel)
{
FILE* const srcFile = ress.srcFile;
FILE* const dstFile = ress.dstFile;
U64 readsize = 0;
U64 compressedfilesize = 0;
U64 const fileSize = UTIL_getFileSize(srcFileName);
switch (g_compressionType) {
case FIO_zstdCompression:
break;
case FIO_gzipCompression:
#ifdef ZSTD_GZCOMPRESS
compressedfilesize = FIO_compressGzFrame(&ress, srcFileName, fileSize, compressionLevel, &readsize);
#else
(void)compressionLevel;
EXM_THROW(20, "zstd: %s: file cannot be compressed as gzip (zstd compiled without ZSTD_GZCOMPRESS) -- ignored \n", srcFileName);
#endif
goto finish;
case FIO_xzCompression:
case FIO_lzmaCompression:
#ifdef ZSTD_LZMACOMPRESS
compressedfilesize = FIO_compressLzmaFrame(&ress, srcFileName, fileSize, compressionLevel, &readsize, g_compressionType==FIO_lzmaCompression);
#else
(void)compressionLevel;
EXM_THROW(20, "zstd: %s: file cannot be compressed as xz/lzma (zstd compiled without ZSTD_LZMACOMPRESS) -- ignored \n", srcFileName);
#endif
goto finish;
}
/* init */
#ifdef ZSTD_MULTITHREAD
{ size_t const resetError = ZSTDMT_resetCStream(ress.cctx, fileSize);
#else
{ size_t const resetError = ZSTD_resetCStream(ress.cctx, fileSize);
#endif
if (ZSTD_isError(resetError)) EXM_THROW(21, "Error initializing compression : %s", ZSTD_getErrorName(resetError));
}
/* Main compression loop */
while (1) {
/* Fill input Buffer */
size_t const inSize = fread(ress.srcBuffer, (size_t)1, ress.srcBufferSize, srcFile);
if (inSize==0) break;
readsize += inSize;
{ ZSTD_inBuffer inBuff = { ress.srcBuffer, inSize, 0 };
while (inBuff.pos != inBuff.size) { /* note : is there any possibility of endless loop ? for example, if outBuff is not large enough ? */
ZSTD_outBuffer outBuff= { ress.dstBuffer, ress.dstBufferSize, 0 };
#ifdef ZSTD_MULTITHREAD
size_t const result = ZSTDMT_compressStream(ress.cctx, &outBuff, &inBuff);
#else
size_t const result = ZSTD_compressStream(ress.cctx, &outBuff, &inBuff);
#endif
if (ZSTD_isError(result)) EXM_THROW(23, "Compression error : %s ", ZSTD_getErrorName(result));
/* Write compressed stream */
if (outBuff.pos) {
size_t const sizeCheck = fwrite(ress.dstBuffer, 1, outBuff.pos, dstFile);
if (sizeCheck!=outBuff.pos) EXM_THROW(25, "Write error : cannot write compressed block into %s", dstFileName);
compressedfilesize += outBuff.pos;
} } }
#ifdef ZSTD_MULTITHREAD
if (!fileSize) DISPLAYUPDATE(2, "\rRead : %u MB", (U32)(readsize>>20))
else DISPLAYUPDATE(2, "\rRead : %u / %u MB", (U32)(readsize>>20), (U32)(fileSize>>20));
#else
if (!fileSize) DISPLAYUPDATE(2, "\rRead : %u MB ==> %.2f%%", (U32)(readsize>>20), (double)compressedfilesize/readsize*100)
else DISPLAYUPDATE(2, "\rRead : %u / %u MB ==> %.2f%%", (U32)(readsize>>20), (U32)(fileSize>>20), (double)compressedfilesize/readsize*100);
#endif
}
/* End of Frame */
{ size_t result = 1;
while (result!=0) { /* note : is there any possibility of endless loop ? */
ZSTD_outBuffer outBuff = { ress.dstBuffer, ress.dstBufferSize, 0 };
#ifdef ZSTD_MULTITHREAD
result = ZSTDMT_endStream(ress.cctx, &outBuff);
#else
result = ZSTD_endStream(ress.cctx, &outBuff);
#endif
if (ZSTD_isError(result)) EXM_THROW(26, "Compression error during frame end : %s", ZSTD_getErrorName(result));
{ size_t const sizeCheck = fwrite(ress.dstBuffer, 1, outBuff.pos, dstFile);
if (sizeCheck!=outBuff.pos) EXM_THROW(27, "Write error : cannot write frame end into %s", dstFileName); }
compressedfilesize += outBuff.pos;
}
}
finish:
/* Status */
DISPLAYLEVEL(2, "\r%79s\r", "");
DISPLAYLEVEL(2,"%-20s :%6.2f%% (%6llu => %6llu bytes, %s) \n", srcFileName,
(double)compressedfilesize/(readsize+(!readsize) /* avoid div by zero */ )*100,
(unsigned long long)readsize, (unsigned long long) compressedfilesize,
dstFileName);
return 0;
}
/*! FIO_compressFilename_srcFile() :
* note : ress.destFile already opened
* @return : 0 : compression completed correctly,
* 1 : missing or pb opening srcFileName
*/
static int FIO_compressFilename_srcFile(cRess_t ress,
const char* dstFileName, const char* srcFileName, int compressionLevel)
{
int result;
/* File check */
if (UTIL_isDirectory(srcFileName)) {
DISPLAYLEVEL(1, "zstd: %s is a directory -- ignored \n", srcFileName);
return 1;
}
ress.srcFile = FIO_openSrcFile(srcFileName);
if (!ress.srcFile) return 1; /* srcFile could not be opened */
result = FIO_compressFilename_internal(ress, dstFileName, srcFileName, compressionLevel);
fclose(ress.srcFile);
if (g_removeSrcFile /* --rm */ && !result && strcmp(srcFileName, stdinmark)) {
if (remove(srcFileName))
EXM_THROW(1, "zstd: %s: %s", srcFileName, strerror(errno));
}
return result;
}
/*! FIO_compressFilename_dstFile() :
* @return : 0 : compression completed correctly,
* 1 : pb
*/
static int FIO_compressFilename_dstFile(cRess_t ress,
const char* dstFileName, const char* srcFileName, int compressionLevel)
{
int result;
stat_t statbuf;
int stat_result = 0;
ress.dstFile = FIO_openDstFile(dstFileName);
if (ress.dstFile==NULL) return 1; /* could not open dstFileName */
if (strcmp (srcFileName, stdinmark) && UTIL_getFileStat(srcFileName, &statbuf)) stat_result = 1;
result = FIO_compressFilename_srcFile(ress, dstFileName, srcFileName, compressionLevel);
if (fclose(ress.dstFile)) { DISPLAYLEVEL(1, "zstd: %s: %s \n", dstFileName, strerror(errno)); result=1; } /* error closing dstFile */
if (result!=0) { if (remove(dstFileName)) EXM_THROW(1, "zstd: %s: %s", dstFileName, strerror(errno)); } /* remove operation artefact */
else if (strcmp (dstFileName, stdoutmark) && stat_result) UTIL_setFileStat(dstFileName, &statbuf);
return result;
}
int FIO_compressFilename(const char* dstFileName, const char* srcFileName,
const char* dictFileName, int compressionLevel, ZSTD_compressionParameters* comprParams)
{
clock_t const start = clock();
U64 const srcSize = UTIL_getFileSize(srcFileName);
int const regFile = UTIL_isRegFile(srcFileName);
cRess_t const ress = FIO_createCResources(dictFileName, compressionLevel, srcSize, regFile, comprParams);
int const result = FIO_compressFilename_dstFile(ress, dstFileName, srcFileName, compressionLevel);
double const seconds = (double)(clock() - start) / CLOCKS_PER_SEC;
DISPLAYLEVEL(4, "Completed in %.2f sec \n", seconds);
FIO_freeCResources(ress);
return result;
}
int FIO_compressMultipleFilenames(const char** inFileNamesTable, unsigned nbFiles,
const char* suffix,
const char* dictFileName, int compressionLevel,
ZSTD_compressionParameters* comprParams)
{
int missed_files = 0;
size_t dfnSize = FNSPACE;
char* dstFileName = (char*)malloc(FNSPACE);
size_t const suffixSize = suffix ? strlen(suffix) : 0;
U64 const srcSize = (nbFiles != 1) ? 0 : UTIL_getFileSize(inFileNamesTable[0]) ;
int const regFile = (nbFiles != 1) ? 0 : UTIL_isRegFile(inFileNamesTable[0]);
cRess_t ress = FIO_createCResources(dictFileName, compressionLevel, srcSize, regFile, comprParams);
/* init */
if (dstFileName==NULL) EXM_THROW(27, "FIO_compressMultipleFilenames : allocation error for dstFileName");
if (suffix == NULL) EXM_THROW(28, "FIO_compressMultipleFilenames : dst unknown"); /* should never happen */
/* loop on each file */
if (!strcmp(suffix, stdoutmark)) {
unsigned u;
ress.dstFile = stdout;
SET_BINARY_MODE(stdout);
for (u=0; u 1 GB) {
int const seekResult = LONG_SEEK(file, 1 GB, SEEK_CUR);
if (seekResult != 0) EXM_THROW(71, "1 GB skip error (sparse file support)");
storedSkips -= 1 GB;
}
while (ptrT < bufferTEnd) {
size_t seg0SizeT = segmentSizeT;
size_t nb0T;
/* count leading zeros */
if (seg0SizeT > bufferSizeT) seg0SizeT = bufferSizeT;
bufferSizeT -= seg0SizeT;
for (nb0T=0; (nb0T < seg0SizeT) && (ptrT[nb0T] == 0); nb0T++) ;
storedSkips += (unsigned)(nb0T * sizeof(size_t));
if (nb0T != seg0SizeT) { /* not all 0s */
int const seekResult = LONG_SEEK(file, storedSkips, SEEK_CUR);
if (seekResult) EXM_THROW(72, "Sparse skip error ; try --no-sparse");
storedSkips = 0;
seg0SizeT -= nb0T;
ptrT += nb0T;
{ size_t const sizeCheck = fwrite(ptrT, sizeof(size_t), seg0SizeT, file);
if (sizeCheck != seg0SizeT) EXM_THROW(73, "Write error : cannot write decoded block");
} }
ptrT += seg0SizeT;
}
{ static size_t const maskT = sizeof(size_t)-1;
if (bufferSize & maskT) { /* size not multiple of sizeof(size_t) : implies end of block */
const char* const restStart = (const char*)bufferTEnd;
const char* restPtr = restStart;
size_t restSize = bufferSize & maskT;
const char* const restEnd = restStart + restSize;
for ( ; (restPtr < restEnd) && (*restPtr == 0); restPtr++) ;
storedSkips += (unsigned) (restPtr - restStart);
if (restPtr != restEnd) {
int seekResult = LONG_SEEK(file, storedSkips, SEEK_CUR);
if (seekResult) EXM_THROW(74, "Sparse skip error ; try --no-sparse");
storedSkips = 0;
{ size_t const sizeCheck = fwrite(restPtr, 1, restEnd - restPtr, file);
if (sizeCheck != (size_t)(restEnd - restPtr)) EXM_THROW(75, "Write error : cannot write decoded end of block");
} } } }
return storedSkips;
}
static void FIO_fwriteSparseEnd(FILE* file, unsigned storedSkips)
{
if (storedSkips-->0) { /* implies g_sparseFileSupport>0 */
int const seekResult = LONG_SEEK(file, storedSkips, SEEK_CUR);
if (seekResult != 0) EXM_THROW(69, "Final skip error (sparse file)");
{ const char lastZeroByte[1] = { 0 };
size_t const sizeCheck = fwrite(lastZeroByte, 1, 1, file);
if (sizeCheck != 1) EXM_THROW(69, "Write error : cannot write last zero");
} }
}
/** FIO_passThrough() : just copy input into output, for compatibility with gzip -df mode
@return : 0 (no error) */
static unsigned FIO_passThrough(FILE* foutput, FILE* finput, void* buffer, size_t bufferSize, size_t alreadyLoaded)
{
size_t const blockSize = MIN(64 KB, bufferSize);
size_t readFromInput = 1;
unsigned storedSkips = 0;
/* assumption : ress->srcBufferLoaded bytes already loaded and stored within buffer */
{ size_t const sizeCheck = fwrite(buffer, 1, alreadyLoaded, foutput);
if (sizeCheck != alreadyLoaded) EXM_THROW(50, "Pass-through write error"); }
while (readFromInput) {
readFromInput = fread(buffer, 1, blockSize, finput);
storedSkips = FIO_fwriteSparse(foutput, buffer, readFromInput, storedSkips);
}
FIO_fwriteSparseEnd(foutput, storedSkips);
return 0;
}
/** FIO_decompressFrame() :
@return : size of decoded frame
*/
unsigned long long FIO_decompressFrame(dRess_t* ress,
FILE* finput,
U64 alreadyDecoded)
{
U64 frameSize = 0;
U32 storedSkips = 0;
ZSTD_resetDStream(ress->dctx);
/* Header loading (optional, saves one loop) */
{ size_t const toRead = 9;
if (ress->srcBufferLoaded < toRead)
ress->srcBufferLoaded += fread(((char*)ress->srcBuffer) + ress->srcBufferLoaded, 1, toRead - ress->srcBufferLoaded, finput);
}
/* Main decompression Loop */
while (1) {
ZSTD_inBuffer inBuff = { ress->srcBuffer, ress->srcBufferLoaded, 0 };
ZSTD_outBuffer outBuff= { ress->dstBuffer, ress->dstBufferSize, 0 };
size_t const readSizeHint = ZSTD_decompressStream(ress->dctx, &outBuff, &inBuff);
if (ZSTD_isError(readSizeHint)) EXM_THROW(36, "Decoding error : %s", ZSTD_getErrorName(readSizeHint));
/* Write block */
storedSkips = FIO_fwriteSparse(ress->dstFile, ress->dstBuffer, outBuff.pos, storedSkips);
frameSize += outBuff.pos;
DISPLAYUPDATE(2, "\rDecoded : %u MB... ", (U32)((alreadyDecoded+frameSize)>>20) );
if (inBuff.pos > 0) {
memmove(ress->srcBuffer, (char*)ress->srcBuffer + inBuff.pos, inBuff.size - inBuff.pos);
ress->srcBufferLoaded -= inBuff.pos;
}
if (readSizeHint == 0) break; /* end of frame */
if (inBuff.size != inBuff.pos) EXM_THROW(37, "Decoding error : should consume entire input");
/* Fill input buffer */
{ size_t const toRead = MIN(readSizeHint, ress->srcBufferSize); /* support large skippable frames */
if (ress->srcBufferLoaded < toRead)
ress->srcBufferLoaded += fread(((char*)ress->srcBuffer) + ress->srcBufferLoaded, 1, toRead - ress->srcBufferLoaded, finput);
if (ress->srcBufferLoaded < toRead) EXM_THROW(39, "Read error : premature end");
} }
FIO_fwriteSparseEnd(ress->dstFile, storedSkips);
return frameSize;
}
#ifdef ZSTD_GZDECOMPRESS
static unsigned long long FIO_decompressGzFrame(dRess_t* ress, FILE* srcFile, const char* srcFileName)
{
unsigned long long outFileSize = 0;
z_stream strm;
int flush = Z_NO_FLUSH;
int ret;
strm.zalloc = Z_NULL;
strm.zfree = Z_NULL;
strm.opaque = Z_NULL;
strm.next_in = 0;
strm.avail_in = 0;
if (inflateInit2(&strm, 15 /* maxWindowLogSize */ + 16 /* gzip only */) != Z_OK) return 0; /* see http://www.zlib.net/manual.html */
strm.next_out = (Bytef*)ress->dstBuffer;
strm.avail_out = (uInt)ress->dstBufferSize;
strm.avail_in = (uInt)ress->srcBufferLoaded;
strm.next_in = (z_const unsigned char*)ress->srcBuffer;
for ( ; ; ) {
if (strm.avail_in == 0) {
ress->srcBufferLoaded = fread(ress->srcBuffer, 1, ress->srcBufferSize, srcFile);
if (ress->srcBufferLoaded == 0) flush = Z_FINISH;
strm.next_in = (z_const unsigned char*)ress->srcBuffer;
strm.avail_in = (uInt)ress->srcBufferLoaded;
}
ret = inflate(&strm, flush);
if (ret == Z_BUF_ERROR) EXM_THROW(39, "zstd: %s: premature end", srcFileName);
if (ret != Z_OK && ret != Z_STREAM_END) { DISPLAY("zstd: %s: inflate error %d \n", srcFileName, ret); return 0; }
{ size_t const decompBytes = ress->dstBufferSize - strm.avail_out;
if (decompBytes) {
if (fwrite(ress->dstBuffer, 1, decompBytes, ress->dstFile) != decompBytes) EXM_THROW(31, "Write error : cannot write to output file");
outFileSize += decompBytes;
strm.next_out = (Bytef*)ress->dstBuffer;
strm.avail_out = (uInt)ress->dstBufferSize;
}
}
if (ret == Z_STREAM_END) break;
}
if (strm.avail_in > 0) memmove(ress->srcBuffer, strm.next_in, strm.avail_in);
ress->srcBufferLoaded = strm.avail_in;
ret = inflateEnd(&strm);
if (ret != Z_OK) EXM_THROW(32, "zstd: %s: inflateEnd error %d", srcFileName, ret);
return outFileSize;
}
#endif
#ifdef ZSTD_LZMADECOMPRESS
static unsigned long long FIO_decompressLzmaFrame(dRess_t* ress, FILE* srcFile, const char* srcFileName, int plain_lzma)
{
unsigned long long outFileSize = 0;
lzma_stream strm = LZMA_STREAM_INIT;
lzma_action action = LZMA_RUN;
lzma_ret ret;
strm.next_in = 0;
strm.avail_in = 0;
if (plain_lzma) {
ret = lzma_alone_decoder(&strm, UINT64_MAX); /* LZMA */
} else {
ret = lzma_stream_decoder(&strm, UINT64_MAX, 0); /* XZ */
}
if (ret != LZMA_OK) EXM_THROW(71, "zstd: %s: lzma_alone_decoder/lzma_stream_decoder error %d", srcFileName, ret);
strm.next_out = ress->dstBuffer;
strm.avail_out = ress->dstBufferSize;
strm.avail_in = ress->srcBufferLoaded;
strm.next_in = ress->srcBuffer;
for ( ; ; ) {
if (strm.avail_in == 0) {
ress->srcBufferLoaded = fread(ress->srcBuffer, 1, ress->srcBufferSize, srcFile);
if (ress->srcBufferLoaded == 0) action = LZMA_FINISH;
strm.next_in = ress->srcBuffer;
strm.avail_in = ress->srcBufferLoaded;
}
ret = lzma_code(&strm, action);
if (ret == LZMA_BUF_ERROR) EXM_THROW(39, "zstd: %s: premature end", srcFileName);
if (ret != LZMA_OK && ret != LZMA_STREAM_END) { DISPLAY("zstd: %s: lzma_code decoding error %d \n", srcFileName, ret); return 0; }
{ size_t const decompBytes = ress->dstBufferSize - strm.avail_out;
if (decompBytes) {
if (fwrite(ress->dstBuffer, 1, decompBytes, ress->dstFile) != decompBytes) EXM_THROW(31, "Write error : cannot write to output file");
outFileSize += decompBytes;
strm.next_out = ress->dstBuffer;
strm.avail_out = ress->dstBufferSize;
}
}
if (ret == LZMA_STREAM_END) break;
}
if (strm.avail_in > 0) memmove(ress->srcBuffer, strm.next_in, strm.avail_in);
ress->srcBufferLoaded = strm.avail_in;
lzma_end(&strm);
return outFileSize;
}
#endif
/** FIO_decompressSrcFile() :
Decompression `srcFileName` into `ress.dstFile`
@return : 0 : OK
1 : operation not started
*/
static int FIO_decompressSrcFile(dRess_t ress, const char* dstFileName, const char* srcFileName)
{
FILE* srcFile;
unsigned readSomething = 0;
unsigned long long filesize = 0;
if (UTIL_isDirectory(srcFileName)) {
DISPLAYLEVEL(1, "zstd: %s is a directory -- ignored \n", srcFileName);
return 1;
}
srcFile = FIO_openSrcFile(srcFileName);
if (srcFile==NULL) return 1;
/* for each frame */
for ( ; ; ) {
/* check magic number -> version */
size_t const toRead = 4;
const BYTE* buf = (const BYTE*)ress.srcBuffer;
if (ress.srcBufferLoaded < toRead)
ress.srcBufferLoaded += fread((char*)ress.srcBuffer + ress.srcBufferLoaded, (size_t)1, toRead - ress.srcBufferLoaded, srcFile);
if (ress.srcBufferLoaded==0) {
if (readSomething==0) { DISPLAY("zstd: %s: unexpected end of file \n", srcFileName); fclose(srcFile); return 1; } /* srcFileName is empty */
break; /* no more input */
}
readSomething = 1; /* there is at least >= 4 bytes in srcFile */
if (ress.srcBufferLoaded < toRead) { DISPLAY("zstd: %s: unknown header \n", srcFileName); fclose(srcFile); return 1; } /* srcFileName is empty */
if (buf[0] == 31 && buf[1] == 139) { /* gz magic number */
#ifdef ZSTD_GZDECOMPRESS
unsigned long long const result = FIO_decompressGzFrame(&ress, srcFile, srcFileName);
if (result == 0) return 1;
filesize += result;
#else
DISPLAYLEVEL(1, "zstd: %s: gzip file cannot be uncompressed (zstd compiled without ZSTD_GZDECOMPRESS) -- ignored \n", srcFileName);
return 1;
#endif
} else if ((buf[0] == 0xFD && buf[1] == 0x37) /* xz magic number */
|| (buf[0] == 0x5D && buf[1] == 0x00)) { /* lzma header (no magic number) */
#ifdef ZSTD_LZMADECOMPRESS
unsigned long long const result = FIO_decompressLzmaFrame(&ress, srcFile, srcFileName, buf[0] != 0xFD);
if (result == 0) return 1;
filesize += result;
#else
DISPLAYLEVEL(1, "zstd: %s: xz/lzma file cannot be uncompressed (zstd compiled without ZSTD_LZMADECOMPRESS) -- ignored \n", srcFileName);
return 1;
#endif
} else {
if (!ZSTD_isFrame(ress.srcBuffer, toRead)) {
if ((g_overwrite) && !strcmp (dstFileName, stdoutmark)) { /* pass-through mode */
unsigned const result = FIO_passThrough(ress.dstFile, srcFile, ress.srcBuffer, ress.srcBufferSize, ress.srcBufferLoaded);
if (fclose(srcFile)) EXM_THROW(32, "zstd: %s close error", srcFileName); /* error should never happen */
return result;
} else {
DISPLAYLEVEL(1, "zstd: %s: not in zstd format \n", srcFileName);
fclose(srcFile);
return 1;
} }
filesize += FIO_decompressFrame(&ress, srcFile, filesize);
}
}
/* Final Status */
DISPLAYLEVEL(2, "\r%79s\r", "");
DISPLAYLEVEL(2, "%-20s: %llu bytes \n", srcFileName, filesize);
/* Close file */
if (fclose(srcFile)) EXM_THROW(33, "zstd: %s close error", srcFileName); /* error should never happen */
if (g_removeSrcFile /* --rm */ && strcmp(srcFileName, stdinmark)) { if (remove(srcFileName)) EXM_THROW(34, "zstd: %s: %s", srcFileName, strerror(errno)); };
return 0;
}
/** FIO_decompressFile_extRess() :
decompress `srcFileName` into `dstFileName`
@return : 0 : OK
1 : operation aborted (src not available, dst already taken, etc.)
*/
static int FIO_decompressDstFile(dRess_t ress,
const char* dstFileName, const char* srcFileName)
{
int result;
stat_t statbuf;
int stat_result = 0;
ress.dstFile = FIO_openDstFile(dstFileName);
if (ress.dstFile==0) return 1;
if (strcmp (srcFileName, stdinmark) && UTIL_getFileStat(srcFileName, &statbuf)) stat_result = 1;
result = FIO_decompressSrcFile(ress, dstFileName, srcFileName);
if (fclose(ress.dstFile)) EXM_THROW(38, "Write error : cannot properly close %s", dstFileName);
if ( (result != 0)
&& strcmp(dstFileName, nulmark) /* special case : don't remove() /dev/null (#316) */
&& remove(dstFileName) )
result=1; /* don't do anything special if remove() fails */
else if (strcmp (dstFileName, stdoutmark) && stat_result) UTIL_setFileStat(dstFileName, &statbuf);
return result;
}
int FIO_decompressFilename(const char* dstFileName, const char* srcFileName,
const char* dictFileName)
{
int missingFiles = 0;
dRess_t ress = FIO_createDResources(dictFileName);
missingFiles += FIO_decompressDstFile(ress, dstFileName, srcFileName);
FIO_freeDResources(ress);
return missingFiles;
}
#define MAXSUFFIXSIZE 8
int FIO_decompressMultipleFilenames(const char** srcNamesTable, unsigned nbFiles,
const char* suffix,
const char* dictFileName)
{
int skippedFiles = 0;
int missingFiles = 0;
dRess_t ress = FIO_createDResources(dictFileName);
if (suffix==NULL) EXM_THROW(70, "zstd: decompression: unknown dst"); /* should never happen */
if (!strcmp(suffix, stdoutmark) || !strcmp(suffix, nulmark)) { /* special cases : -c or -t */
unsigned u;
ress.dstFile = FIO_openDstFile(suffix);
if (ress.dstFile == 0) EXM_THROW(71, "cannot open %s", suffix);
for (u=0; u