libwz 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (362) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +165 -0
  3. package/binding.gyp +149 -0
  4. package/deps/tiny-aes/.github/workflows/c-cpp.yml +27 -0
  5. package/deps/tiny-aes/CMakeLists.txt +17 -0
  6. package/deps/tiny-aes/Makefile +61 -0
  7. package/deps/tiny-aes/README.md +83 -0
  8. package/deps/tiny-aes/aes.c +572 -0
  9. package/deps/tiny-aes/aes.h +91 -0
  10. package/deps/tiny-aes/aes.hpp +12 -0
  11. package/deps/tiny-aes/conanfile.py +73 -0
  12. package/deps/tiny-aes/library.json +19 -0
  13. package/deps/tiny-aes/library.properties +11 -0
  14. package/deps/tiny-aes/test.c +316 -0
  15. package/deps/tiny-aes/test.cpp +2 -0
  16. package/deps/tiny-aes/test_package/CMakeLists.txt +11 -0
  17. package/deps/tiny-aes/test_package/conanfile.py +17 -0
  18. package/deps/tiny-aes/unlicense.txt +24 -0
  19. package/deps/zlib/.cmake-format.yaml +245 -0
  20. package/deps/zlib/.github/workflows/c-std.yml +268 -0
  21. package/deps/zlib/.github/workflows/cmake.yml +147 -0
  22. package/deps/zlib/.github/workflows/configure.yml +146 -0
  23. package/deps/zlib/.github/workflows/contribs.yml +64 -0
  24. package/deps/zlib/.github/workflows/fuzz.yml +25 -0
  25. package/deps/zlib/.github/workflows/msys-cygwin.yml +92 -0
  26. package/deps/zlib/.github/workflows/others.yml +153 -0
  27. package/deps/zlib/BUILD.bazel +134 -0
  28. package/deps/zlib/CMakeLists.txt +310 -0
  29. package/deps/zlib/ChangeLog +1669 -0
  30. package/deps/zlib/FAQ +371 -0
  31. package/deps/zlib/INDEX +67 -0
  32. package/deps/zlib/LICENSE +22 -0
  33. package/deps/zlib/MODULE.bazel +9 -0
  34. package/deps/zlib/Makefile.in +426 -0
  35. package/deps/zlib/README +115 -0
  36. package/deps/zlib/README-cmake.md +79 -0
  37. package/deps/zlib/adler32.c +164 -0
  38. package/deps/zlib/amiga/Makefile.pup +69 -0
  39. package/deps/zlib/amiga/Makefile.sas +68 -0
  40. package/deps/zlib/compress.c +99 -0
  41. package/deps/zlib/configure +1078 -0
  42. package/deps/zlib/contrib/CMakeLists.txt +61 -0
  43. package/deps/zlib/contrib/README.contrib +57 -0
  44. package/deps/zlib/contrib/ada/CMakeLists.txt +217 -0
  45. package/deps/zlib/contrib/ada/buffer_demo.adb +106 -0
  46. package/deps/zlib/contrib/ada/cmake/Modules/CMakeADACompiler.cmake.in +23 -0
  47. package/deps/zlib/contrib/ada/cmake/Modules/CMakeADAInformation.cmake +133 -0
  48. package/deps/zlib/contrib/ada/cmake/Modules/CMakeDetermineADACompiler.cmake +33 -0
  49. package/deps/zlib/contrib/ada/cmake/Modules/CMakeTestADACompiler.cmake +46 -0
  50. package/deps/zlib/contrib/ada/cmake/binder_helper.cmake +47 -0
  51. package/deps/zlib/contrib/ada/cmake/compile_helper.cmake +32 -0
  52. package/deps/zlib/contrib/ada/cmake/exe_link_helper.cmake +53 -0
  53. package/deps/zlib/contrib/ada/cmake/shared_link_helper.cmake +52 -0
  54. package/deps/zlib/contrib/ada/cmake/static_link_helper.cmake +25 -0
  55. package/deps/zlib/contrib/ada/mtest.adb +156 -0
  56. package/deps/zlib/contrib/ada/read.adb +156 -0
  57. package/deps/zlib/contrib/ada/readme.txt +65 -0
  58. package/deps/zlib/contrib/ada/test.adb +463 -0
  59. package/deps/zlib/contrib/ada/zlib-streams.adb +225 -0
  60. package/deps/zlib/contrib/ada/zlib-streams.ads +114 -0
  61. package/deps/zlib/contrib/ada/zlib-thin.adb +142 -0
  62. package/deps/zlib/contrib/ada/zlib-thin.ads +450 -0
  63. package/deps/zlib/contrib/ada/zlib.adb +701 -0
  64. package/deps/zlib/contrib/ada/zlib.ads +328 -0
  65. package/deps/zlib/contrib/ada/zlib.gpr +20 -0
  66. package/deps/zlib/contrib/blast/CMakeLists.txt +166 -0
  67. package/deps/zlib/contrib/blast/Makefile +14 -0
  68. package/deps/zlib/contrib/blast/README +4 -0
  69. package/deps/zlib/contrib/blast/blast-test.c +42 -0
  70. package/deps/zlib/contrib/blast/blast.c +422 -0
  71. package/deps/zlib/contrib/blast/blast.h +84 -0
  72. package/deps/zlib/contrib/blast/blastConfig.cmake.in +18 -0
  73. package/deps/zlib/contrib/blast/test/CMakeLists.txt +193 -0
  74. package/deps/zlib/contrib/blast/test/add_subdirectory_exclude_test.cmake.in +27 -0
  75. package/deps/zlib/contrib/blast/test/add_subdirectory_test.cmake.in +25 -0
  76. package/deps/zlib/contrib/blast/test/find_package_no_components_test.cmake.in +24 -0
  77. package/deps/zlib/contrib/blast/test/find_package_test.cmake.in +24 -0
  78. package/deps/zlib/contrib/blast/test/find_package_wrong_components_test.cmake.in +24 -0
  79. package/deps/zlib/contrib/blast/test.pk +0 -0
  80. package/deps/zlib/contrib/blast/test.txt +1 -0
  81. package/deps/zlib/contrib/blast/tester.cmake +28 -0
  82. package/deps/zlib/contrib/crc32vx/CMakeLists.txt +67 -0
  83. package/deps/zlib/contrib/crc32vx/README +9 -0
  84. package/deps/zlib/contrib/crc32vx/crc32_vx.c +254 -0
  85. package/deps/zlib/contrib/crc32vx/crc32_vx_hooks.h +9 -0
  86. package/deps/zlib/contrib/delphi/ZLib.pas +557 -0
  87. package/deps/zlib/contrib/delphi/ZLibConst.pas +11 -0
  88. package/deps/zlib/contrib/delphi/readme.txt +76 -0
  89. package/deps/zlib/contrib/delphi/zlibd32.mak +99 -0
  90. package/deps/zlib/contrib/dotzlib/DotZLib/AssemblyInfo.cs +58 -0
  91. package/deps/zlib/contrib/dotzlib/DotZLib/ChecksumImpl.cs +202 -0
  92. package/deps/zlib/contrib/dotzlib/DotZLib/CircularBuffer.cs +83 -0
  93. package/deps/zlib/contrib/dotzlib/DotZLib/CodecBase.cs +198 -0
  94. package/deps/zlib/contrib/dotzlib/DotZLib/Deflater.cs +106 -0
  95. package/deps/zlib/contrib/dotzlib/DotZLib/DotZLib.cs +288 -0
  96. package/deps/zlib/contrib/dotzlib/DotZLib/DotZLib.csproj +141 -0
  97. package/deps/zlib/contrib/dotzlib/DotZLib/GZipStream.cs +301 -0
  98. package/deps/zlib/contrib/dotzlib/DotZLib/Inflater.cs +105 -0
  99. package/deps/zlib/contrib/dotzlib/DotZLib/UnitTests.cs +274 -0
  100. package/deps/zlib/contrib/dotzlib/DotZLib.build +33 -0
  101. package/deps/zlib/contrib/dotzlib/DotZLib.chm +0 -0
  102. package/deps/zlib/contrib/dotzlib/DotZLib.sln +21 -0
  103. package/deps/zlib/contrib/dotzlib/LICENSE_1_0.txt +23 -0
  104. package/deps/zlib/contrib/dotzlib/readme.txt +58 -0
  105. package/deps/zlib/contrib/gcc_gvmat64/CMakeLists.txt +19 -0
  106. package/deps/zlib/contrib/gcc_gvmat64/gvmat64.S +570 -0
  107. package/deps/zlib/contrib/infback9/CMakeLists.txt +19 -0
  108. package/deps/zlib/contrib/infback9/README +1 -0
  109. package/deps/zlib/contrib/infback9/infback9.c +603 -0
  110. package/deps/zlib/contrib/infback9/infback9.h +37 -0
  111. package/deps/zlib/contrib/infback9/inffix9.h +107 -0
  112. package/deps/zlib/contrib/infback9/inflate9.h +47 -0
  113. package/deps/zlib/contrib/infback9/inftree9.c +319 -0
  114. package/deps/zlib/contrib/infback9/inftree9.h +61 -0
  115. package/deps/zlib/contrib/iostream/test.cpp +24 -0
  116. package/deps/zlib/contrib/iostream/zfstream.cpp +329 -0
  117. package/deps/zlib/contrib/iostream/zfstream.h +128 -0
  118. package/deps/zlib/contrib/iostream2/zstream.h +306 -0
  119. package/deps/zlib/contrib/iostream2/zstream_test.cpp +25 -0
  120. package/deps/zlib/contrib/iostream3/CMakeLists.txt +200 -0
  121. package/deps/zlib/contrib/iostream3/README +35 -0
  122. package/deps/zlib/contrib/iostream3/TODO +17 -0
  123. package/deps/zlib/contrib/iostream3/iostream3Config.cmake.in +23 -0
  124. package/deps/zlib/contrib/iostream3/test/CMakeLists.txt +191 -0
  125. package/deps/zlib/contrib/iostream3/test/add_subdirectory_exclude_test.cmake.in +27 -0
  126. package/deps/zlib/contrib/iostream3/test/add_subdirectory_test.cmake.in +25 -0
  127. package/deps/zlib/contrib/iostream3/test/find_package_no_components_test.cmake.in +24 -0
  128. package/deps/zlib/contrib/iostream3/test/find_package_test.cmake.in +24 -0
  129. package/deps/zlib/contrib/iostream3/test/find_package_wrong_components_test.cmake.in +24 -0
  130. package/deps/zlib/contrib/iostream3/test.cc +50 -0
  131. package/deps/zlib/contrib/iostream3/zfstream.cc +479 -0
  132. package/deps/zlib/contrib/iostream3/zfstream.h +466 -0
  133. package/deps/zlib/contrib/minizip/CMakeLists.txt +387 -0
  134. package/deps/zlib/contrib/minizip/LICENSE.Info-Zip +58 -0
  135. package/deps/zlib/contrib/minizip/Makefile +33 -0
  136. package/deps/zlib/contrib/minizip/Makefile.am +45 -0
  137. package/deps/zlib/contrib/minizip/MiniZip64_Changes.txt +6 -0
  138. package/deps/zlib/contrib/minizip/MiniZip64_info.txt +69 -0
  139. package/deps/zlib/contrib/minizip/configure.ac +32 -0
  140. package/deps/zlib/contrib/minizip/crypt.h +125 -0
  141. package/deps/zlib/contrib/minizip/ints.h +57 -0
  142. package/deps/zlib/contrib/minizip/ioapi.c +231 -0
  143. package/deps/zlib/contrib/minizip/ioapi.h +183 -0
  144. package/deps/zlib/contrib/minizip/iowin32.c +447 -0
  145. package/deps/zlib/contrib/minizip/iowin32.h +27 -0
  146. package/deps/zlib/contrib/minizip/make_vms.com +25 -0
  147. package/deps/zlib/contrib/minizip/miniunz.c +647 -0
  148. package/deps/zlib/contrib/minizip/miniunzip.1 +63 -0
  149. package/deps/zlib/contrib/minizip/minizip.1 +46 -0
  150. package/deps/zlib/contrib/minizip/minizip.c +511 -0
  151. package/deps/zlib/contrib/minizip/minizip.pc.in +13 -0
  152. package/deps/zlib/contrib/minizip/minizip.pc.txt +13 -0
  153. package/deps/zlib/contrib/minizip/minizipConfig.cmake.in +27 -0
  154. package/deps/zlib/contrib/minizip/mztools.c +294 -0
  155. package/deps/zlib/contrib/minizip/mztools.h +37 -0
  156. package/deps/zlib/contrib/minizip/skipset.h +366 -0
  157. package/deps/zlib/contrib/minizip/test/CMakeLists.txt +176 -0
  158. package/deps/zlib/contrib/minizip/test/add_subdirectory_exclude_test.cmake.in +29 -0
  159. package/deps/zlib/contrib/minizip/test/add_subdirectory_test.cmake.in +28 -0
  160. package/deps/zlib/contrib/minizip/test/find_package_no_components_test.cmake.in +26 -0
  161. package/deps/zlib/contrib/minizip/test/find_package_test.cmake.in +26 -0
  162. package/deps/zlib/contrib/minizip/test/find_package_wrong_components_test.cmake.in +26 -0
  163. package/deps/zlib/contrib/minizip/test/test_helper.cm +32 -0
  164. package/deps/zlib/contrib/minizip/unzip.c +1984 -0
  165. package/deps/zlib/contrib/minizip/unzip.h +442 -0
  166. package/deps/zlib/contrib/minizip/zip.c +2246 -0
  167. package/deps/zlib/contrib/minizip/zip.h +371 -0
  168. package/deps/zlib/contrib/nuget/nuget.csproj +45 -0
  169. package/deps/zlib/contrib/nuget/nuget.sln +22 -0
  170. package/deps/zlib/contrib/pascal/example.pas +599 -0
  171. package/deps/zlib/contrib/pascal/readme.txt +76 -0
  172. package/deps/zlib/contrib/pascal/zlibd32.mak +99 -0
  173. package/deps/zlib/contrib/pascal/zlibpas.pas +276 -0
  174. package/deps/zlib/contrib/puff/CMakeLists.txt +154 -0
  175. package/deps/zlib/contrib/puff/Makefile +42 -0
  176. package/deps/zlib/contrib/puff/README +63 -0
  177. package/deps/zlib/contrib/puff/bin-writer.c +26 -0
  178. package/deps/zlib/contrib/puff/puff.c +840 -0
  179. package/deps/zlib/contrib/puff/puff.h +35 -0
  180. package/deps/zlib/contrib/puff/puffConfig.cmake.in +18 -0
  181. package/deps/zlib/contrib/puff/pufftest.c +168 -0
  182. package/deps/zlib/contrib/puff/test/CMakeLists.txt +262 -0
  183. package/deps/zlib/contrib/puff/test/add_subdirectory_exclude_test.cmake.in +26 -0
  184. package/deps/zlib/contrib/puff/test/add_subdirectory_test.cmake.in +25 -0
  185. package/deps/zlib/contrib/puff/test/find_package_no_components_test.cmake.in +24 -0
  186. package/deps/zlib/contrib/puff/test/find_package_test.cmake.in +24 -0
  187. package/deps/zlib/contrib/puff/test/find_package_wrong_components_test.cmake.in +24 -0
  188. package/deps/zlib/contrib/puff/test/tester-cov.cmake +58 -0
  189. package/deps/zlib/contrib/puff/test/tester.cmake +16 -0
  190. package/deps/zlib/contrib/puff/zeros.raw +0 -0
  191. package/deps/zlib/contrib/testzlib/CMakeLists.txt +44 -0
  192. package/deps/zlib/contrib/testzlib/testzlib.c +275 -0
  193. package/deps/zlib/contrib/testzlib/testzlib.txt +10 -0
  194. package/deps/zlib/contrib/vstudio/readme.txt +22 -0
  195. package/deps/zlib/contrib/zlib1-dll/CMakeLists.txt +196 -0
  196. package/deps/zlib/contrib/zlib1-dll/readme.txt +21 -0
  197. package/deps/zlib/crc32.c +983 -0
  198. package/deps/zlib/crc32.h +9446 -0
  199. package/deps/zlib/deflate.c +2185 -0
  200. package/deps/zlib/deflate.h +383 -0
  201. package/deps/zlib/doc/algorithm.txt +209 -0
  202. package/deps/zlib/doc/crc-doc.1.0.pdf +0 -0
  203. package/deps/zlib/doc/rfc1950.txt +619 -0
  204. package/deps/zlib/doc/rfc1951.txt +955 -0
  205. package/deps/zlib/doc/rfc1952.txt +675 -0
  206. package/deps/zlib/doc/txtvsbin.txt +107 -0
  207. package/deps/zlib/examples/README.examples +54 -0
  208. package/deps/zlib/examples/enough.c +597 -0
  209. package/deps/zlib/examples/fitblk.c +233 -0
  210. package/deps/zlib/examples/gun.c +702 -0
  211. package/deps/zlib/examples/gzappend.c +504 -0
  212. package/deps/zlib/examples/gzjoin.c +449 -0
  213. package/deps/zlib/examples/gzlog.c +1061 -0
  214. package/deps/zlib/examples/gzlog.h +91 -0
  215. package/deps/zlib/examples/gznorm.c +474 -0
  216. package/deps/zlib/examples/zlib_how.html +550 -0
  217. package/deps/zlib/examples/zpipe.c +206 -0
  218. package/deps/zlib/examples/zran.c +546 -0
  219. package/deps/zlib/examples/zran.h +53 -0
  220. package/deps/zlib/gzclose.c +23 -0
  221. package/deps/zlib/gzguts.h +216 -0
  222. package/deps/zlib/gzlib.c +609 -0
  223. package/deps/zlib/gzread.c +668 -0
  224. package/deps/zlib/gzwrite.c +700 -0
  225. package/deps/zlib/infback.c +581 -0
  226. package/deps/zlib/inffast.c +321 -0
  227. package/deps/zlib/inffast.h +11 -0
  228. package/deps/zlib/inffixed.h +94 -0
  229. package/deps/zlib/inflate.c +1413 -0
  230. package/deps/zlib/inflate.h +126 -0
  231. package/deps/zlib/inftrees.c +424 -0
  232. package/deps/zlib/inftrees.h +64 -0
  233. package/deps/zlib/make_vms.com +867 -0
  234. package/deps/zlib/msdos/Makefile.bor +115 -0
  235. package/deps/zlib/msdos/Makefile.dj2 +104 -0
  236. package/deps/zlib/msdos/Makefile.emx +69 -0
  237. package/deps/zlib/msdos/Makefile.msc +112 -0
  238. package/deps/zlib/msdos/Makefile.tc +100 -0
  239. package/deps/zlib/os400/README400 +48 -0
  240. package/deps/zlib/os400/bndsrc +144 -0
  241. package/deps/zlib/os400/make.sh +383 -0
  242. package/deps/zlib/os400/zlibfixed.rpgle +578 -0
  243. package/deps/zlib/os400/zlibfree.rpgle +634 -0
  244. package/deps/zlib/qnx/package.qpg +141 -0
  245. package/deps/zlib/test/CMakeLists.txt +318 -0
  246. package/deps/zlib/test/add_subdirectory_exclude_test.cmake.in +29 -0
  247. package/deps/zlib/test/add_subdirectory_test.cmake.in +28 -0
  248. package/deps/zlib/test/example.c +552 -0
  249. package/deps/zlib/test/find_package_no_components_test.cmake.in +27 -0
  250. package/deps/zlib/test/find_package_test.cmake.in +27 -0
  251. package/deps/zlib/test/find_package_wrong_components_test.cmake.in +27 -0
  252. package/deps/zlib/test/infcover.c +672 -0
  253. package/deps/zlib/test/minigzip.c +592 -0
  254. package/deps/zlib/treebuild.xml +116 -0
  255. package/deps/zlib/trees.c +1119 -0
  256. package/deps/zlib/trees.h +128 -0
  257. package/deps/zlib/uncompr.c +101 -0
  258. package/deps/zlib/watcom/watcom_f.mak +43 -0
  259. package/deps/zlib/watcom/watcom_l.mak +43 -0
  260. package/deps/zlib/win32/DLL_FAQ.txt +381 -0
  261. package/deps/zlib/win32/Makefile.bor +109 -0
  262. package/deps/zlib/win32/Makefile.gcc +177 -0
  263. package/deps/zlib/win32/Makefile.msc +159 -0
  264. package/deps/zlib/win32/README-WIN32.txt +103 -0
  265. package/deps/zlib/win32/VisualC.txt +3 -0
  266. package/deps/zlib/win32/zlib.def +104 -0
  267. package/deps/zlib/win32/zlib1.rc +37 -0
  268. package/deps/zlib/zconf.h.in +551 -0
  269. package/deps/zlib/zlib.3 +149 -0
  270. package/deps/zlib/zlib.3.pdf +0 -0
  271. package/deps/zlib/zlib.h +2057 -0
  272. package/deps/zlib/zlib.map +116 -0
  273. package/deps/zlib/zlib.pc.cmakein +14 -0
  274. package/deps/zlib/zlib.pc.in +14 -0
  275. package/deps/zlib/zlibConfig.cmake.in +18 -0
  276. package/deps/zlib/zutil.c +313 -0
  277. package/deps/zlib/zutil.h +331 -0
  278. package/dist/index.d.ts +266 -0
  279. package/dist/index.js +1146 -0
  280. package/dist/libwz.js +5632 -0
  281. package/dist/libwz.wasm +0 -0
  282. package/include/wz/CRC32.h +182 -0
  283. package/include/wz/PngUtility.h +72 -0
  284. package/include/wz/PortalType.h +124 -0
  285. package/include/wz/Properties/WzBinaryProperty.h +70 -0
  286. package/include/wz/Properties/WzCanvasProperty.h +55 -0
  287. package/include/wz/Properties/WzConvexProperty.h +34 -0
  288. package/include/wz/Properties/WzDoubleProperty.h +32 -0
  289. package/include/wz/Properties/WzFloatProperty.h +30 -0
  290. package/include/wz/Properties/WzIntProperty.h +30 -0
  291. package/include/wz/Properties/WzLongProperty.h +30 -0
  292. package/include/wz/Properties/WzLuaProperty.h +31 -0
  293. package/include/wz/Properties/WzNullProperty.h +15 -0
  294. package/include/wz/Properties/WzPngProperty.h +53 -0
  295. package/include/wz/Properties/WzRawDataProperty.h +46 -0
  296. package/include/wz/Properties/WzShortProperty.h +31 -0
  297. package/include/wz/Properties/WzStringProperty.h +32 -0
  298. package/include/wz/Properties/WzSubProperty.h +35 -0
  299. package/include/wz/Properties/WzUOLProperty.h +44 -0
  300. package/include/wz/Properties/WzVectorProperty.h +40 -0
  301. package/include/wz/Properties/WzVideoProperty.h +43 -0
  302. package/include/wz/Result.h +58 -0
  303. package/include/wz/Util/Defines.h +16 -0
  304. package/include/wz/Util/ListFileParser.h +20 -0
  305. package/include/wz/Util/WzBinaryReader.h +95 -0
  306. package/include/wz/Util/WzBinaryWriter.h +72 -0
  307. package/include/wz/Util/WzBlobDataSource.h +30 -0
  308. package/include/wz/Util/WzDataSource.h +49 -0
  309. package/include/wz/Util/WzKeyGenerator.h +28 -0
  310. package/include/wz/Util/WzMutableKey.h +39 -0
  311. package/include/wz/Util/WzPath.h +37 -0
  312. package/include/wz/Util/WzStream.h +86 -0
  313. package/include/wz/Util/WzTool.h +42 -0
  314. package/include/wz/WzAESConstant.h +17 -0
  315. package/include/wz/WzDirectory.h +97 -0
  316. package/include/wz/WzEnums.h +76 -0
  317. package/include/wz/WzFile.h +99 -0
  318. package/include/wz/WzHeader.h +47 -0
  319. package/include/wz/WzImage.h +97 -0
  320. package/include/wz/WzImageProperty.h +92 -0
  321. package/include/wz/WzObject.h +55 -0
  322. package/include/wz/WzPropertyCollection.h +115 -0
  323. package/include/wz/wz.h +41 -0
  324. package/include/wz/wz_api.h +432 -0
  325. package/package.json +93 -0
  326. package/src/PngUtility.cpp +328 -0
  327. package/src/Properties/WzBinaryProperty.cpp +183 -0
  328. package/src/Properties/WzCanvasProperty.cpp +262 -0
  329. package/src/Properties/WzConvexProperty.cpp +159 -0
  330. package/src/Properties/WzDoubleProperty.cpp +12 -0
  331. package/src/Properties/WzFloatProperty.cpp +17 -0
  332. package/src/Properties/WzIntProperty.cpp +12 -0
  333. package/src/Properties/WzLongProperty.cpp +12 -0
  334. package/src/Properties/WzLuaProperty.cpp +37 -0
  335. package/src/Properties/WzNullProperty.cpp +11 -0
  336. package/src/Properties/WzPngProperty.cpp +637 -0
  337. package/src/Properties/WzRawDataProperty.cpp +116 -0
  338. package/src/Properties/WzShortProperty.cpp +12 -0
  339. package/src/Properties/WzStringProperty.cpp +44 -0
  340. package/src/Properties/WzSubProperty.cpp +129 -0
  341. package/src/Properties/WzUOLProperty.cpp +136 -0
  342. package/src/Properties/WzVectorProperty.cpp +22 -0
  343. package/src/Properties/WzVideoProperty.cpp +115 -0
  344. package/src/Util/ListFileParser.cpp +48 -0
  345. package/src/Util/WzBinaryReader.cpp +368 -0
  346. package/src/Util/WzBinaryWriter.cpp +305 -0
  347. package/src/Util/WzBlobDataSource.cpp +47 -0
  348. package/src/Util/WzDataSource.cpp +61 -0
  349. package/src/Util/WzKeyGenerator.cpp +43 -0
  350. package/src/Util/WzMutableKey.cpp +59 -0
  351. package/src/Util/WzStream.cpp +196 -0
  352. package/src/Util/WzTool.cpp +266 -0
  353. package/src/WzAESConstant.cpp +12 -0
  354. package/src/WzDirectory.cpp +669 -0
  355. package/src/WzEnums.cpp +20 -0
  356. package/src/WzFile.cpp +450 -0
  357. package/src/WzImage.cpp +350 -0
  358. package/src/WzImageProperty.cpp +469 -0
  359. package/src/WzObject.cpp +174 -0
  360. package/src/WzPropertyCollection.cpp +84 -0
  361. package/src/capi/wz_api.cpp +1996 -0
  362. package/src/node/binding.cpp +1776 -0
@@ -0,0 +1,387 @@
1
+ cmake_minimum_required(VERSION 3.12...3.31)
2
+
3
+ project(
4
+ minizip
5
+ VERSION 1.0.0
6
+ LANGUAGES C
7
+ DESCRIPTION "A library for creating zipfiles based in zlib"
8
+ HOMEPAGE_URL "https://www.winimage.com/zLibDll/minizip.html")
9
+
10
+ if(CMAKE_SIZEOF_VOID_P LESS 8 AND NOT MINGW)
11
+ message(WARNING "libminizip needs 64bit - stopping here")
12
+ return()
13
+ endif(CMAKE_SIZEOF_VOID_P LESS 8 AND NOT MINGW)
14
+
15
+ # ============================================================================
16
+ # CPack
17
+ # ============================================================================
18
+ set(CPACK_PACKAGE_VENDOR "zlib-Project")
19
+ set(CPACK_PACKAGE_DESCRIPTION_FILE ${minizip_SOURCE_DIR}/MiniZip64_info.txt)
20
+ set(CPACK_RESOURCE_FILE_LICENSE ${minizip_SOURCE_DIR}/../../LICENSE)
21
+ set(CPACK_RESOURCE_FILE_README ${minizip_SOURCE_DIR}/MiniZip64_info.txt)
22
+
23
+ # ============================================================================
24
+ # set options if build from zlib
25
+ # ============================================================================
26
+ if(ZLIB_BUILD_MINIZIP)
27
+ set(MINIZIP_BUILD_SHARED ${ZLIB_MINIZIP_BUILD_SHARED} CACHE BOOL "")
28
+ set(MINIZIP_BUILD_STATIC ${ZLIB_MINIZIP_BUILD_STATIC} CACHE BOOL "")
29
+ set(MINIZIP_BUILD_TESTING ${ZLIB_MINIZIP_INSTALL} CACHE BOOL "")
30
+ set(MINIZIP_INSTALL ${ZLIB_MINIZIP_INSTALL} CACHE BOOL "")
31
+ endif(ZLIB_BUILD_MINIZIP)
32
+
33
+ # ============================================================================
34
+ # configuration
35
+ # ============================================================================
36
+ option(MINIZIP_BUILD_SHARED "Enable building minizip shared library" ON)
37
+ option(MINIZIP_BUILD_STATIC "Enable building minizip static library" ON)
38
+ option(MINIZIP_BUILD_TESTING "Enable testing of minizip" ON)
39
+ option(MINIZIP_ENABLE_BZIP2 "Build minizip with bzip2 support" OFF)
40
+ option(MINIZIP_INSTALL "Enable installation of minizip" ON)
41
+
42
+ include(CheckCSourceCompiles)
43
+ include(CheckFunctionExists)
44
+ include(CheckIncludeFile)
45
+ include(CMakePackageConfigHelpers)
46
+ include(CheckTypeSize)
47
+ include(GNUInstallDirs)
48
+
49
+ if(NOT CPACK_INCLUDED)
50
+ include(CPack)
51
+ endif(NOT CPACK_INCLUDED)
52
+
53
+ if(NOT DEFINED ZLIB_BUILD_MINIZIP)
54
+ if(MINIZIP_BUILD_SHARED)
55
+ list(APPEND REQUIRED_COMPONENTS "shared")
56
+ endif(MINIZIP_BUILD_SHARED)
57
+
58
+ if(MINIZIP_BUILD_STATIC)
59
+ list(APPEND REQUIRED_COMPONENTS "static")
60
+ endif(MINIZIP_BUILD_STATIC)
61
+
62
+ find_package(ZLIB REQUIRED COMPONENTS ${REQUIRED_COMPONENTS} CONFIG)
63
+ endif(NOT DEFINED ZLIB_BUILD_MINIZIP)
64
+
65
+ if(MINIZIP_ENABLE_BZIP2)
66
+ find_package(BZip2 REQUIRED)
67
+ endif(MINIZIP_ENABLE_BZIP2)
68
+
69
+ #
70
+ # Check for fopen64
71
+ #
72
+ check_function_exists(fopen64 HAVE_FOPEN64)
73
+
74
+ #
75
+ # Check for fseeko
76
+ #
77
+ check_function_exists(fseeko HAVE_FSEEKO)
78
+
79
+ #
80
+ # Check for unistd.h
81
+ #
82
+ check_include_file(unistd.h HAVE_UNISTD_H)
83
+
84
+ #
85
+ # Check to see if we have large file support
86
+ #
87
+ set(CMAKE_REQUIRED_DEFINITIONS -D_LARGEFILE64_SOURCE=1)
88
+ check_type_size(off64_t OFF64_T)
89
+ unset(CMAKE_REQUIRED_DEFINITIONS) # clear variable
90
+
91
+ #
92
+ # Check visibility attribute is supported
93
+ #
94
+ if(MSVC)
95
+ set(CMAKE_REQUIRED_FLAGS "-WX")
96
+ else(MSVC)
97
+ set(CMAKE_REQUIRED_FLAGS "-WError")
98
+ endif(MSVC)
99
+
100
+ check_c_source_compiles(
101
+ "
102
+ #include <stdlib.h>
103
+ static void f(void) __attribute__ ((visibility(\"hidden\")));
104
+ int main(void) {return 0;}
105
+ "
106
+ HAVE___ATTR__VIS_HIDDEN)
107
+
108
+ unset(CMAKE_REQUIRED_FLAGS)
109
+
110
+ set(LIBMINIZIP_SRCS ioapi.c mztools.c unzip.c zip.c)
111
+
112
+ set(LIBMINIZIP_HDRS crypt.h ints.h ioapi.h mztools.h unzip.h zip.h)
113
+
114
+ set(MINIZIP_SRCS ioapi.c $<$<BOOL:${WIN32}>:iowin32.c> minizip.c zip.c)
115
+
116
+ set(MINIZIP_HDRS crypt.h ints.h ioapi.h $<$<BOOL:${WIN32}>:iowin32.h> skipset.h
117
+ zip.h)
118
+
119
+ set(MINIUNZIP_SRCS ioapi.c $<$<BOOL:${WIN32}>:iowin32.c> miniunz.c unzip.c
120
+ zip.c)
121
+
122
+ set(MINIUNZIP_HDRS
123
+ crypt.h
124
+ ints.h
125
+ ioapi.h
126
+ $<$<BOOL:${WIN32}>:iowin32.h>
127
+ skipset.h
128
+ unzip.h
129
+ zip.h)
130
+
131
+ if(WIN32 OR CYGWIN)
132
+ set(minizip_static_suffix "s")
133
+ set(CMAKE_DEBUG_POSTFIX "d")
134
+ endif(WIN32 OR CYGWIN)
135
+
136
+ if(MINIZIP_BUILD_SHARED)
137
+ set(CMAKE_WINDOWS_EXPORT_ALL_SYMBOLS TRUE)
138
+ add_library(libminizip SHARED ${LIBMINIZIP_SRCS} ${LIBMINIZIP_HDRS})
139
+ add_library(MINIZIP::minizip ALIAS libminizip)
140
+ target_include_directories(
141
+ libminizip PUBLIC $<BUILD_INTERFACE:${minizip_SOURCE_DIR}>
142
+ $<INSTALL_INTERFACE:${CMAKE_INSTALL_INCLUDEDIR}>)
143
+ target_compile_definitions(
144
+ libminizip
145
+ PRIVATE $<$<BOOL:${MSVC}>:_CRT_SECURE_NO_WARNINGS>
146
+ $<$<BOOL:${HAVE___ATTR__VIS_HIDDEN}>:HAVE_HIDDEN>
147
+ $<$<BOOL:${HAVE_UNISTD_H}>:HAVE_UNISTD_H=1>
148
+ PUBLIC $<$<BOOL:${HAVE_OFF64_T}>:_LARGEFILE64_SOURCE=1>
149
+ $<$<BOOL:${BZIP2_FOUND}>:HAVE_BZIP2=1>
150
+ $<$<BOOL:NOT:${HAVE_FOPEN64}>:USE_FILE32API=1>)
151
+
152
+ if(NOT CYGWIN)
153
+ set_target_properties(libminizip PROPERTIES SOVERSION
154
+ ${minizip_VERSION_MAJOR})
155
+ endif(NOT CYGWIN)
156
+
157
+ set_target_properties(
158
+ libminizip
159
+ PROPERTIES EXPORT_NAME minizip
160
+ OUTPUT_NAME minizip
161
+ VERSION ${minizip_VERSION}
162
+ SOVERSION ${minizip_VERSION_MAJOR})
163
+
164
+ target_link_libraries(libminizip
165
+ PUBLIC ZLIB::ZLIB
166
+ $<$<BOOL:${BZIP2_FOUND}>:BZip2::BZip2>)
167
+
168
+ add_executable(minizip ${MINIZIP_SRCS} ${MINIZIP_HDRS})
169
+ set_target_properties(minizip PROPERTIES EXPORT_NAME minizip_executable)
170
+ target_compile_definitions(
171
+ minizip PRIVATE $<$<BOOL:${MSVC}>:_CRT_SECURE_NO_WARNINGS>)
172
+ target_link_libraries(minizip PRIVATE MINIZIP::minizip)
173
+ add_executable(miniunzip ${MINIUNZIP_SRCS} ${MINIUNZIP_HDRS})
174
+ set_target_properties(miniunzip PROPERTIES EXPORT_NAME miniunzip_executable)
175
+ target_compile_definitions(
176
+ miniunzip PRIVATE $<$<BOOL:${MSVC}>:_CRT_SECURE_NO_WARNINGS>)
177
+ target_link_libraries(miniunzip PRIVATE MINIZIP::minizip)
178
+ endif(MINIZIP_BUILD_SHARED)
179
+
180
+ if(MINIZIP_BUILD_STATIC)
181
+ add_library(libminizipstatic STATIC ${LIBMINIZIP_SRCS} ${LIBMINIZIP_HDRS})
182
+ add_library(MINIZIP::minizipstatic ALIAS libminizipstatic)
183
+ target_include_directories(
184
+ libminizipstatic
185
+ PUBLIC $<BUILD_INTERFACE:${minizip_SOURCE_DIR}>
186
+ $<INSTALL_INTERFACE:${CMAKE_INSTALL_INCLUDEDIR}>)
187
+ target_compile_definitions(
188
+ libminizipstatic
189
+ PRIVATE $<$<BOOL:${MSVC}>:_CRT_SECURE_NO_WARNINGS>
190
+ $<$<BOOL:${HAVE___ATTR__VIS_HIDDEN}>:HAVE_HIDDEN>
191
+ $<$<BOOL:${HAVE_UNISTD_H}>:HAVE_UNISTD_H=1>
192
+ PUBLIC $<$<BOOL:${HAVE_OFF64_T}>:_LARGEFILE64_SOURCE=1>
193
+ $<$<BOOL:${BZIP2_FOUND}>:HAVE_BZIP2=1>
194
+ $<$<BOOL:NOT:${HAVE_FOPEN64}>:USE_FILE32API=1>)
195
+ set_target_properties(
196
+ libminizipstatic PROPERTIES EXPORT_NAME minizipstatic
197
+ OUTPUT_NAME minizip${minizip_static_suffix})
198
+
199
+ if(CYGWIN)
200
+ set_target_properties(libminizipstatic PROPERTIES SUFFIX ".dll.a")
201
+ endif(CYGWIN)
202
+
203
+ target_link_libraries(libminizipstatic PUBLIC ZLIB::ZLIBSTATIC
204
+ $<$<BOOL:${BZIP2_FOUND}>:BZip2::BZip2>)
205
+
206
+ add_executable(minizipstatic ${MINIZIP_SRCS} ${MINIZIP_HDRS})
207
+ set_target_properties(minizipstatic PROPERTIES EXPORT_NAME
208
+ minizip_static_executable)
209
+ target_compile_definitions(
210
+ minizipstatic PRIVATE $<$<BOOL:${MSVC}>:_CRT_SECURE_NO_WARNINGS>)
211
+ target_link_libraries(minizipstatic PRIVATE MINIZIP::minizipstatic)
212
+ add_executable(miniunzipstatic ${MINIUNZIP_SRCS} ${MINIUNZIP_HDRS})
213
+ set_target_properties(miniunzipstatic
214
+ PROPERTIES EXPORT_NAME miniunzip_static_executable)
215
+ target_compile_definitions(
216
+ miniunzipstatic PRIVATE $<$<BOOL:${MSVC}>:_CRT_SECURE_NO_WARNINGS>)
217
+ target_link_libraries(miniunzipstatic PRIVATE MINIZIP::minizipstatic)
218
+ endif(MINIZIP_BUILD_STATIC)
219
+
220
+ if(MINIZIP_INSTALL)
221
+ if(MINIZIP_BUILD_SHARED)
222
+ install(
223
+ TARGETS libminizip minizip miniunzip
224
+ COMPONENT Runtime
225
+ EXPORT minizipSharedExport
226
+ RUNTIME DESTINATION "${CMAKE_INSTALL_BINDIR}"
227
+ ARCHIVE DESTINATION "${CMAKE_INSTALL_LIBDIR}"
228
+ LIBRARY DESTINATION "${CMAKE_INSTALL_LIBDIR}")
229
+ install(
230
+ EXPORT minizipSharedExport
231
+ FILE minizip-shared.cmake
232
+ NAMESPACE MINIZIP::
233
+ DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake/minizip)
234
+
235
+ if(MSVC)
236
+ install(
237
+ FILES $<TARGET_PDB_FILE:libminizip>
238
+ COMPONENT Runtime
239
+ DESTINATION ${CMAKE_INSTALL_BINDIR}
240
+ CONFIGURATIONS Debug OR RelWithDebInfo
241
+ OPTIONAL)
242
+ endif(MSVC)
243
+ endif(MINIZIP_BUILD_SHARED)
244
+
245
+ if(MINIZIP_BUILD_STATIC)
246
+ install(
247
+ TARGETS libminizipstatic
248
+ COMPONENT Development
249
+ TARGETS minizipstatic miniunzipstatic
250
+ COMPONENT Runtime
251
+ EXPORT minizipStaticExport
252
+ RUNTIME DESTINATION "${CMAKE_INSTALL_BINDIR}"
253
+ ARCHIVE DESTINATION "${CMAKE_INSTALL_LIBDIR}"
254
+ LIBRARY DESTINATION "${CMAKE_INSTALL_LIBDIR}")
255
+ install(
256
+ EXPORT minizipStaticExport
257
+ FILE minizip-static.cmake
258
+ NAMESPACE MINIZIP::
259
+ DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake/minizip)
260
+ endif(MINIZIP_BUILD_STATIC)
261
+
262
+ configure_package_config_file(
263
+ ${minizip_SOURCE_DIR}/minizipConfig.cmake.in
264
+ ${minizip_BINARY_DIR}/minizipConfig.cmake
265
+ INSTALL_DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake/minizip)
266
+ write_basic_package_version_file(
267
+ "${minizip_BINARY_DIR}/minizipConfigVersion.cmake"
268
+ VERSION "${minizip_VERSION}"
269
+ COMPATIBILITY AnyNewerVersion)
270
+ install(FILES ${minizip_BINARY_DIR}/minizipConfig.cmake
271
+ ${minizip_BINARY_DIR}/minizipConfigVersion.cmake
272
+ DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake/minizip)
273
+ install(
274
+ FILES ${LIBMINIZIP_HDRS}
275
+ COMPONENT Development
276
+ DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}")
277
+ endif(MINIZIP_INSTALL)
278
+
279
+ if(MINIZIP_BUILD_TESTING)
280
+ enable_testing()
281
+
282
+ if(MINIZIP_BUILD_SHARED AND NOT ${CMAKE_SHARED_LIBRARY_SUFFIX} STREQUAL
283
+ ".dll")
284
+ add_test(
285
+ NAME minizip_prepare_shared_zip
286
+ COMMAND ${CMAKE_COMMAND} -DCREATE_SHARED=ON -P
287
+ ${CMAKE_CURRENT_SOURCE_DIR}/test/test_helper.cm
288
+ WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/test)
289
+ add_test(
290
+ NAME minizip_zipping_test_file_shared
291
+ COMMAND minizip test_file_shared.zip test_file_shared.txt
292
+ WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/test)
293
+ add_test(
294
+ NAME minizip_prepare_shared_unzip
295
+ COMMAND ${CMAKE_COMMAND} -DMOVE_SHARED=ON -P
296
+ ${CMAKE_CURRENT_SOURCE_DIR}/test/test_helper.cm
297
+ WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/test)
298
+ add_test(
299
+ NAME minizip_miniunzipping_test_file_shared.zip
300
+ COMMAND miniunzip test_file_shared.zip
301
+ WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/test)
302
+ add_test(
303
+ NAME minizip_compare_shared
304
+ COMMAND ${CMAKE_COMMAND} -E compare_files test_file_shared.txt
305
+ test_file_shared.orig
306
+ WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/test)
307
+ add_test(
308
+ NAME minizip_clean_shared_zip
309
+ COMMAND ${CMAKE_COMMAND} -DDELETE_SHARED=ON -P
310
+ ${CMAKE_CURRENT_SOURCE_DIR}/test/test_helper.cm
311
+ WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/test)
312
+ set_tests_properties(minizip_prepare_shared_zip
313
+ PROPERTIES FIXTURES_SETUP prepare_shared)
314
+ set_tests_properties(
315
+ minizip_zipping_test_file_shared
316
+ PROPERTIES FIXTURES_REQUIRED prepare_shared FIXTURES_SETUP
317
+ zip_shared)
318
+ set_tests_properties(
319
+ minizip_prepare_shared_unzip
320
+ PROPERTIES FIXTURES_REQUIRED zip_shared FIXTURES_SETUP
321
+ prepare_unzip_shared)
322
+ set_tests_properties(
323
+ minizip_miniunzipping_test_file_shared.zip
324
+ PROPERTIES FIXTURES_REQUIRED prepare_unzip_shared FIXTURES_SETUP
325
+ prepare_compare_shared)
326
+ set_tests_properties(
327
+ minizip_compare_shared
328
+ PROPERTIES FIXTURES_REQUIRED prepare_compare_shared FIXTURES_SETUP
329
+ compared_shared)
330
+ set_tests_properties(minizip_clean_shared_zip
331
+ PROPERTIES FIXTURES_CLEANUP compared_shared)
332
+ endif(MINIZIP_BUILD_SHARED AND NOT ${CMAKE_SHARED_LIBRARY_SUFFIX} STREQUAL
333
+ ".dll")
334
+
335
+ if(MINIZIP_BUILD_STATIC)
336
+ add_test(
337
+ NAME minizip_prepare_static_zip
338
+ COMMAND ${CMAKE_COMMAND} -DCREATE_STATIC=ON -P
339
+ ${CMAKE_CURRENT_SOURCE_DIR}/test/test_helper.cm
340
+ WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/test)
341
+ add_test(
342
+ NAME minizip_zipping_test_file_static
343
+ COMMAND minizipstatic test_file_static.zip test_file_static.txt
344
+ WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/test)
345
+ add_test(
346
+ NAME minizip_prepare_static_unzip
347
+ COMMAND ${CMAKE_COMMAND} -DMOVE_STATIC=ON -P
348
+ ${CMAKE_CURRENT_SOURCE_DIR}/test/test_helper.cm
349
+ WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/test)
350
+ add_test(
351
+ NAME minizip_miniunzipping_test_file_static.zip
352
+ COMMAND miniunzipstatic test_file_static.zip
353
+ WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/test)
354
+ add_test(
355
+ NAME minizip_compare_static
356
+ COMMAND ${CMAKE_COMMAND} -E compare_files test_file_static.txt
357
+ test_file_static.orig
358
+ WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/test)
359
+ add_test(
360
+ NAME minizip_clean_static_zip
361
+ COMMAND ${CMAKE_COMMAND} -DDELETE_STATIC=ON -P
362
+ ${CMAKE_CURRENT_SOURCE_DIR}/test/test_helper.cm
363
+ WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/test)
364
+ set_tests_properties(minizip_prepare_static_zip
365
+ PROPERTIES FIXTURES_SETUP prepare_static)
366
+ set_tests_properties(
367
+ minizip_zipping_test_file_static
368
+ PROPERTIES FIXTURES_REQUIRED prepare_static FIXTURES_SETUP
369
+ zip_static)
370
+ set_tests_properties(
371
+ minizip_prepare_static_unzip
372
+ PROPERTIES FIXTURES_REQUIRED zip_static FIXTURES_SETUP
373
+ prepare_unzip_static)
374
+ set_tests_properties(
375
+ minizip_miniunzipping_test_file_static.zip
376
+ PROPERTIES FIXTURES_REQUIRED prepare_unzip_static FIXTURES_SETUP
377
+ prepare_compare_static)
378
+ set_tests_properties(
379
+ minizip_compare_static
380
+ PROPERTIES FIXTURES_REQUIRED prepare_compare_static FIXTURES_SETUP
381
+ compared_static)
382
+ set_tests_properties(minizip_clean_static_zip
383
+ PROPERTIES FIXTURES_CLEANUP compared_static)
384
+ endif(MINIZIP_BUILD_STATIC)
385
+
386
+ add_subdirectory(test)
387
+ endif(MINIZIP_BUILD_TESTING)
@@ -0,0 +1,58 @@
1
+ This is version 2009-Jan-02 of the Info-ZIP license. The definitive version of
2
+ this document should be available at ftp://ftp.info-
3
+ zip.org/pub/infozip/license.html indefinitely and a copy at http://www.info-
4
+ zip.org/pub/infozip/license.html.
5
+
6
+ Copyright (c) 1990-2009 Info-ZIP. All rights reserved.
7
+
8
+ For the purposes of this copyright and license, "Info-ZIP" is defined as the
9
+ following set of individuals:
10
+
11
+ Mark Adler, John Bush, Karl Davis, Harald Denker, Jean-Michel Dubois, Jean-
12
+ loup Gailly, Hunter Goatley, Ed Gordon, Ian Gorman, Chris Herborth, Dirk
13
+ Haase, Greg Hartwig, Robert Heath, Jonathan Hudson, Paul Kienitz, David
14
+ Kirschbaum, Johnny Lee, Onno van der Linden, Igor Mandrichenko, Steve P.
15
+ Miller, Sergio Monesi, Keith Owens, George Petrov, Greg Roelofs, Kai Uwe
16
+ Rommel, Steve Salisbury, Dave Smith, Steven M. Schweda, Christian Spieler,
17
+ Cosmin Truta, Antoine Verheijen, Paul von Behren, Rich Wales, Mike White.
18
+
19
+ This software is provided "as is," without warranty of any kind, express or
20
+ implied. In no event shall Info-ZIP or its contributors be held liable for any
21
+ direct, indirect, incidental, special or consequential damages arising out of
22
+ the use of or inability to use this software.
23
+
24
+ Permission is granted to anyone to use this software for any purpose, including
25
+ commercial applications, and to alter it and redistribute it freely, subject to
26
+ the above disclaimer and the following restrictions:
27
+
28
+ Redistributions of source code (in whole or in part) must retain the above
29
+ copyright notice, definition, disclaimer, and this list of conditions.
30
+
31
+ Redistributions in binary form (compiled executables and libraries) must
32
+ reproduce the above copyright notice, definition, disclaimer, and this list
33
+ of conditions in documentation and/or other materials provided with the
34
+ distribution. Additional documentation is not needed for executables where a
35
+ command line license option provides these and a note regarding this option
36
+ is in the executable's startup banner. The sole exception to this condition
37
+ is redistribution of a standard UnZipSFX binary (including SFXWiz) as part
38
+ of a self-extracting archive; that is permitted without inclusion of this
39
+ license, as long as the normal SFX banner has not been removed from the
40
+ binary or disabled.
41
+
42
+ Altered versions--including, but not limited to, ports to new operating
43
+ systems, existing ports with new graphical interfaces, versions with
44
+ modified or added functionality, and dynamic, shared, or static library
45
+ versions not from Info-ZIP--must be plainly marked as such and must not be
46
+ misrepresented as being the original source or, if binaries, compiled from
47
+ the original source. Such altered versions also must not be misrepresented
48
+ as being Info-ZIP releases--including, but not limited to, labeling of the
49
+ altered versions with the names "Info-ZIP" (or any variation thereof,
50
+ including, but not limited to, different capitalizations), "Pocket UnZip,"
51
+ "WiZ" or "MacZip" without the explicit permission of Info-ZIP. Such altered
52
+ versions are further prohibited from misrepresentative use of the Zip-Bugs
53
+ or Info-ZIP e-mail addresses or the Info-ZIP URL(s), such as to imply Info-
54
+ ZIP will provide support for the altered versions.
55
+
56
+ Info-ZIP retains the right to use the names "Info-ZIP," "Zip," "UnZip,"
57
+ "UnZipSFX," "WiZ," "Pocket UnZip," "Pocket Zip," and "MacZip" for its own
58
+ source and binary releases.
@@ -0,0 +1,33 @@
1
+ CPPFLAGS = -I../..
2
+
3
+ UNZ_OBJS = miniunz.o unzip.o ioapi.o ../../libz.a
4
+ ZIP_OBJS = minizip.o zip.o ioapi.o ../../libz.a
5
+
6
+ all: miniunz minizip
7
+
8
+ miniunz.o: miniunz.c unzip.h iowin32.h
9
+ minizip.o: minizip.c zip.h iowin32.h ints.h
10
+ unzip.o: unzip.c unzip.h crypt.h
11
+ zip.o: zip.c zip.h crypt.h skipset.h ints.h
12
+ ioapi.o: ioapi.c ioapi.h ints.h
13
+ iowin32.o: iowin32.c iowin32.h ioapi.h
14
+ mztools.o: mztools.c unzip.h
15
+
16
+ miniunz: $(UNZ_OBJS)
17
+ ${CC} ${LDFLAGS} -o $@ $(UNZ_OBJS)
18
+
19
+ minizip: $(ZIP_OBJS)
20
+ ${CC} ${LDFLAGS} -o $@ $(ZIP_OBJS)
21
+
22
+ test: miniunz minizip
23
+ @rm -f test.*
24
+ @echo hello hello hello > test.txt
25
+ ./minizip test test.txt
26
+ ./miniunz -l test.zip
27
+ @mv test.txt test.old
28
+ ./miniunz test.zip
29
+ @cmp test.txt test.old
30
+ @rm -f test.*
31
+
32
+ clean:
33
+ /bin/rm -f *.o *~ minizip miniunz test.*
@@ -0,0 +1,45 @@
1
+ lib_LTLIBRARIES = libminizip.la
2
+
3
+ if COND_DEMOS
4
+ bin_PROGRAMS = miniunzip minizip
5
+ endif
6
+
7
+ zlib_top_srcdir = $(top_srcdir)/../..
8
+ zlib_top_builddir = $(top_builddir)/../..
9
+
10
+ AM_CPPFLAGS = -I$(zlib_top_srcdir)
11
+ AM_LDFLAGS = -L$(zlib_top_builddir)
12
+
13
+ if WIN32
14
+ iowin32_src = iowin32.c
15
+ iowin32_h = iowin32.h
16
+ endif
17
+
18
+ libminizip_la_SOURCES = \
19
+ ioapi.c \
20
+ mztools.c \
21
+ unzip.c \
22
+ zip.c \
23
+ ${iowin32_src}
24
+
25
+ libminizip_la_LDFLAGS = $(AM_LDFLAGS) -version-info 1:0:0 -lz
26
+
27
+ minizip_includedir = $(includedir)/minizip
28
+ minizip_include_HEADERS = \
29
+ crypt.h \
30
+ ioapi.h \
31
+ mztools.h \
32
+ unzip.h \
33
+ zip.h \
34
+ ${iowin32_h}
35
+
36
+ pkgconfigdir = $(libdir)/pkgconfig
37
+ pkgconfig_DATA = minizip.pc
38
+
39
+ EXTRA_PROGRAMS = miniunzip minizip
40
+
41
+ miniunzip_SOURCES = miniunz.c
42
+ miniunzip_LDADD = libminizip.la
43
+
44
+ minizip_SOURCES = minizip.c
45
+ minizip_LDADD = libminizip.la -lz
@@ -0,0 +1,6 @@
1
+
2
+ MiniZip 1.1 was derived from MiniZip at version 1.01f
3
+
4
+ Change in 1.0 (Okt 2009)
5
+ - **TODO - Add history**
6
+
@@ -0,0 +1,69 @@
1
+ MiniZip - Copyright (c) 1998-2026 - by Gilles Vollant - version 1.1 64 bits from Mathias Svensson
2
+
3
+ Introduction
4
+ ---------------------
5
+ MiniZip 1.1 is built from MiniZip 1.0 by Gilles Vollant ( https://www.winimage.com/zLibDll/minizip.html )
6
+
7
+ When adding ZIP64 support into minizip it would result into risk of breaking compatibility with minizip 1.0.
8
+ All possible work was done for compatibility.
9
+
10
+
11
+ Background
12
+ ---------------------
13
+ When adding ZIP64 support Mathias Svensson found that Even Rouault have added ZIP64
14
+ support for unzip.c into minizip for a open source project called gdal ( https://www.gdal.org/ )
15
+
16
+ That was used as a starting point. And after that ZIP64 support was added to zip.c
17
+ some refactoring and code cleanup was also done.
18
+
19
+
20
+ Changed from MiniZip 1.0 to MiniZip 1.1
21
+ ---------------------------------------
22
+ * Added ZIP64 support for unzip ( by Even Rouault )
23
+ * Added ZIP64 support for zip ( by Mathias Svensson )
24
+ * Reverted some changed that Even Rouault did.
25
+ * Bunch of patches received from Gulles Vollant that he received for MiniZip from various users.
26
+ * Added unzip patch for BZIP Compression method (patch create by Daniel Borca)
27
+ * Added BZIP Compress method for zip
28
+ * Did some refactoring and code cleanup
29
+
30
+
31
+ Credits
32
+
33
+ Gilles Vollant - Original MiniZip author
34
+ Even Rouault - ZIP64 unzip Support
35
+ Daniel Borca - BZip Compression method support in unzip
36
+ Mathias Svensson - ZIP64 zip support
37
+ Mathias Svensson - BZip Compression method support in zip
38
+
39
+ Resource
40
+
41
+ ZIP App Note https://www.pkware.com/documents/casestudies/APPNOTE.TXT
42
+ Zip File specification
43
+
44
+
45
+ Notes.
46
+ * To be able to use BZip compression method in zip64.c or unzip64.c the BZIP2 lib is needed and HAVE_BZIP2 need to be defined.
47
+
48
+ License
49
+ ----------------------------------------------------------
50
+ Condition of use and distribution are the same than zlib :
51
+
52
+ This software is provided 'as-is', without any express or implied
53
+ warranty. In no event will the authors be held liable for any damages
54
+ arising from the use of this software.
55
+
56
+ Permission is granted to anyone to use this software for any purpose,
57
+ including commercial applications, and to alter it and redistribute it
58
+ freely, subject to the following restrictions:
59
+
60
+ 1. The origin of this software must not be misrepresented; you must not
61
+ claim that you wrote the original software. If you use this software
62
+ in a product, an acknowledgment in the product documentation would be
63
+ appreciated but is not required.
64
+ 2. Altered source versions must be plainly marked as such, and must not be
65
+ misrepresented as being the original software.
66
+ 3. This notice may not be removed or altered from any source distribution.
67
+
68
+ ----------------------------------------------------------
69
+
@@ -0,0 +1,32 @@
1
+ # -*- Autoconf -*-
2
+ # Process this file with autoconf to produce a configure script.
3
+
4
+ AC_INIT([minizip], [1.3.2], [bugzilla.redhat.com])
5
+ AC_CONFIG_SRCDIR([minizip.c])
6
+ AM_INIT_AUTOMAKE([foreign])
7
+ LT_INIT
8
+
9
+ AC_MSG_CHECKING([whether to build example programs])
10
+ AC_ARG_ENABLE([demos], AS_HELP_STRING([--enable-demos], [build example programs]))
11
+ AM_CONDITIONAL([COND_DEMOS], [test "$enable_demos" = yes])
12
+ if test "$enable_demos" = yes
13
+ then
14
+ AC_MSG_RESULT([yes])
15
+ else
16
+ AC_MSG_RESULT([no])
17
+ fi
18
+
19
+ case "${host}" in
20
+ *-mingw* | mingw*)
21
+ WIN32="yes"
22
+ ;;
23
+ *)
24
+ ;;
25
+ esac
26
+ AM_CONDITIONAL([WIN32], [test "${WIN32}" = "yes"])
27
+
28
+
29
+ AC_SUBST([HAVE_UNISTD_H], [0])
30
+ AC_CHECK_HEADER([unistd.h], [HAVE_UNISTD_H=1], [])
31
+ AC_CONFIG_FILES([Makefile minizip.pc])
32
+ AC_OUTPUT