Skip to content

Commit

Permalink
Migrate FastLZMA2 from NanaZip.Core to NanaZip.Codecs.
Browse files Browse the repository at this point in the history
  • Loading branch information
MouriNaruto committed Feb 4, 2024
1 parent 212dd77 commit 4313eec
Show file tree
Hide file tree
Showing 40 changed files with 152 additions and 491 deletions.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
17 changes: 17 additions & 0 deletions NanaZip.Codecs/NanaZip.Codecs.def
Original file line number Diff line number Diff line change
Expand Up @@ -116,3 +116,20 @@ LZ5MT_decompressDCtx
LZ5MT_freeCCtx
LZ5MT_freeDCtx
LZ5MT_isError

FL2_cancelCStream
FL2_CCtx_getParameter
FL2_CCtx_setParameter
FL2_createCStreamMt
FL2_endStream
FL2_freeCCtx
FL2_getCStreamProgress
FL2_getDictionaryBuffer
FL2_getErrorCode
FL2_getNextCompressedBuffer
FL2_initCStream
FL2_isError
FL2_isTimedOut
FL2_setCStreamTimeout
FL2_updateDictionary
FL2_waitCStream
1 change: 1 addition & 0 deletions NanaZip.Codecs/NanaZip.Codecs.props
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
<PropertyGroup>
<IncludePath>$(MSBuildThisFileDirectory)BLAKE3\;$(IncludePath)</IncludePath>
<IncludePath>$(MSBuildThisFileDirectory)Brotli\include\;$(IncludePath)</IncludePath>
<IncludePath>$(MSBuildThisFileDirectory)FastLZMA2\;$(IncludePath)</IncludePath>
<IncludePath>$(MSBuildThisFileDirectory)GmSSL\;$(IncludePath)</IncludePath>
<IncludePath>$(MSBuildThisFileDirectory)Heimdal\;$(IncludePath)</IncludePath>
<IncludePath>$(MSBuildThisFileDirectory)Lizard\;$(IncludePath)</IncludePath>
Expand Down
34 changes: 34 additions & 0 deletions NanaZip.Codecs/NanaZip.Codecs.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
<PropertyGroup>
<IncludePath>$(MSBuildThisFileDirectory)BLAKE3\;$(IncludePath)</IncludePath>
<IncludePath>$(MSBuildThisFileDirectory)Brotli\include\;$(IncludePath)</IncludePath>
<IncludePath>$(MSBuildThisFileDirectory)FastLZMA2\;$(IncludePath)</IncludePath>
<IncludePath>$(MSBuildThisFileDirectory)GmSSL\;$(IncludePath)</IncludePath>
<IncludePath>$(MSBuildThisFileDirectory)Heimdal\;$(IncludePath)</IncludePath>
<IncludePath>$(MSBuildThisFileDirectory)Lizard\;$(IncludePath)</IncludePath>
Expand All @@ -37,6 +38,7 @@
<ItemDefinitionGroup>
<ClCompile>
<EnableEnhancedInstructionSet Condition="'$(Platform)'=='Win32'">NoExtensions</EnableEnhancedInstructionSet>
<PreprocessorDefinitions>NO_XXHASH;FL2_7ZIP_BUILD;%(PreprocessorDefinitions)</PreprocessorDefinitions>
</ClCompile>
<Link>
<ModuleDefinitionFile>NanaZip.Codecs.def</ModuleDefinitionFile>
Expand All @@ -48,6 +50,17 @@
<None Include="NanaZip.Codecs.props" />
</ItemGroup>
<ItemGroup>
<ClCompile Include="FastLZMA2\dict_buffer.c" />
<ClCompile Include="FastLZMA2\fl2_common.c" />
<ClCompile Include="FastLZMA2\fl2_compress.c" />
<ClCompile Include="FastLZMA2\fl2_pool.c" />
<ClCompile Include="FastLZMA2\fl2_threading.c" />
<ClCompile Include="FastLZMA2\lzma2_enc.c" />
<ClCompile Include="FastLZMA2\radix_bitpack.c" />
<ClCompile Include="FastLZMA2\radix_mf.c" />
<ClCompile Include="FastLZMA2\radix_struct.c" />
<ClCompile Include="FastLZMA2\range_enc.c" />
<ClCompile Include="FastLZMA2\util.c" />
<ClCompile Include="ZSTDMT\brotli-mt_common.c" />
<ClCompile Include="ZSTDMT\brotli-mt_compress.c" />
<ClCompile Include="ZSTDMT\brotli-mt_decompress.c" />
Expand Down Expand Up @@ -184,6 +197,27 @@
<ClCompile Include="NanaZip.Codecs.cpp" />
</ItemGroup>
<ItemGroup>
<ClInclude Include="FastLZMA2\atomic.h" />
<ClInclude Include="FastLZMA2\compiler.h" />
<ClInclude Include="FastLZMA2\count.h" />
<ClInclude Include="FastLZMA2\data_block.h" />
<ClInclude Include="FastLZMA2\dict_buffer.h" />
<ClInclude Include="FastLZMA2\fast-lzma2.h" />
<ClInclude Include="FastLZMA2\fastpos_table.h" />
<ClInclude Include="FastLZMA2\fl2_compress_internal.h" />
<ClInclude Include="FastLZMA2\fl2_errors.h" />
<ClInclude Include="FastLZMA2\fl2_internal.h" />
<ClInclude Include="FastLZMA2\fl2_pool.h" />
<ClInclude Include="FastLZMA2\fl2_threading.h" />
<ClInclude Include="FastLZMA2\lzma2_enc.h" />
<ClInclude Include="FastLZMA2\mem.h" />
<ClInclude Include="FastLZMA2\platform.h" />
<ClInclude Include="FastLZMA2\radix_engine.h" />
<ClInclude Include="FastLZMA2\radix_get.h" />
<ClInclude Include="FastLZMA2\radix_internal.h" />
<ClInclude Include="FastLZMA2\radix_mf.h" />
<ClInclude Include="FastLZMA2\range_enc.h" />
<ClInclude Include="FastLZMA2\util.h" />
<ClInclude Include="ZSTDMT\brotli-mt.h" />
<ClInclude Include="ZSTDMT\list.h" />
<ClInclude Include="ZSTDMT\lizard-mt.h" />
Expand Down
99 changes: 99 additions & 0 deletions NanaZip.Codecs/NanaZip.Codecs.vcxproj.filters
Original file line number Diff line number Diff line change
Expand Up @@ -281,6 +281,39 @@
<ClCompile Include="ZSTDMT\zstd-mt_threading.c">
<Filter>ZSTDMT</Filter>
</ClCompile>
<ClCompile Include="FastLZMA2\dict_buffer.c">
<Filter>FastLZMA2</Filter>
</ClCompile>
<ClCompile Include="FastLZMA2\fl2_common.c">
<Filter>FastLZMA2</Filter>
</ClCompile>
<ClCompile Include="FastLZMA2\fl2_compress.c">
<Filter>FastLZMA2</Filter>
</ClCompile>
<ClCompile Include="FastLZMA2\fl2_pool.c">
<Filter>FastLZMA2</Filter>
</ClCompile>
<ClCompile Include="FastLZMA2\fl2_threading.c">
<Filter>FastLZMA2</Filter>
</ClCompile>
<ClCompile Include="FastLZMA2\lzma2_enc.c">
<Filter>FastLZMA2</Filter>
</ClCompile>
<ClCompile Include="FastLZMA2\radix_bitpack.c">
<Filter>FastLZMA2</Filter>
</ClCompile>
<ClCompile Include="FastLZMA2\radix_mf.c">
<Filter>FastLZMA2</Filter>
</ClCompile>
<ClCompile Include="FastLZMA2\radix_struct.c">
<Filter>FastLZMA2</Filter>
</ClCompile>
<ClCompile Include="FastLZMA2\range_enc.c">
<Filter>FastLZMA2</Filter>
</ClCompile>
<ClCompile Include="FastLZMA2\util.c">
<Filter>FastLZMA2</Filter>
</ClCompile>
</ItemGroup>
<ItemGroup>
<None Include="NanaZip.Codecs.def" />
Expand Down Expand Up @@ -332,6 +365,9 @@
<Filter Include="ZSTDMT">
<UniqueIdentifier>{0f78d39c-0bbe-4715-9237-133b2a02b2fd}</UniqueIdentifier>
</Filter>
<Filter Include="FastLZMA2">
<UniqueIdentifier>{fd31c8de-7c34-43cb-abb3-ddc8bad2d7fd}</UniqueIdentifier>
</Filter>
</ItemGroup>
<ItemGroup>
<ClInclude Include="BLAKE3\blake3.h">
Expand Down Expand Up @@ -721,5 +757,68 @@
<ClInclude Include="ZSTDMT\threading.h">
<Filter>ZSTDMT</Filter>
</ClInclude>
<ClInclude Include="FastLZMA2\atomic.h">
<Filter>FastLZMA2</Filter>
</ClInclude>
<ClInclude Include="FastLZMA2\compiler.h">
<Filter>FastLZMA2</Filter>
</ClInclude>
<ClInclude Include="FastLZMA2\count.h">
<Filter>FastLZMA2</Filter>
</ClInclude>
<ClInclude Include="FastLZMA2\data_block.h">
<Filter>FastLZMA2</Filter>
</ClInclude>
<ClInclude Include="FastLZMA2\dict_buffer.h">
<Filter>FastLZMA2</Filter>
</ClInclude>
<ClInclude Include="FastLZMA2\fast-lzma2.h">
<Filter>FastLZMA2</Filter>
</ClInclude>
<ClInclude Include="FastLZMA2\fastpos_table.h">
<Filter>FastLZMA2</Filter>
</ClInclude>
<ClInclude Include="FastLZMA2\fl2_compress_internal.h">
<Filter>FastLZMA2</Filter>
</ClInclude>
<ClInclude Include="FastLZMA2\fl2_errors.h">
<Filter>FastLZMA2</Filter>
</ClInclude>
<ClInclude Include="FastLZMA2\fl2_internal.h">
<Filter>FastLZMA2</Filter>
</ClInclude>
<ClInclude Include="FastLZMA2\fl2_pool.h">
<Filter>FastLZMA2</Filter>
</ClInclude>
<ClInclude Include="FastLZMA2\fl2_threading.h">
<Filter>FastLZMA2</Filter>
</ClInclude>
<ClInclude Include="FastLZMA2\lzma2_enc.h">
<Filter>FastLZMA2</Filter>
</ClInclude>
<ClInclude Include="FastLZMA2\mem.h">
<Filter>FastLZMA2</Filter>
</ClInclude>
<ClInclude Include="FastLZMA2\platform.h">
<Filter>FastLZMA2</Filter>
</ClInclude>
<ClInclude Include="FastLZMA2\radix_engine.h">
<Filter>FastLZMA2</Filter>
</ClInclude>
<ClInclude Include="FastLZMA2\radix_get.h">
<Filter>FastLZMA2</Filter>
</ClInclude>
<ClInclude Include="FastLZMA2\radix_internal.h">
<Filter>FastLZMA2</Filter>
</ClInclude>
<ClInclude Include="FastLZMA2\radix_mf.h">
<Filter>FastLZMA2</Filter>
</ClInclude>
<ClInclude Include="FastLZMA2\range_enc.h">
<Filter>FastLZMA2</Filter>
</ClInclude>
<ClInclude Include="FastLZMA2\util.h">
<Filter>FastLZMA2</Filter>
</ClInclude>
</ItemGroup>
</Project>
Loading

0 comments on commit 4313eec

Please sign in to comment.