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,46 @@
1
+ .\" Hey, EMACS: -*- nroff -*-
2
+ .TH minizip 1 "May 2, 2001"
3
+ .\" Please adjust this date whenever revising the manpage.
4
+ .\"
5
+ .\" Some roff macros, for reference:
6
+ .\" .nh disable hyphenation
7
+ .\" .hy enable hyphenation
8
+ .\" .ad l left justify
9
+ .\" .ad b justify to both left and right margins
10
+ .\" .nf disable filling
11
+ .\" .fi enable filling
12
+ .\" .br insert line break
13
+ .\" .sp <n> insert n+1 empty lines
14
+ .\" for manpage-specific macros, see man(7)
15
+ .SH NAME
16
+ minizip - create ZIP archives
17
+ .SH SYNOPSIS
18
+ .B minizip
19
+ .RI [ -o ]
20
+ zipfile [ " files" ... ]
21
+ .SH DESCRIPTION
22
+ .B minizip
23
+ is a simple tool which allows the creation of compressed file archives
24
+ in the ZIP format used by the MS-DOS utility PKZIP. It was written as
25
+ a demonstration of the
26
+ .IR zlib (3)
27
+ library and therefore lack many of the features of the
28
+ .IR zip (1)
29
+ program.
30
+ .SH OPTIONS
31
+ The first argument supplied is the name of the ZIP archive to create or
32
+ .RI -o
33
+ in which case it is ignored and the second argument treated as the
34
+ name of the ZIP file. If the ZIP file already exists it will be
35
+ overwritten.
36
+ .PP
37
+ Subsequent arguments specify a list of files to place in the ZIP
38
+ archive. If none are specified then an empty archive will be created.
39
+ .SH SEE ALSO
40
+ .BR miniunzip (1),
41
+ .BR zlib (3),
42
+ .BR zip (1).
43
+ .SH AUTHOR
44
+ This program was written by Gilles Vollant. This manual page was
45
+ written by Mark Brown <broonie@sirena.org.uk>.
46
+
@@ -0,0 +1,511 @@
1
+ /*
2
+ minizip.c
3
+ sample part of the MiniZip project - ( https://www.winimage.com/zLibDll/minizip.html )
4
+
5
+ Copyright (C) 1998-2026 Gilles Vollant (minizip) ( https://www.winimage.com/zLibDll/minizip.html )
6
+
7
+ Modifications of Unzip for Zip64
8
+ Copyright (C) 2007-2008 Even Rouault
9
+
10
+ Modifications for Zip64 support on both zip and unzip
11
+ Copyright (C) 2009-2010 Mathias Svensson ( https://result42.com )
12
+ */
13
+
14
+
15
+ #if (!defined(_WIN32)) && (!defined(WIN32)) && (!defined(__APPLE__))
16
+ #ifndef __USE_FILE_OFFSET64
17
+ #define __USE_FILE_OFFSET64
18
+ #endif
19
+ #ifndef __USE_LARGEFILE64
20
+ #define __USE_LARGEFILE64
21
+ #endif
22
+ #ifndef _LARGEFILE64_SOURCE
23
+ #define _LARGEFILE64_SOURCE
24
+ #endif
25
+ #ifndef _FILE_OFFSET_BIT
26
+ #define _FILE_OFFSET_BIT 64
27
+ #endif
28
+ #endif
29
+
30
+ #if defined(__APPLE__) || defined(__HAIKU__) || defined(MINIZIP_FOPEN_NO_64)
31
+ // In darwin and perhaps other BSD variants off_t is a 64 bit value, hence no need for specific 64 bit functions
32
+ #define FOPEN_FUNC(filename, mode) fopen(filename, mode)
33
+ #define FTELLO_FUNC(stream) ftello(stream)
34
+ #define FSEEKO_FUNC(stream, offset, origin) fseeko(stream, offset, origin)
35
+ #else
36
+ #define FOPEN_FUNC(filename, mode) fopen64(filename, mode)
37
+ #define FTELLO_FUNC(stream) ftello64(stream)
38
+ #define FSEEKO_FUNC(stream, offset, origin) fseeko64(stream, offset, origin)
39
+ #endif
40
+
41
+
42
+
43
+ #ifndef _CRT_SECURE_NO_WARNINGS
44
+ # define _CRT_SECURE_NO_WARNINGS
45
+ #endif
46
+ #include <stdio.h>
47
+ #include <stdlib.h>
48
+ #include <string.h>
49
+ #include <time.h>
50
+ #include <errno.h>
51
+ #include <fcntl.h>
52
+
53
+ #ifdef _WIN32
54
+ # include <direct.h>
55
+ # include <io.h>
56
+ #else
57
+ # include <unistd.h>
58
+ # include <utime.h>
59
+ # include <sys/types.h>
60
+ # include <sys/stat.h>
61
+ #endif
62
+
63
+ #include "zip.h"
64
+ #include "ints.h"
65
+
66
+ #ifdef _WIN32
67
+ #define USEWIN32IOAPI
68
+ #include "iowin32.h"
69
+ #endif
70
+
71
+
72
+
73
+ #define WRITEBUFFERSIZE (16384)
74
+ #define MAXFILENAME (256)
75
+
76
+ #ifdef _WIN32
77
+ /* f: name of file to get info on, tmzip: return value: access,
78
+ modification and creation times, dt: dostime */
79
+ static int filetime(const char *f, tm_zip *tmzip, uLong *dt) {
80
+ (void)tmzip;
81
+ int ret = 0;
82
+ {
83
+ FILETIME ftLocal;
84
+ HANDLE hFind;
85
+ WIN32_FIND_DATAA ff32;
86
+
87
+ hFind = FindFirstFileA(f,&ff32);
88
+ if (hFind != INVALID_HANDLE_VALUE)
89
+ {
90
+ FileTimeToLocalFileTime(&(ff32.ftLastWriteTime),&ftLocal);
91
+ FileTimeToDosDateTime(&ftLocal,((LPWORD)dt)+1,((LPWORD)dt)+0);
92
+ FindClose(hFind);
93
+ ret = 1;
94
+ }
95
+ }
96
+ return ret;
97
+ }
98
+ #elif defined(__unix__) || defined(__unix) || defined(__APPLE__)
99
+ /* f: name of file to get info on, tmzip: return value: access,
100
+ modification and creation times, dt: dostime */
101
+ static int filetime(const char *f, tm_zip *tmzip, uLong *dt) {
102
+ (void)dt;
103
+ int ret=0;
104
+ struct stat s; /* results of stat() */
105
+ struct tm* filedate;
106
+ time_t tm_t=0;
107
+
108
+ if (strcmp(f,"-")!=0)
109
+ {
110
+ char name[MAXFILENAME+1];
111
+ size_t len = strlen(f);
112
+ if (len > MAXFILENAME)
113
+ len = MAXFILENAME;
114
+
115
+ strncpy(name, f,MAXFILENAME-1);
116
+ /* strncpy doesn't append the trailing NULL, of the string is too long. */
117
+ name[ MAXFILENAME ] = '\0';
118
+
119
+ if (name[len - 1] == '/')
120
+ name[len - 1] = '\0';
121
+ /* not all systems allow stat'ing a file with / appended */
122
+ if (stat(name,&s)==0)
123
+ {
124
+ tm_t = s.st_mtime;
125
+ ret = 1;
126
+ }
127
+ }
128
+ filedate = localtime(&tm_t);
129
+
130
+ tmzip->tm_sec = filedate->tm_sec;
131
+ tmzip->tm_min = filedate->tm_min;
132
+ tmzip->tm_hour = filedate->tm_hour;
133
+ tmzip->tm_mday = filedate->tm_mday;
134
+ tmzip->tm_mon = filedate->tm_mon ;
135
+ tmzip->tm_year = filedate->tm_year;
136
+
137
+ return ret;
138
+ }
139
+ #else
140
+ /* f: name of file to get info on, tmzip: return value: access,
141
+ modification and creation times, dt: dostime */
142
+ static int filetime(const char *f, tm_zip *tmzip, uLong *dt) {
143
+ (void)f;
144
+ (void)tmzip;
145
+ (void)dt;
146
+ return 0;
147
+ }
148
+ #endif
149
+
150
+
151
+
152
+
153
+ static int check_exist_file(const char* filename) {
154
+ FILE* ftestexist;
155
+ int ret = 1;
156
+ ftestexist = FOPEN_FUNC(filename,"rb");
157
+ if (ftestexist==NULL)
158
+ ret = 0;
159
+ else
160
+ fclose(ftestexist);
161
+ return ret;
162
+ }
163
+
164
+ static void do_banner(void) {
165
+ printf("MiniZip 1.1, demo of zLib + MiniZip64 package, written by Gilles Vollant\n");
166
+ printf("more info on MiniZip at https://www.winimage.com/zLibDll/minizip.html\n\n");
167
+ }
168
+
169
+ static void do_help(void) {
170
+ printf("Usage : minizip [-o] [-a] [-0 to -9] [-p password] [-j] file.zip [files_to_add]\n\n" \
171
+ " -o Overwrite existing file.zip\n" \
172
+ " -a Append to existing file.zip\n" \
173
+ " -0 Store only\n" \
174
+ " -1 Compress faster\n" \
175
+ " -9 Compress better\n\n" \
176
+ " -j exclude path. store only the file name.\n\n");
177
+ }
178
+
179
+ /* calculate the CRC32 of a file,
180
+ because to encrypt a file, we need known the CRC32 of the file before */
181
+ static int getFileCrc(const char* filenameinzip, void* buf, unsigned long size_buf, unsigned long* result_crc) {
182
+ unsigned long calculate_crc=0;
183
+ int err=ZIP_OK;
184
+ FILE * fin = FOPEN_FUNC(filenameinzip,"rb");
185
+
186
+ unsigned long size_read = 0;
187
+ /* unsigned long total_read = 0; */
188
+ if (fin==NULL)
189
+ {
190
+ err = ZIP_ERRNO;
191
+ }
192
+
193
+ if (err == ZIP_OK)
194
+ do
195
+ {
196
+ err = ZIP_OK;
197
+ size_read = (unsigned long)fread(buf,1,size_buf,fin);
198
+ if (size_read < size_buf)
199
+ if (feof(fin)==0)
200
+ {
201
+ printf("error in reading %s\n",filenameinzip);
202
+ err = ZIP_ERRNO;
203
+ }
204
+
205
+ if (size_read>0)
206
+ calculate_crc = crc32_z(calculate_crc,buf,size_read);
207
+ /* total_read += size_read; */
208
+
209
+ } while ((err == ZIP_OK) && (size_read>0));
210
+
211
+ if (fin)
212
+ fclose(fin);
213
+
214
+ *result_crc=calculate_crc;
215
+ printf("file %s crc %lx\n", filenameinzip, calculate_crc);
216
+ return err;
217
+ }
218
+
219
+ static int isLargeFile(const char* filename) {
220
+ int largeFile = 0;
221
+ ZPOS64_T pos = 0;
222
+ FILE* pFile = FOPEN_FUNC(filename, "rb");
223
+
224
+ if(pFile != NULL)
225
+ {
226
+ FSEEKO_FUNC(pFile, 0, SEEK_END);
227
+ pos = (ZPOS64_T)FTELLO_FUNC(pFile);
228
+
229
+ printf("File : %s is %"PUI64" bytes\n", filename, pos);
230
+
231
+ if(pos >= 0xffffffff)
232
+ largeFile = 1;
233
+
234
+ fclose(pFile);
235
+ }
236
+
237
+ return largeFile;
238
+ }
239
+
240
+ int main(int argc, char *argv[]) {
241
+ int i;
242
+ int opt_overwrite=0;
243
+ int opt_compress_level=Z_DEFAULT_COMPRESSION;
244
+ int opt_exclude_path=0;
245
+ int zipfilenamearg = 0;
246
+ char filename_try[MAXFILENAME+16];
247
+ int zipok;
248
+ int err=0;
249
+ unsigned long size_buf=0;
250
+ void* buf=NULL;
251
+ const char* password=NULL;
252
+
253
+
254
+ do_banner();
255
+ if (argc==1)
256
+ {
257
+ do_help();
258
+ return 0;
259
+ }
260
+ else
261
+ {
262
+ for (i=1;i<argc;i++)
263
+ {
264
+ if ((*argv[i])=='-')
265
+ {
266
+ const char *p=argv[i]+1;
267
+
268
+ while ((*p)!='\0')
269
+ {
270
+ char c=*(p++);
271
+ if ((c=='o') || (c=='O'))
272
+ opt_overwrite = 1;
273
+ if ((c=='a') || (c=='A'))
274
+ opt_overwrite = 2;
275
+ if ((c>='0') && (c<='9'))
276
+ opt_compress_level = c-'0';
277
+ if ((c=='j') || (c=='J'))
278
+ opt_exclude_path = 1;
279
+
280
+ if (((c=='p') || (c=='P')) && (i+1<argc))
281
+ {
282
+ password=argv[i+1];
283
+ i++;
284
+ }
285
+ }
286
+ }
287
+ else
288
+ {
289
+ if (zipfilenamearg == 0)
290
+ {
291
+ zipfilenamearg = i ;
292
+ }
293
+ }
294
+ }
295
+ }
296
+
297
+ size_buf = WRITEBUFFERSIZE;
298
+ buf = (void*)malloc(size_buf);
299
+ if (buf==NULL)
300
+ {
301
+ printf("Error allocating memory\n");
302
+ return ZIP_INTERNALERROR;
303
+ }
304
+
305
+ if (zipfilenamearg==0)
306
+ {
307
+ zipok=0;
308
+ }
309
+ else
310
+ {
311
+ int len;
312
+ int dot_found=0;
313
+
314
+ zipok = 1 ;
315
+ strncpy(filename_try, argv[zipfilenamearg],MAXFILENAME-1);
316
+ /* strncpy doesn't append the trailing NULL, of the string is too long. */
317
+ filename_try[ MAXFILENAME ] = '\0';
318
+
319
+ len=(int)strlen(filename_try);
320
+ for (i=0;i<len;i++)
321
+ if (filename_try[i]=='.')
322
+ dot_found=1;
323
+
324
+ if (dot_found==0)
325
+ strcat(filename_try,".zip");
326
+
327
+ if (opt_overwrite==2)
328
+ {
329
+ /* if the file don't exist, we not append file */
330
+ if (check_exist_file(filename_try)==0)
331
+ opt_overwrite=1;
332
+ }
333
+ else
334
+ if (opt_overwrite==0)
335
+ if (check_exist_file(filename_try)!=0)
336
+ {
337
+ char rep=0;
338
+ do
339
+ {
340
+ char answer[128];
341
+ int ret;
342
+ printf("The file %s exists. Overwrite ? [y]es, [n]o, [a]ppend : ",filename_try);
343
+ ret = scanf("%1s",answer);
344
+ if (ret != 1)
345
+ {
346
+ exit(EXIT_FAILURE);
347
+ }
348
+ rep = answer[0] ;
349
+ if ((rep>='a') && (rep<='z'))
350
+ rep -= 0x20;
351
+ }
352
+ while ((rep!='Y') && (rep!='N') && (rep!='A'));
353
+ if (rep=='N')
354
+ zipok = 0;
355
+ if (rep=='A')
356
+ opt_overwrite = 2;
357
+ }
358
+ }
359
+
360
+ if (zipok==1)
361
+ {
362
+ zipFile zf;
363
+ int errclose;
364
+ # ifdef USEWIN32IOAPI
365
+ zlib_filefunc64_def ffunc;
366
+ fill_win32_filefunc64A(&ffunc);
367
+ zf = zipOpen2_64(filename_try,(opt_overwrite==2) ? 2 : 0,NULL,&ffunc);
368
+ # else
369
+ zf = zipOpen64(filename_try,(opt_overwrite==2) ? 2 : 0);
370
+ # endif
371
+
372
+ if (zf == NULL)
373
+ {
374
+ printf("error opening %s\n",filename_try);
375
+ err= ZIP_ERRNO;
376
+ }
377
+ else
378
+ printf("creating %s\n",filename_try);
379
+
380
+ for (i=zipfilenamearg+1;(i<argc) && (err==ZIP_OK);i++)
381
+ {
382
+ if (!((((*(argv[i]))=='-') || ((*(argv[i]))=='/')) &&
383
+ ((argv[i][1]=='o') || (argv[i][1]=='O') ||
384
+ (argv[i][1]=='a') || (argv[i][1]=='A') ||
385
+ (argv[i][1]=='p') || (argv[i][1]=='P') ||
386
+ ((argv[i][1]>='0') && (argv[i][1]<='9'))) &&
387
+ (strlen(argv[i]) == 2)))
388
+ {
389
+ FILE * fin = NULL;
390
+ size_t size_read;
391
+ const char* filenameinzip = argv[i];
392
+ const char *savefilenameinzip;
393
+ zip_fileinfo zi;
394
+ unsigned long crcFile=0;
395
+ int zip64 = 0;
396
+
397
+ zi.tmz_date.tm_sec = zi.tmz_date.tm_min = zi.tmz_date.tm_hour =
398
+ zi.tmz_date.tm_mday = zi.tmz_date.tm_mon = zi.tmz_date.tm_year = 0;
399
+ zi.dosDate = 0;
400
+ zi.internal_fa = 0;
401
+ zi.external_fa = 0;
402
+ filetime(filenameinzip,&zi.tmz_date,&zi.dosDate);
403
+
404
+ /*
405
+ err = zipOpenNewFileInZip(zf,filenameinzip,&zi,
406
+ NULL,0,NULL,0,NULL / * comment * /,
407
+ (opt_compress_level != 0) ? Z_DEFLATED : 0,
408
+ opt_compress_level);
409
+ */
410
+ if ((password != NULL) && (err==ZIP_OK))
411
+ err = getFileCrc(filenameinzip,buf,size_buf,&crcFile);
412
+
413
+ zip64 = isLargeFile(filenameinzip);
414
+
415
+ /* The path name saved, should not include a leading slash. */
416
+ /*if it did, windows/xp and dynazip couldn't read the zip file. */
417
+ savefilenameinzip = filenameinzip;
418
+ while( savefilenameinzip[0] == '\\' || savefilenameinzip[0] == '/' )
419
+ {
420
+ savefilenameinzip++;
421
+ }
422
+
423
+ /*should the zip file contain any path at all?*/
424
+ if( opt_exclude_path )
425
+ {
426
+ const char *tmpptr;
427
+ const char *lastslash = 0;
428
+ for( tmpptr = savefilenameinzip; *tmpptr; tmpptr++)
429
+ {
430
+ if( *tmpptr == '\\' || *tmpptr == '/')
431
+ {
432
+ lastslash = tmpptr;
433
+ }
434
+ }
435
+ if( lastslash != NULL )
436
+ {
437
+ savefilenameinzip = lastslash+1; /* base filename follows last slash. */
438
+ }
439
+ }
440
+
441
+ /**/
442
+ err = zipOpenNewFileInZip3_64(zf,savefilenameinzip,&zi,
443
+ NULL,0,NULL,0,NULL /* comment*/,
444
+ (opt_compress_level != 0) ? Z_DEFLATED : 0,
445
+ opt_compress_level,0,
446
+ /* -MAX_WBITS, DEF_MEM_LEVEL, Z_DEFAULT_STRATEGY, */
447
+ -MAX_WBITS, DEF_MEM_LEVEL, Z_DEFAULT_STRATEGY,
448
+ password,crcFile, zip64);
449
+
450
+ if (err != ZIP_OK)
451
+ printf("error in opening %s in zipfile\n",filenameinzip);
452
+ else
453
+ {
454
+ fin = FOPEN_FUNC(filenameinzip,"rb");
455
+ if (fin==NULL)
456
+ {
457
+ err=ZIP_ERRNO;
458
+ printf("error in opening %s for reading\n",filenameinzip);
459
+ }
460
+ }
461
+
462
+ if (err == ZIP_OK)
463
+ do
464
+ {
465
+ err = ZIP_OK;
466
+ size_read = fread(buf,1,size_buf,fin);
467
+ if (size_read < size_buf)
468
+ if (feof(fin)==0)
469
+ {
470
+ printf("error in reading %s\n",filenameinzip);
471
+ err = ZIP_ERRNO;
472
+ }
473
+
474
+ if (size_read>0)
475
+ {
476
+ err = zipWriteInFileInZip (zf,buf,(unsigned)size_read);
477
+ if (err<0)
478
+ {
479
+ printf("error in writing %s in the zipfile\n",
480
+ filenameinzip);
481
+ }
482
+
483
+ }
484
+ } while ((err == ZIP_OK) && (size_read>0));
485
+
486
+ if (fin)
487
+ fclose(fin);
488
+
489
+ if (err<0)
490
+ err=ZIP_ERRNO;
491
+ else
492
+ {
493
+ err = zipCloseFileInZip(zf);
494
+ if (err!=ZIP_OK)
495
+ printf("error in closing %s in the zipfile\n",
496
+ filenameinzip);
497
+ }
498
+ }
499
+ }
500
+ errclose = zipClose(zf,NULL);
501
+ if (errclose != ZIP_OK)
502
+ printf("error in closing %s\n",filename_try);
503
+ }
504
+ else
505
+ {
506
+ do_help();
507
+ }
508
+
509
+ free(buf);
510
+ return err;
511
+ }
@@ -0,0 +1,13 @@
1
+ prefix=@prefix@
2
+ exec_prefix=@exec_prefix@
3
+ libdir=@libdir@
4
+ includedir=@includedir@
5
+
6
+ Name: minizip
7
+ Description: Minizip zip file manipulation library
8
+ Requires:
9
+ Version: @PACKAGE_VERSION@
10
+ License: Zlib
11
+ Libs: -L${libdir} -lminizip
12
+ Libs.private: -lz
13
+ Cflags: -I${includedir}
@@ -0,0 +1,13 @@
1
+ prefix=@CMAKE_INSTALL_PREFIX@
2
+ exec_prefix=@CMAKE_INSTALL_PREFIX@
3
+ libdir=${exec_prefix}/@CMAKE_INSTALL_LIBDIR@
4
+ sharedlibdir=${exec_prefix}/@CMAKE_INSTALL_LIBDIR@
5
+ includedir=${exec_prefix}/@CMAKE_INSTALL_INCLUDEDIR@
6
+
7
+ Name: minizip
8
+ Description: minizip compression library
9
+ Version: @minizip_VERSION@
10
+
11
+ Requires:
12
+ Libs: -L${libdir} -L${sharedlibdir} -lz -lminizip
13
+ Cflags: -I${includedir}
@@ -0,0 +1,27 @@
1
+ @PACKAGE_INIT@
2
+
3
+ set(_MINIZIP_supported_components "shared" "static")
4
+ include(CMakeFindDependencyMacro)
5
+
6
+ if(@MINIZIP_ENABLE_BZIP2@)
7
+ find_dependency(BZip2)
8
+ endif(@MINIZIP_ENABLE_BZIP2@)
9
+
10
+ if(minizip_FIND_COMPONENTS)
11
+ find_dependency(ZLIB CONFIG COMPONENTS ${minizip_FIND_COMPONENTS})
12
+
13
+ foreach(_comp ${minizip_FIND_COMPONENTS})
14
+ if(NOT _comp IN_LIST _MINIZIP_supported_components)
15
+ set(minizip_FOUND False)
16
+ set(minizip_NOT_FOUND_MESSAGE "Unsupported component: ${_comp}")
17
+ endif(NOT _comp IN_LIST _MINIZIP_supported_components)
18
+
19
+ include("${CMAKE_CURRENT_LIST_DIR}/minizip-${_comp}.cmake")
20
+ endforeach(_comp ${ZLIB_FIND_COMPONENTS})
21
+ else(minizip_FIND_COMPONENTS)
22
+ find_dependency(ZLIB CONFIG)
23
+
24
+ foreach(_component_config IN LISTS _MINIZIP_supported_components)
25
+ include("${CMAKE_CURRENT_LIST_DIR}/minizip-${_component_config}.cmake")
26
+ endforeach(_component_config IN LISTS _MINIZIP_supported_components)
27
+ endif(minizip_FIND_COMPONENTS)