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,570 @@
1
+ /*
2
+ ;uInt longest_match_x64(
3
+ ; deflate_state *s,
4
+ ; IPos cur_match); // current match
5
+
6
+ ; gvmat64.S -- Asm portion of the optimized longest_match for 32 bits x86_64
7
+ ; (AMD64 on Athlon 64, Opteron, Phenom
8
+ ; and Intel EM64T on Pentium 4 with EM64T, Pentium D, Core 2 Duo, Core I5/I7)
9
+ ; this file is translation from gvmat64.asm to GCC 4.x (for Linux, Mac XCode)
10
+ ; Copyright (C) 1995-2010 Jean-loup Gailly, Brian Raiter and Gilles Vollant.
11
+ ;
12
+ ; File written by Gilles Vollant, by converting to assembly the longest_match
13
+ ; from Jean-loup Gailly in deflate.c of zLib and infoZip zip.
14
+ ; and by taking inspiration on asm686 with masm, optimised assembly code
15
+ ; from Brian Raiter, written 1998
16
+ ;
17
+ ; This software is provided 'as-is', without any express or implied
18
+ ; warranty. In no event will the authors be held liable for any damages
19
+ ; arising from the use of this software.
20
+ ;
21
+ ; Permission is granted to anyone to use this software for any purpose,
22
+ ; including commercial applications, and to alter it and redistribute it
23
+ ; freely, subject to the following restrictions:
24
+ ;
25
+ ; 1. The origin of this software must not be misrepresented; you must not
26
+ ; claim that you wrote the original software. If you use this software
27
+ ; in a product, an acknowledgment in the product documentation would be
28
+ ; appreciated but is not required.
29
+ ; 2. Altered source versions must be plainly marked as such, and must not be
30
+ ; misrepresented as being the original software
31
+ ; 3. This notice may not be removed or altered from any source distribution.
32
+ ;
33
+ ; https://www.zlib.net
34
+ ; https://www.muppetlabs.com/~breadbox/software/assembly.html
35
+ ;
36
+ ; to compile this file for zLib, I use option:
37
+ ; gcc -c -arch x86_64 gvmat64.S
38
+
39
+
40
+ ;uInt longest_match(s, cur_match)
41
+ ; deflate_state *s;
42
+ ; IPos cur_match; // current match /
43
+ ;
44
+ ; with XCode for Mac, I had strange error with some jump on intel syntax
45
+ ; this is why BEFORE_JMP and AFTER_JMP are used
46
+ */
47
+
48
+
49
+ #define BEFORE_JMP .att_syntax
50
+ #define AFTER_JMP .intel_syntax noprefix
51
+
52
+ #ifndef NO_UNDERLINE
53
+ # define match_init _match_init
54
+ # define longest_match _longest_match
55
+ #endif
56
+
57
+ .intel_syntax noprefix
58
+
59
+ .globl match_init, longest_match
60
+ .text
61
+ longest_match:
62
+
63
+
64
+
65
+ #define LocalVarsSize 96
66
+ /*
67
+ ; register used : rax,rbx,rcx,rdx,rsi,rdi,r8,r9,r10,r11,r12
68
+ ; free register : r14,r15
69
+ ; register can be saved : rsp
70
+ */
71
+
72
+ #define chainlenwmask (rsp + 8 - LocalVarsSize)
73
+ #define nicematch (rsp + 16 - LocalVarsSize)
74
+
75
+ #define save_rdi (rsp + 24 - LocalVarsSize)
76
+ #define save_rsi (rsp + 32 - LocalVarsSize)
77
+ #define save_rbx (rsp + 40 - LocalVarsSize)
78
+ #define save_rbp (rsp + 48 - LocalVarsSize)
79
+ #define save_r12 (rsp + 56 - LocalVarsSize)
80
+ #define save_r13 (rsp + 64 - LocalVarsSize)
81
+ #define save_r14 (rsp + 72 - LocalVarsSize)
82
+ #define save_r15 (rsp + 80 - LocalVarsSize)
83
+
84
+
85
+ /*
86
+ ; all the +4 offsets are due to the addition of pending_buf_size (in zlib
87
+ ; in the deflate_state structure since the asm code was first written
88
+ ; (if you compile with zlib 1.0.4 or older, remove the +4).
89
+ ; Note : these value are good with a 8 bytes boundary pack structure
90
+ */
91
+
92
+ #define MAX_MATCH 258
93
+ #define MIN_MATCH 3
94
+ #define MIN_LOOKAHEAD (MAX_MATCH+MIN_MATCH+1)
95
+
96
+ /*
97
+ ;;; Offsets for fields in the deflate_state structure. These numbers
98
+ ;;; are calculated from the definition of deflate_state, with the
99
+ ;;; assumption that the compiler will dword-align the fields. (Thus,
100
+ ;;; changing the definition of deflate_state could easily cause this
101
+ ;;; program to crash horribly, without so much as a warning at
102
+ ;;; compile time. Sigh.)
103
+
104
+ ; all the +zlib1222add offsets are due to the addition of fields
105
+ ; in zlib in the deflate_state structure since the asm code was first written
106
+ ; (if you compile with zlib 1.0.4 or older, use "zlib1222add equ (-4)").
107
+ ; (if you compile with zlib between 1.0.5 and 1.2.2.1, use "zlib1222add equ 0").
108
+ ; if you compile with zlib 1.2.2.2 or later , use "zlib1222add equ 8").
109
+ */
110
+
111
+
112
+
113
+ /* you can check the structure offset by running
114
+
115
+ #include <stdlib.h>
116
+ #include <stdio.h>
117
+ #include "deflate.h"
118
+
119
+ void print_depl()
120
+ {
121
+ deflate_state ds;
122
+ deflate_state *s=&ds;
123
+ printf("size pointer=%u\n",(int)sizeof(void*));
124
+
125
+ printf("#define dsWSize %u\n",(int)(((char*)&(s->w_size))-((char*)s)));
126
+ printf("#define dsWMask %u\n",(int)(((char*)&(s->w_mask))-((char*)s)));
127
+ printf("#define dsWindow %u\n",(int)(((char*)&(s->window))-((char*)s)));
128
+ printf("#define dsPrev %u\n",(int)(((char*)&(s->prev))-((char*)s)));
129
+ printf("#define dsMatchLen %u\n",(int)(((char*)&(s->match_length))-((char*)s)));
130
+ printf("#define dsPrevMatch %u\n",(int)(((char*)&(s->prev_match))-((char*)s)));
131
+ printf("#define dsStrStart %u\n",(int)(((char*)&(s->strstart))-((char*)s)));
132
+ printf("#define dsMatchStart %u\n",(int)(((char*)&(s->match_start))-((char*)s)));
133
+ printf("#define dsLookahead %u\n",(int)(((char*)&(s->lookahead))-((char*)s)));
134
+ printf("#define dsPrevLen %u\n",(int)(((char*)&(s->prev_length))-((char*)s)));
135
+ printf("#define dsMaxChainLen %u\n",(int)(((char*)&(s->max_chain_length))-((char*)s)));
136
+ printf("#define dsGoodMatch %u\n",(int)(((char*)&(s->good_match))-((char*)s)));
137
+ printf("#define dsNiceMatch %u\n",(int)(((char*)&(s->nice_match))-((char*)s)));
138
+ }
139
+ */
140
+
141
+ #define dsWSize 68
142
+ #define dsWMask 76
143
+ #define dsWindow 80
144
+ #define dsPrev 96
145
+ #define dsMatchLen 144
146
+ #define dsPrevMatch 148
147
+ #define dsStrStart 156
148
+ #define dsMatchStart 160
149
+ #define dsLookahead 164
150
+ #define dsPrevLen 168
151
+ #define dsMaxChainLen 172
152
+ #define dsGoodMatch 188
153
+ #define dsNiceMatch 192
154
+
155
+ #define window_size [ rcx + dsWSize]
156
+ #define WMask [ rcx + dsWMask]
157
+ #define window_ad [ rcx + dsWindow]
158
+ #define prev_ad [ rcx + dsPrev]
159
+ #define strstart [ rcx + dsStrStart]
160
+ #define match_start [ rcx + dsMatchStart]
161
+ #define Lookahead [ rcx + dsLookahead] //; 0ffffffffh on infozip
162
+ #define prev_length [ rcx + dsPrevLen]
163
+ #define max_chain_length [ rcx + dsMaxChainLen]
164
+ #define good_match [ rcx + dsGoodMatch]
165
+ #define nice_match [ rcx + dsNiceMatch]
166
+
167
+ /*
168
+ ; windows:
169
+ ; parameter 1 in rcx(deflate state s), param 2 in rdx (cur match)
170
+
171
+ ; All registers must be preserved across the call, except for
172
+ ; rax, rcx, rdx, r8, r9, r10, and r11, which are scratch.
173
+
174
+ ;
175
+ ; gcc on macosx-linux:
176
+ ; see https://refspecs.linuxbase.org/elf/x86_64-abi-0.99.pdf
177
+ ; param 1 in rdi, param 2 in rsi
178
+ ; rbx, rsp, rbp, r12 to r15 must be preserved
179
+
180
+ ;;; Save registers that the compiler may be using, and adjust esp to
181
+ ;;; make room for our stack frame.
182
+
183
+
184
+ ;;; Retrieve the function arguments. r8d will hold cur_match
185
+ ;;; throughout the entire function. edx will hold the pointer to the
186
+ ;;; deflate_state structure during the function's setup (before
187
+ ;;; entering the main loop.
188
+
189
+ ; ms: parameter 1 in rcx (deflate_state* s), param 2 in edx -> r8 (cur match)
190
+ ; mac: param 1 in rdi, param 2 rsi
191
+ ; this clear high 32 bits of r8, which can be garbage in both r8 and rdx
192
+ */
193
+ mov [save_rbx],rbx
194
+ mov [save_rbp],rbp
195
+
196
+
197
+ mov rcx,rdi
198
+
199
+ mov r8d,esi
200
+
201
+
202
+ mov [save_r12],r12
203
+ mov [save_r13],r13
204
+ mov [save_r14],r14
205
+ mov [save_r15],r15
206
+
207
+
208
+ //;;; uInt wmask = s->w_mask;
209
+ //;;; unsigned chain_length = s->max_chain_length;
210
+ //;;; if (s->prev_length >= s->good_match) {
211
+ //;;; chain_length >>= 2;
212
+ //;;; }
213
+
214
+
215
+ mov edi, prev_length
216
+ mov esi, good_match
217
+ mov eax, WMask
218
+ mov ebx, max_chain_length
219
+ cmp edi, esi
220
+ jl LastMatchGood
221
+ shr ebx, 2
222
+ LastMatchGood:
223
+
224
+ //;;; chainlen is decremented once beforehand so that the function can
225
+ //;;; use the sign flag instead of the zero flag for the exit test.
226
+ //;;; It is then shifted into the high word, to make room for the wmask
227
+ //;;; value, which it will always accompany.
228
+
229
+ dec ebx
230
+ shl ebx, 16
231
+ or ebx, eax
232
+
233
+ //;;; on zlib only
234
+ //;;; if ((uInt)nice_match > s->lookahead) nice_match = s->lookahead;
235
+
236
+
237
+
238
+ mov eax, nice_match
239
+ mov [chainlenwmask], ebx
240
+ mov r10d, Lookahead
241
+ cmp r10d, eax
242
+ cmovnl r10d, eax
243
+ mov [nicematch],r10d
244
+
245
+
246
+
247
+ //;;; register Bytef *scan = s->window + s->strstart;
248
+ mov r10, window_ad
249
+ mov ebp, strstart
250
+ lea r13, [r10 + rbp]
251
+
252
+ //;;; Determine how many bytes the scan ptr is off from being
253
+ //;;; dword-aligned.
254
+
255
+ mov r9,r13
256
+ neg r13
257
+ and r13,3
258
+
259
+ //;;; IPos limit = s->strstart > (IPos)MAX_DIST(s) ?
260
+ //;;; s->strstart - (IPos)MAX_DIST(s) : NIL;
261
+
262
+
263
+ mov eax, window_size
264
+ sub eax, MIN_LOOKAHEAD
265
+
266
+
267
+ xor edi,edi
268
+ sub ebp, eax
269
+
270
+ mov r11d, prev_length
271
+
272
+ cmovng ebp,edi
273
+
274
+ //;;; int best_len = s->prev_length;
275
+
276
+
277
+ //;;; Store the sum of s->window + best_len in esi locally, and in esi.
278
+
279
+ lea rsi,[r10+r11]
280
+
281
+ //;;; register ush scan_start = *(ushf*)scan;
282
+ //;;; register ush scan_end = *(ushf*)(scan+best_len-1);
283
+ //;;; Posf *prev = s->prev;
284
+
285
+ movzx r12d,word ptr [r9]
286
+ movzx ebx, word ptr [r9 + r11 - 1]
287
+
288
+ mov rdi, prev_ad
289
+
290
+ //;;; Jump into the main loop.
291
+
292
+ mov edx, [chainlenwmask]
293
+
294
+ cmp bx,word ptr [rsi + r8 - 1]
295
+ jz LookupLoopIsZero
296
+
297
+
298
+
299
+ LookupLoop1:
300
+ and r8d, edx
301
+
302
+ movzx r8d, word ptr [rdi + r8*2]
303
+ cmp r8d, ebp
304
+ jbe LeaveNow
305
+
306
+
307
+
308
+ sub edx, 0x00010000
309
+ BEFORE_JMP
310
+ js LeaveNow
311
+ AFTER_JMP
312
+
313
+ LoopEntry1:
314
+ cmp bx,word ptr [rsi + r8 - 1]
315
+ BEFORE_JMP
316
+ jz LookupLoopIsZero
317
+ AFTER_JMP
318
+
319
+ LookupLoop2:
320
+ and r8d, edx
321
+
322
+ movzx r8d, word ptr [rdi + r8*2]
323
+ cmp r8d, ebp
324
+ BEFORE_JMP
325
+ jbe LeaveNow
326
+ AFTER_JMP
327
+ sub edx, 0x00010000
328
+ BEFORE_JMP
329
+ js LeaveNow
330
+ AFTER_JMP
331
+
332
+ LoopEntry2:
333
+ cmp bx,word ptr [rsi + r8 - 1]
334
+ BEFORE_JMP
335
+ jz LookupLoopIsZero
336
+ AFTER_JMP
337
+
338
+ LookupLoop4:
339
+ and r8d, edx
340
+
341
+ movzx r8d, word ptr [rdi + r8*2]
342
+ cmp r8d, ebp
343
+ BEFORE_JMP
344
+ jbe LeaveNow
345
+ AFTER_JMP
346
+ sub edx, 0x00010000
347
+ BEFORE_JMP
348
+ js LeaveNow
349
+ AFTER_JMP
350
+
351
+ LoopEntry4:
352
+
353
+ cmp bx,word ptr [rsi + r8 - 1]
354
+ BEFORE_JMP
355
+ jnz LookupLoop1
356
+ jmp LookupLoopIsZero
357
+ AFTER_JMP
358
+ /*
359
+ ;;; do {
360
+ ;;; match = s->window + cur_match;
361
+ ;;; if (*(ushf*)(match+best_len-1) != scan_end ||
362
+ ;;; *(ushf*)match != scan_start) continue;
363
+ ;;; [...]
364
+ ;;; } while ((cur_match = prev[cur_match & wmask]) > limit
365
+ ;;; && --chain_length != 0);
366
+ ;;;
367
+ ;;; Here is the inner loop of the function. The function will spend the
368
+ ;;; majority of its time in this loop, and majority of that time will
369
+ ;;; be spent in the first ten instructions.
370
+ ;;;
371
+ ;;; Within this loop:
372
+ ;;; ebx = scanend
373
+ ;;; r8d = curmatch
374
+ ;;; edx = chainlenwmask - i.e., ((chainlen << 16) | wmask)
375
+ ;;; esi = windowbestlen - i.e., (window + bestlen)
376
+ ;;; edi = prev
377
+ ;;; ebp = limit
378
+ */
379
+ .balign 16
380
+ LookupLoop:
381
+ and r8d, edx
382
+
383
+ movzx r8d, word ptr [rdi + r8*2]
384
+ cmp r8d, ebp
385
+ BEFORE_JMP
386
+ jbe LeaveNow
387
+ AFTER_JMP
388
+ sub edx, 0x00010000
389
+ BEFORE_JMP
390
+ js LeaveNow
391
+ AFTER_JMP
392
+
393
+ LoopEntry:
394
+
395
+ cmp bx,word ptr [rsi + r8 - 1]
396
+ BEFORE_JMP
397
+ jnz LookupLoop1
398
+ AFTER_JMP
399
+ LookupLoopIsZero:
400
+ cmp r12w, word ptr [r10 + r8]
401
+ BEFORE_JMP
402
+ jnz LookupLoop1
403
+ AFTER_JMP
404
+
405
+
406
+ //;;; Store the current value of chainlen.
407
+ mov [chainlenwmask], edx
408
+ /*
409
+ ;;; Point edi to the string under scrutiny, and esi to the string we
410
+ ;;; are hoping to match it up with. In actuality, esi and edi are
411
+ ;;; both pointed (MAX_MATCH_8 - scanalign) bytes ahead, and edx is
412
+ ;;; initialized to -(MAX_MATCH_8 - scanalign).
413
+ */
414
+ lea rsi,[r8+r10]
415
+ mov rdx, 0xfffffffffffffef8 //; -(MAX_MATCH_8)
416
+ lea rsi, [rsi + r13 + 0x0108] //;MAX_MATCH_8]
417
+ lea rdi, [r9 + r13 + 0x0108] //;MAX_MATCH_8]
418
+
419
+ prefetcht1 [rsi+rdx]
420
+ prefetcht1 [rdi+rdx]
421
+
422
+ /*
423
+ ;;; Test the strings for equality, 8 bytes at a time. At the end,
424
+ ;;; adjust rdx so that it is offset to the exact byte that mismatched.
425
+ ;;;
426
+ ;;; We already know at this point that the first three bytes of the
427
+ ;;; strings match each other, and they can be safely passed over before
428
+ ;;; starting the compare loop. So what this code does is skip over 0-3
429
+ ;;; bytes, as much as necessary in order to dword-align the edi
430
+ ;;; pointer. (rsi will still be misaligned three times out of four.)
431
+ ;;;
432
+ ;;; It should be confessed that this loop usually does not represent
433
+ ;;; much of the total running time. Replacing it with a more
434
+ ;;; straightforward "rep cmpsb" would not drastically degrade
435
+ ;;; performance.
436
+ */
437
+
438
+ LoopCmps:
439
+ mov rax, [rsi + rdx]
440
+ xor rax, [rdi + rdx]
441
+ jnz LeaveLoopCmps
442
+
443
+ mov rax, [rsi + rdx + 8]
444
+ xor rax, [rdi + rdx + 8]
445
+ jnz LeaveLoopCmps8
446
+
447
+
448
+ mov rax, [rsi + rdx + 8+8]
449
+ xor rax, [rdi + rdx + 8+8]
450
+ jnz LeaveLoopCmps16
451
+
452
+ add rdx,8+8+8
453
+
454
+ BEFORE_JMP
455
+ jnz LoopCmps
456
+ jmp LenMaximum
457
+ AFTER_JMP
458
+
459
+ LeaveLoopCmps16: add rdx,8
460
+ LeaveLoopCmps8: add rdx,8
461
+ LeaveLoopCmps:
462
+
463
+ test eax, 0x0000FFFF
464
+ jnz LenLower
465
+
466
+ test eax,0xffffffff
467
+
468
+ jnz LenLower32
469
+
470
+ add rdx,4
471
+ shr rax,32
472
+ or ax,ax
473
+ BEFORE_JMP
474
+ jnz LenLower
475
+ AFTER_JMP
476
+
477
+ LenLower32:
478
+ shr eax,16
479
+ add rdx,2
480
+
481
+ LenLower:
482
+ sub al, 1
483
+ adc rdx, 0
484
+ //;;; Calculate the length of the match. If it is longer than MAX_MATCH,
485
+ //;;; then automatically accept it as the best possible match and leave.
486
+
487
+ lea rax, [rdi + rdx]
488
+ sub rax, r9
489
+ cmp eax, MAX_MATCH
490
+ BEFORE_JMP
491
+ jge LenMaximum
492
+ AFTER_JMP
493
+ /*
494
+ ;;; If the length of the match is not longer than the best match we
495
+ ;;; have so far, then forget it and return to the lookup loop.
496
+ ;///////////////////////////////////
497
+ */
498
+ cmp eax, r11d
499
+ jg LongerMatch
500
+
501
+ lea rsi,[r10+r11]
502
+
503
+ mov rdi, prev_ad
504
+ mov edx, [chainlenwmask]
505
+ BEFORE_JMP
506
+ jmp LookupLoop
507
+ AFTER_JMP
508
+ /*
509
+ ;;; s->match_start = cur_match;
510
+ ;;; best_len = len;
511
+ ;;; if (len >= nice_match) break;
512
+ ;;; scan_end = *(ushf*)(scan+best_len-1);
513
+ */
514
+ LongerMatch:
515
+ mov r11d, eax
516
+ mov match_start, r8d
517
+ cmp eax, [nicematch]
518
+ BEFORE_JMP
519
+ jge LeaveNow
520
+ AFTER_JMP
521
+
522
+ lea rsi,[r10+rax]
523
+
524
+ movzx ebx, word ptr [r9 + rax - 1]
525
+ mov rdi, prev_ad
526
+ mov edx, [chainlenwmask]
527
+ BEFORE_JMP
528
+ jmp LookupLoop
529
+ AFTER_JMP
530
+
531
+ //;;; Accept the current string, with the maximum possible length.
532
+
533
+ LenMaximum:
534
+ mov r11d,MAX_MATCH
535
+ mov match_start, r8d
536
+
537
+ //;;; if ((uInt)best_len <= s->lookahead) return (uInt)best_len;
538
+ //;;; return s->lookahead;
539
+
540
+ LeaveNow:
541
+ mov eax, Lookahead
542
+ cmp r11d, eax
543
+ cmovng eax, r11d
544
+
545
+
546
+
547
+ //;;; Restore the stack and return from whence we came.
548
+
549
+
550
+ // mov rsi,[save_rsi]
551
+ // mov rdi,[save_rdi]
552
+ mov rbx,[save_rbx]
553
+ mov rbp,[save_rbp]
554
+ mov r12,[save_r12]
555
+ mov r13,[save_r13]
556
+ mov r14,[save_r14]
557
+ mov r15,[save_r15]
558
+
559
+
560
+ ret 0
561
+ //; please don't remove this string !
562
+ //; Your can freely use gvmat64 in any free or commercial app
563
+ //; but it is far better don't remove the string in the binary!
564
+ // db 0dh,0ah,"asm686 with masm, optimised assembly code from Brian Raiter, written 1998, converted to amd 64 by Gilles Vollant 2005",0dh,0ah,0
565
+
566
+
567
+ match_init:
568
+ ret 0
569
+
570
+
@@ -0,0 +1,19 @@
1
+ if(ZLIB_BUILD_SHARED)
2
+ target_sources(zlib
3
+ PRIVATE
4
+ infback9.c
5
+ inftree9.c
6
+ infback9.h
7
+ inffix9.h
8
+ inftree9.h)
9
+ endif(ZLIB_BUILD_SHARED)
10
+
11
+ if(ZLIB_BUILD_STATIC)
12
+ target_sources(zlibstatic
13
+ PRIVATE
14
+ infback9.c
15
+ inftree9.c
16
+ infback9.h
17
+ inffix9.h
18
+ inftree9.h)
19
+ endif(ZLIB_BUILD_STATIC)
@@ -0,0 +1 @@
1
+ See infback9.h for what this is and how to use it.