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.
- package/LICENSE +21 -0
- package/README.md +165 -0
- package/binding.gyp +149 -0
- package/deps/tiny-aes/.github/workflows/c-cpp.yml +27 -0
- package/deps/tiny-aes/CMakeLists.txt +17 -0
- package/deps/tiny-aes/Makefile +61 -0
- package/deps/tiny-aes/README.md +83 -0
- package/deps/tiny-aes/aes.c +572 -0
- package/deps/tiny-aes/aes.h +91 -0
- package/deps/tiny-aes/aes.hpp +12 -0
- package/deps/tiny-aes/conanfile.py +73 -0
- package/deps/tiny-aes/library.json +19 -0
- package/deps/tiny-aes/library.properties +11 -0
- package/deps/tiny-aes/test.c +316 -0
- package/deps/tiny-aes/test.cpp +2 -0
- package/deps/tiny-aes/test_package/CMakeLists.txt +11 -0
- package/deps/tiny-aes/test_package/conanfile.py +17 -0
- package/deps/tiny-aes/unlicense.txt +24 -0
- package/deps/zlib/.cmake-format.yaml +245 -0
- package/deps/zlib/.github/workflows/c-std.yml +268 -0
- package/deps/zlib/.github/workflows/cmake.yml +147 -0
- package/deps/zlib/.github/workflows/configure.yml +146 -0
- package/deps/zlib/.github/workflows/contribs.yml +64 -0
- package/deps/zlib/.github/workflows/fuzz.yml +25 -0
- package/deps/zlib/.github/workflows/msys-cygwin.yml +92 -0
- package/deps/zlib/.github/workflows/others.yml +153 -0
- package/deps/zlib/BUILD.bazel +134 -0
- package/deps/zlib/CMakeLists.txt +310 -0
- package/deps/zlib/ChangeLog +1669 -0
- package/deps/zlib/FAQ +371 -0
- package/deps/zlib/INDEX +67 -0
- package/deps/zlib/LICENSE +22 -0
- package/deps/zlib/MODULE.bazel +9 -0
- package/deps/zlib/Makefile.in +426 -0
- package/deps/zlib/README +115 -0
- package/deps/zlib/README-cmake.md +79 -0
- package/deps/zlib/adler32.c +164 -0
- package/deps/zlib/amiga/Makefile.pup +69 -0
- package/deps/zlib/amiga/Makefile.sas +68 -0
- package/deps/zlib/compress.c +99 -0
- package/deps/zlib/configure +1078 -0
- package/deps/zlib/contrib/CMakeLists.txt +61 -0
- package/deps/zlib/contrib/README.contrib +57 -0
- package/deps/zlib/contrib/ada/CMakeLists.txt +217 -0
- package/deps/zlib/contrib/ada/buffer_demo.adb +106 -0
- package/deps/zlib/contrib/ada/cmake/Modules/CMakeADACompiler.cmake.in +23 -0
- package/deps/zlib/contrib/ada/cmake/Modules/CMakeADAInformation.cmake +133 -0
- package/deps/zlib/contrib/ada/cmake/Modules/CMakeDetermineADACompiler.cmake +33 -0
- package/deps/zlib/contrib/ada/cmake/Modules/CMakeTestADACompiler.cmake +46 -0
- package/deps/zlib/contrib/ada/cmake/binder_helper.cmake +47 -0
- package/deps/zlib/contrib/ada/cmake/compile_helper.cmake +32 -0
- package/deps/zlib/contrib/ada/cmake/exe_link_helper.cmake +53 -0
- package/deps/zlib/contrib/ada/cmake/shared_link_helper.cmake +52 -0
- package/deps/zlib/contrib/ada/cmake/static_link_helper.cmake +25 -0
- package/deps/zlib/contrib/ada/mtest.adb +156 -0
- package/deps/zlib/contrib/ada/read.adb +156 -0
- package/deps/zlib/contrib/ada/readme.txt +65 -0
- package/deps/zlib/contrib/ada/test.adb +463 -0
- package/deps/zlib/contrib/ada/zlib-streams.adb +225 -0
- package/deps/zlib/contrib/ada/zlib-streams.ads +114 -0
- package/deps/zlib/contrib/ada/zlib-thin.adb +142 -0
- package/deps/zlib/contrib/ada/zlib-thin.ads +450 -0
- package/deps/zlib/contrib/ada/zlib.adb +701 -0
- package/deps/zlib/contrib/ada/zlib.ads +328 -0
- package/deps/zlib/contrib/ada/zlib.gpr +20 -0
- package/deps/zlib/contrib/blast/CMakeLists.txt +166 -0
- package/deps/zlib/contrib/blast/Makefile +14 -0
- package/deps/zlib/contrib/blast/README +4 -0
- package/deps/zlib/contrib/blast/blast-test.c +42 -0
- package/deps/zlib/contrib/blast/blast.c +422 -0
- package/deps/zlib/contrib/blast/blast.h +84 -0
- package/deps/zlib/contrib/blast/blastConfig.cmake.in +18 -0
- package/deps/zlib/contrib/blast/test/CMakeLists.txt +193 -0
- package/deps/zlib/contrib/blast/test/add_subdirectory_exclude_test.cmake.in +27 -0
- package/deps/zlib/contrib/blast/test/add_subdirectory_test.cmake.in +25 -0
- package/deps/zlib/contrib/blast/test/find_package_no_components_test.cmake.in +24 -0
- package/deps/zlib/contrib/blast/test/find_package_test.cmake.in +24 -0
- package/deps/zlib/contrib/blast/test/find_package_wrong_components_test.cmake.in +24 -0
- package/deps/zlib/contrib/blast/test.pk +0 -0
- package/deps/zlib/contrib/blast/test.txt +1 -0
- package/deps/zlib/contrib/blast/tester.cmake +28 -0
- package/deps/zlib/contrib/crc32vx/CMakeLists.txt +67 -0
- package/deps/zlib/contrib/crc32vx/README +9 -0
- package/deps/zlib/contrib/crc32vx/crc32_vx.c +254 -0
- package/deps/zlib/contrib/crc32vx/crc32_vx_hooks.h +9 -0
- package/deps/zlib/contrib/delphi/ZLib.pas +557 -0
- package/deps/zlib/contrib/delphi/ZLibConst.pas +11 -0
- package/deps/zlib/contrib/delphi/readme.txt +76 -0
- package/deps/zlib/contrib/delphi/zlibd32.mak +99 -0
- package/deps/zlib/contrib/dotzlib/DotZLib/AssemblyInfo.cs +58 -0
- package/deps/zlib/contrib/dotzlib/DotZLib/ChecksumImpl.cs +202 -0
- package/deps/zlib/contrib/dotzlib/DotZLib/CircularBuffer.cs +83 -0
- package/deps/zlib/contrib/dotzlib/DotZLib/CodecBase.cs +198 -0
- package/deps/zlib/contrib/dotzlib/DotZLib/Deflater.cs +106 -0
- package/deps/zlib/contrib/dotzlib/DotZLib/DotZLib.cs +288 -0
- package/deps/zlib/contrib/dotzlib/DotZLib/DotZLib.csproj +141 -0
- package/deps/zlib/contrib/dotzlib/DotZLib/GZipStream.cs +301 -0
- package/deps/zlib/contrib/dotzlib/DotZLib/Inflater.cs +105 -0
- package/deps/zlib/contrib/dotzlib/DotZLib/UnitTests.cs +274 -0
- package/deps/zlib/contrib/dotzlib/DotZLib.build +33 -0
- package/deps/zlib/contrib/dotzlib/DotZLib.chm +0 -0
- package/deps/zlib/contrib/dotzlib/DotZLib.sln +21 -0
- package/deps/zlib/contrib/dotzlib/LICENSE_1_0.txt +23 -0
- package/deps/zlib/contrib/dotzlib/readme.txt +58 -0
- package/deps/zlib/contrib/gcc_gvmat64/CMakeLists.txt +19 -0
- package/deps/zlib/contrib/gcc_gvmat64/gvmat64.S +570 -0
- package/deps/zlib/contrib/infback9/CMakeLists.txt +19 -0
- package/deps/zlib/contrib/infback9/README +1 -0
- package/deps/zlib/contrib/infback9/infback9.c +603 -0
- package/deps/zlib/contrib/infback9/infback9.h +37 -0
- package/deps/zlib/contrib/infback9/inffix9.h +107 -0
- package/deps/zlib/contrib/infback9/inflate9.h +47 -0
- package/deps/zlib/contrib/infback9/inftree9.c +319 -0
- package/deps/zlib/contrib/infback9/inftree9.h +61 -0
- package/deps/zlib/contrib/iostream/test.cpp +24 -0
- package/deps/zlib/contrib/iostream/zfstream.cpp +329 -0
- package/deps/zlib/contrib/iostream/zfstream.h +128 -0
- package/deps/zlib/contrib/iostream2/zstream.h +306 -0
- package/deps/zlib/contrib/iostream2/zstream_test.cpp +25 -0
- package/deps/zlib/contrib/iostream3/CMakeLists.txt +200 -0
- package/deps/zlib/contrib/iostream3/README +35 -0
- package/deps/zlib/contrib/iostream3/TODO +17 -0
- package/deps/zlib/contrib/iostream3/iostream3Config.cmake.in +23 -0
- package/deps/zlib/contrib/iostream3/test/CMakeLists.txt +191 -0
- package/deps/zlib/contrib/iostream3/test/add_subdirectory_exclude_test.cmake.in +27 -0
- package/deps/zlib/contrib/iostream3/test/add_subdirectory_test.cmake.in +25 -0
- package/deps/zlib/contrib/iostream3/test/find_package_no_components_test.cmake.in +24 -0
- package/deps/zlib/contrib/iostream3/test/find_package_test.cmake.in +24 -0
- package/deps/zlib/contrib/iostream3/test/find_package_wrong_components_test.cmake.in +24 -0
- package/deps/zlib/contrib/iostream3/test.cc +50 -0
- package/deps/zlib/contrib/iostream3/zfstream.cc +479 -0
- package/deps/zlib/contrib/iostream3/zfstream.h +466 -0
- package/deps/zlib/contrib/minizip/CMakeLists.txt +387 -0
- package/deps/zlib/contrib/minizip/LICENSE.Info-Zip +58 -0
- package/deps/zlib/contrib/minizip/Makefile +33 -0
- package/deps/zlib/contrib/minizip/Makefile.am +45 -0
- package/deps/zlib/contrib/minizip/MiniZip64_Changes.txt +6 -0
- package/deps/zlib/contrib/minizip/MiniZip64_info.txt +69 -0
- package/deps/zlib/contrib/minizip/configure.ac +32 -0
- package/deps/zlib/contrib/minizip/crypt.h +125 -0
- package/deps/zlib/contrib/minizip/ints.h +57 -0
- package/deps/zlib/contrib/minizip/ioapi.c +231 -0
- package/deps/zlib/contrib/minizip/ioapi.h +183 -0
- package/deps/zlib/contrib/minizip/iowin32.c +447 -0
- package/deps/zlib/contrib/minizip/iowin32.h +27 -0
- package/deps/zlib/contrib/minizip/make_vms.com +25 -0
- package/deps/zlib/contrib/minizip/miniunz.c +647 -0
- package/deps/zlib/contrib/minizip/miniunzip.1 +63 -0
- package/deps/zlib/contrib/minizip/minizip.1 +46 -0
- package/deps/zlib/contrib/minizip/minizip.c +511 -0
- package/deps/zlib/contrib/minizip/minizip.pc.in +13 -0
- package/deps/zlib/contrib/minizip/minizip.pc.txt +13 -0
- package/deps/zlib/contrib/minizip/minizipConfig.cmake.in +27 -0
- package/deps/zlib/contrib/minizip/mztools.c +294 -0
- package/deps/zlib/contrib/minizip/mztools.h +37 -0
- package/deps/zlib/contrib/minizip/skipset.h +366 -0
- package/deps/zlib/contrib/minizip/test/CMakeLists.txt +176 -0
- package/deps/zlib/contrib/minizip/test/add_subdirectory_exclude_test.cmake.in +29 -0
- package/deps/zlib/contrib/minizip/test/add_subdirectory_test.cmake.in +28 -0
- package/deps/zlib/contrib/minizip/test/find_package_no_components_test.cmake.in +26 -0
- package/deps/zlib/contrib/minizip/test/find_package_test.cmake.in +26 -0
- package/deps/zlib/contrib/minizip/test/find_package_wrong_components_test.cmake.in +26 -0
- package/deps/zlib/contrib/minizip/test/test_helper.cm +32 -0
- package/deps/zlib/contrib/minizip/unzip.c +1984 -0
- package/deps/zlib/contrib/minizip/unzip.h +442 -0
- package/deps/zlib/contrib/minizip/zip.c +2246 -0
- package/deps/zlib/contrib/minizip/zip.h +371 -0
- package/deps/zlib/contrib/nuget/nuget.csproj +45 -0
- package/deps/zlib/contrib/nuget/nuget.sln +22 -0
- package/deps/zlib/contrib/pascal/example.pas +599 -0
- package/deps/zlib/contrib/pascal/readme.txt +76 -0
- package/deps/zlib/contrib/pascal/zlibd32.mak +99 -0
- package/deps/zlib/contrib/pascal/zlibpas.pas +276 -0
- package/deps/zlib/contrib/puff/CMakeLists.txt +154 -0
- package/deps/zlib/contrib/puff/Makefile +42 -0
- package/deps/zlib/contrib/puff/README +63 -0
- package/deps/zlib/contrib/puff/bin-writer.c +26 -0
- package/deps/zlib/contrib/puff/puff.c +840 -0
- package/deps/zlib/contrib/puff/puff.h +35 -0
- package/deps/zlib/contrib/puff/puffConfig.cmake.in +18 -0
- package/deps/zlib/contrib/puff/pufftest.c +168 -0
- package/deps/zlib/contrib/puff/test/CMakeLists.txt +262 -0
- package/deps/zlib/contrib/puff/test/add_subdirectory_exclude_test.cmake.in +26 -0
- package/deps/zlib/contrib/puff/test/add_subdirectory_test.cmake.in +25 -0
- package/deps/zlib/contrib/puff/test/find_package_no_components_test.cmake.in +24 -0
- package/deps/zlib/contrib/puff/test/find_package_test.cmake.in +24 -0
- package/deps/zlib/contrib/puff/test/find_package_wrong_components_test.cmake.in +24 -0
- package/deps/zlib/contrib/puff/test/tester-cov.cmake +58 -0
- package/deps/zlib/contrib/puff/test/tester.cmake +16 -0
- package/deps/zlib/contrib/puff/zeros.raw +0 -0
- package/deps/zlib/contrib/testzlib/CMakeLists.txt +44 -0
- package/deps/zlib/contrib/testzlib/testzlib.c +275 -0
- package/deps/zlib/contrib/testzlib/testzlib.txt +10 -0
- package/deps/zlib/contrib/vstudio/readme.txt +22 -0
- package/deps/zlib/contrib/zlib1-dll/CMakeLists.txt +196 -0
- package/deps/zlib/contrib/zlib1-dll/readme.txt +21 -0
- package/deps/zlib/crc32.c +983 -0
- package/deps/zlib/crc32.h +9446 -0
- package/deps/zlib/deflate.c +2185 -0
- package/deps/zlib/deflate.h +383 -0
- package/deps/zlib/doc/algorithm.txt +209 -0
- package/deps/zlib/doc/crc-doc.1.0.pdf +0 -0
- package/deps/zlib/doc/rfc1950.txt +619 -0
- package/deps/zlib/doc/rfc1951.txt +955 -0
- package/deps/zlib/doc/rfc1952.txt +675 -0
- package/deps/zlib/doc/txtvsbin.txt +107 -0
- package/deps/zlib/examples/README.examples +54 -0
- package/deps/zlib/examples/enough.c +597 -0
- package/deps/zlib/examples/fitblk.c +233 -0
- package/deps/zlib/examples/gun.c +702 -0
- package/deps/zlib/examples/gzappend.c +504 -0
- package/deps/zlib/examples/gzjoin.c +449 -0
- package/deps/zlib/examples/gzlog.c +1061 -0
- package/deps/zlib/examples/gzlog.h +91 -0
- package/deps/zlib/examples/gznorm.c +474 -0
- package/deps/zlib/examples/zlib_how.html +550 -0
- package/deps/zlib/examples/zpipe.c +206 -0
- package/deps/zlib/examples/zran.c +546 -0
- package/deps/zlib/examples/zran.h +53 -0
- package/deps/zlib/gzclose.c +23 -0
- package/deps/zlib/gzguts.h +216 -0
- package/deps/zlib/gzlib.c +609 -0
- package/deps/zlib/gzread.c +668 -0
- package/deps/zlib/gzwrite.c +700 -0
- package/deps/zlib/infback.c +581 -0
- package/deps/zlib/inffast.c +321 -0
- package/deps/zlib/inffast.h +11 -0
- package/deps/zlib/inffixed.h +94 -0
- package/deps/zlib/inflate.c +1413 -0
- package/deps/zlib/inflate.h +126 -0
- package/deps/zlib/inftrees.c +424 -0
- package/deps/zlib/inftrees.h +64 -0
- package/deps/zlib/make_vms.com +867 -0
- package/deps/zlib/msdos/Makefile.bor +115 -0
- package/deps/zlib/msdos/Makefile.dj2 +104 -0
- package/deps/zlib/msdos/Makefile.emx +69 -0
- package/deps/zlib/msdos/Makefile.msc +112 -0
- package/deps/zlib/msdos/Makefile.tc +100 -0
- package/deps/zlib/os400/README400 +48 -0
- package/deps/zlib/os400/bndsrc +144 -0
- package/deps/zlib/os400/make.sh +383 -0
- package/deps/zlib/os400/zlibfixed.rpgle +578 -0
- package/deps/zlib/os400/zlibfree.rpgle +634 -0
- package/deps/zlib/qnx/package.qpg +141 -0
- package/deps/zlib/test/CMakeLists.txt +318 -0
- package/deps/zlib/test/add_subdirectory_exclude_test.cmake.in +29 -0
- package/deps/zlib/test/add_subdirectory_test.cmake.in +28 -0
- package/deps/zlib/test/example.c +552 -0
- package/deps/zlib/test/find_package_no_components_test.cmake.in +27 -0
- package/deps/zlib/test/find_package_test.cmake.in +27 -0
- package/deps/zlib/test/find_package_wrong_components_test.cmake.in +27 -0
- package/deps/zlib/test/infcover.c +672 -0
- package/deps/zlib/test/minigzip.c +592 -0
- package/deps/zlib/treebuild.xml +116 -0
- package/deps/zlib/trees.c +1119 -0
- package/deps/zlib/trees.h +128 -0
- package/deps/zlib/uncompr.c +101 -0
- package/deps/zlib/watcom/watcom_f.mak +43 -0
- package/deps/zlib/watcom/watcom_l.mak +43 -0
- package/deps/zlib/win32/DLL_FAQ.txt +381 -0
- package/deps/zlib/win32/Makefile.bor +109 -0
- package/deps/zlib/win32/Makefile.gcc +177 -0
- package/deps/zlib/win32/Makefile.msc +159 -0
- package/deps/zlib/win32/README-WIN32.txt +103 -0
- package/deps/zlib/win32/VisualC.txt +3 -0
- package/deps/zlib/win32/zlib.def +104 -0
- package/deps/zlib/win32/zlib1.rc +37 -0
- package/deps/zlib/zconf.h.in +551 -0
- package/deps/zlib/zlib.3 +149 -0
- package/deps/zlib/zlib.3.pdf +0 -0
- package/deps/zlib/zlib.h +2057 -0
- package/deps/zlib/zlib.map +116 -0
- package/deps/zlib/zlib.pc.cmakein +14 -0
- package/deps/zlib/zlib.pc.in +14 -0
- package/deps/zlib/zlibConfig.cmake.in +18 -0
- package/deps/zlib/zutil.c +313 -0
- package/deps/zlib/zutil.h +331 -0
- package/dist/index.d.ts +266 -0
- package/dist/index.js +1146 -0
- package/dist/libwz.js +5632 -0
- package/dist/libwz.wasm +0 -0
- package/include/wz/CRC32.h +182 -0
- package/include/wz/PngUtility.h +72 -0
- package/include/wz/PortalType.h +124 -0
- package/include/wz/Properties/WzBinaryProperty.h +70 -0
- package/include/wz/Properties/WzCanvasProperty.h +55 -0
- package/include/wz/Properties/WzConvexProperty.h +34 -0
- package/include/wz/Properties/WzDoubleProperty.h +32 -0
- package/include/wz/Properties/WzFloatProperty.h +30 -0
- package/include/wz/Properties/WzIntProperty.h +30 -0
- package/include/wz/Properties/WzLongProperty.h +30 -0
- package/include/wz/Properties/WzLuaProperty.h +31 -0
- package/include/wz/Properties/WzNullProperty.h +15 -0
- package/include/wz/Properties/WzPngProperty.h +53 -0
- package/include/wz/Properties/WzRawDataProperty.h +46 -0
- package/include/wz/Properties/WzShortProperty.h +31 -0
- package/include/wz/Properties/WzStringProperty.h +32 -0
- package/include/wz/Properties/WzSubProperty.h +35 -0
- package/include/wz/Properties/WzUOLProperty.h +44 -0
- package/include/wz/Properties/WzVectorProperty.h +40 -0
- package/include/wz/Properties/WzVideoProperty.h +43 -0
- package/include/wz/Result.h +58 -0
- package/include/wz/Util/Defines.h +16 -0
- package/include/wz/Util/ListFileParser.h +20 -0
- package/include/wz/Util/WzBinaryReader.h +95 -0
- package/include/wz/Util/WzBinaryWriter.h +72 -0
- package/include/wz/Util/WzBlobDataSource.h +30 -0
- package/include/wz/Util/WzDataSource.h +49 -0
- package/include/wz/Util/WzKeyGenerator.h +28 -0
- package/include/wz/Util/WzMutableKey.h +39 -0
- package/include/wz/Util/WzPath.h +37 -0
- package/include/wz/Util/WzStream.h +86 -0
- package/include/wz/Util/WzTool.h +42 -0
- package/include/wz/WzAESConstant.h +17 -0
- package/include/wz/WzDirectory.h +97 -0
- package/include/wz/WzEnums.h +76 -0
- package/include/wz/WzFile.h +99 -0
- package/include/wz/WzHeader.h +47 -0
- package/include/wz/WzImage.h +97 -0
- package/include/wz/WzImageProperty.h +92 -0
- package/include/wz/WzObject.h +55 -0
- package/include/wz/WzPropertyCollection.h +115 -0
- package/include/wz/wz.h +41 -0
- package/include/wz/wz_api.h +432 -0
- package/package.json +93 -0
- package/src/PngUtility.cpp +328 -0
- package/src/Properties/WzBinaryProperty.cpp +183 -0
- package/src/Properties/WzCanvasProperty.cpp +262 -0
- package/src/Properties/WzConvexProperty.cpp +159 -0
- package/src/Properties/WzDoubleProperty.cpp +12 -0
- package/src/Properties/WzFloatProperty.cpp +17 -0
- package/src/Properties/WzIntProperty.cpp +12 -0
- package/src/Properties/WzLongProperty.cpp +12 -0
- package/src/Properties/WzLuaProperty.cpp +37 -0
- package/src/Properties/WzNullProperty.cpp +11 -0
- package/src/Properties/WzPngProperty.cpp +637 -0
- package/src/Properties/WzRawDataProperty.cpp +116 -0
- package/src/Properties/WzShortProperty.cpp +12 -0
- package/src/Properties/WzStringProperty.cpp +44 -0
- package/src/Properties/WzSubProperty.cpp +129 -0
- package/src/Properties/WzUOLProperty.cpp +136 -0
- package/src/Properties/WzVectorProperty.cpp +22 -0
- package/src/Properties/WzVideoProperty.cpp +115 -0
- package/src/Util/ListFileParser.cpp +48 -0
- package/src/Util/WzBinaryReader.cpp +368 -0
- package/src/Util/WzBinaryWriter.cpp +305 -0
- package/src/Util/WzBlobDataSource.cpp +47 -0
- package/src/Util/WzDataSource.cpp +61 -0
- package/src/Util/WzKeyGenerator.cpp +43 -0
- package/src/Util/WzMutableKey.cpp +59 -0
- package/src/Util/WzStream.cpp +196 -0
- package/src/Util/WzTool.cpp +266 -0
- package/src/WzAESConstant.cpp +12 -0
- package/src/WzDirectory.cpp +669 -0
- package/src/WzEnums.cpp +20 -0
- package/src/WzFile.cpp +450 -0
- package/src/WzImage.cpp +350 -0
- package/src/WzImageProperty.cpp +469 -0
- package/src/WzObject.cpp +174 -0
- package/src/WzPropertyCollection.cpp +84 -0
- package/src/capi/wz_api.cpp +1996 -0
- package/src/node/binding.cpp +1776 -0
|
@@ -0,0 +1,146 @@
|
|
|
1
|
+
name: Configure
|
|
2
|
+
on: [push, pull_request]
|
|
3
|
+
jobs:
|
|
4
|
+
ci-configure:
|
|
5
|
+
name: ${{ matrix.name }}
|
|
6
|
+
runs-on: ${{ matrix.os }}
|
|
7
|
+
strategy:
|
|
8
|
+
fail-fast: false
|
|
9
|
+
matrix:
|
|
10
|
+
include:
|
|
11
|
+
- name: Ubuntu GCC
|
|
12
|
+
os: ubuntu-latest
|
|
13
|
+
compiler: gcc
|
|
14
|
+
configure-args: --warn
|
|
15
|
+
|
|
16
|
+
# Test out of source builds
|
|
17
|
+
- name: Ubuntu GCC OSB
|
|
18
|
+
os: ubuntu-latest
|
|
19
|
+
compiler: gcc
|
|
20
|
+
configure-args: --warn
|
|
21
|
+
build-dir: ../build
|
|
22
|
+
src-dir: ../zlib
|
|
23
|
+
|
|
24
|
+
- name: Ubuntu GCC ARM SF
|
|
25
|
+
os: ubuntu-latest
|
|
26
|
+
compiler: arm-linux-gnueabi-gcc
|
|
27
|
+
configure-args: --warn
|
|
28
|
+
chost: arm-linux-gnueabi
|
|
29
|
+
packages: qemu-system qemu-user gcc-arm-linux-gnueabi libc-dev-armel-cross
|
|
30
|
+
qemu-run: qemu-arm -L /usr/arm-linux-gnueabi
|
|
31
|
+
|
|
32
|
+
- name: Ubuntu GCC ARM HF
|
|
33
|
+
os: ubuntu-latest
|
|
34
|
+
compiler: arm-linux-gnueabihf-gcc
|
|
35
|
+
configure-args: --warn
|
|
36
|
+
chost: arm-linux-gnueabihf
|
|
37
|
+
packages: qemu-system qemu-user gcc-arm-linux-gnueabihf libc-dev-armhf-cross
|
|
38
|
+
qemu-run: qemu-arm -L /usr/arm-linux-gnueabihf
|
|
39
|
+
|
|
40
|
+
- name: Ubuntu GCC AARCH64
|
|
41
|
+
os: ubuntu-latest
|
|
42
|
+
compiler: aarch64-linux-gnu-gcc
|
|
43
|
+
configure-args: --warn
|
|
44
|
+
chost: aarch64-linux-gnu
|
|
45
|
+
packages: qemu-system qemu-user gcc-aarch64-linux-gnu libc-dev-arm64-cross
|
|
46
|
+
qemu-run: qemu-aarch64 -L /usr/aarch64-linux-gnu
|
|
47
|
+
|
|
48
|
+
- name: Ubuntu GCC PPC
|
|
49
|
+
os: ubuntu-latest
|
|
50
|
+
compiler: powerpc-linux-gnu-gcc
|
|
51
|
+
configure-args: --warn --static
|
|
52
|
+
chost: powerpc-linux-gnu
|
|
53
|
+
packages: qemu-system qemu-user gcc-powerpc-linux-gnu libc-dev-powerpc-cross
|
|
54
|
+
qemu-run: qemu-ppc -L /usr/powerpc-linux-gnu
|
|
55
|
+
cflags: -static
|
|
56
|
+
ldflags: -static
|
|
57
|
+
|
|
58
|
+
- name: Ubuntu GCC PPC64
|
|
59
|
+
os: ubuntu-latest
|
|
60
|
+
compiler: powerpc64-linux-gnu-gcc
|
|
61
|
+
configure-args: --warn --static
|
|
62
|
+
chost: powerpc-linux-gnu
|
|
63
|
+
packages: qemu-system qemu-user gcc-powerpc64-linux-gnu libc-dev-ppc64-cross
|
|
64
|
+
qemu-run: qemu-ppc64 -L /usr/powerpc64-linux-gnu
|
|
65
|
+
cflags: -static
|
|
66
|
+
ldflags: -static
|
|
67
|
+
|
|
68
|
+
- name: Ubuntu GCC PPC64LE
|
|
69
|
+
os: ubuntu-latest
|
|
70
|
+
compiler: powerpc64le-linux-gnu-gcc
|
|
71
|
+
configure-args: --warn
|
|
72
|
+
chost: powerpc64le-linux-gnu
|
|
73
|
+
packages: qemu-system qemu-user gcc-powerpc64le-linux-gnu libc-dev-ppc64el-cross
|
|
74
|
+
qemu-run: qemu-ppc64le -L /usr/powerpc64le-linux-gnu
|
|
75
|
+
|
|
76
|
+
- name: Ubuntu GCC S390X
|
|
77
|
+
os: ubuntu-latest
|
|
78
|
+
compiler: s390x-linux-gnu-gcc
|
|
79
|
+
configure-args: --warn --static
|
|
80
|
+
chost: s390x-linux-gnu
|
|
81
|
+
packages: qemu-system qemu-user gcc-s390x-linux-gnu libc-dev-s390x-cross
|
|
82
|
+
qemu-run: qemu-s390x -L /usr/s390x-linux-gnu
|
|
83
|
+
cflags: -static
|
|
84
|
+
ldflags: -static
|
|
85
|
+
|
|
86
|
+
- name: macOS GCC 13
|
|
87
|
+
os: macos-latest
|
|
88
|
+
compiler: gcc-13
|
|
89
|
+
configure-args: --warn
|
|
90
|
+
|
|
91
|
+
- name: macOS GCC 14
|
|
92
|
+
os: macos-latest
|
|
93
|
+
compiler: gcc-14
|
|
94
|
+
configure-args: --warn
|
|
95
|
+
|
|
96
|
+
- name: macOS GCC 15
|
|
97
|
+
os: macos-latest
|
|
98
|
+
compiler: gcc-15
|
|
99
|
+
configure-args: --warn
|
|
100
|
+
|
|
101
|
+
- name: macOS Clang
|
|
102
|
+
os: macos-latest
|
|
103
|
+
compiler: clang
|
|
104
|
+
configure-args: --warn
|
|
105
|
+
|
|
106
|
+
steps:
|
|
107
|
+
- name: Checkout repository
|
|
108
|
+
uses: actions/checkout@v6
|
|
109
|
+
|
|
110
|
+
- name: Install packages (Ubuntu)
|
|
111
|
+
if: runner.os == 'Linux' && matrix.packages
|
|
112
|
+
run: |
|
|
113
|
+
sudo apt-get update
|
|
114
|
+
sudo apt-get install -y ${{ matrix.packages }}
|
|
115
|
+
|
|
116
|
+
- name: Generate project files
|
|
117
|
+
run: |
|
|
118
|
+
[ -d ${{ matrix.build-dir || '.' }} ] || mkdir ${{ matrix.build-dir || '.' }}
|
|
119
|
+
cd ${{ matrix.build-dir || '.' }}
|
|
120
|
+
${{ matrix.src-dir || '.' }}/configure ${{ matrix.configure-args }}
|
|
121
|
+
env:
|
|
122
|
+
CC: ${{ matrix.compiler }}
|
|
123
|
+
CFLAGS: ${{ matrix.cflags }}
|
|
124
|
+
LDFLAGS: ${{ matrix.ldflags }}
|
|
125
|
+
CHOST: ${{ matrix.chost }}
|
|
126
|
+
|
|
127
|
+
- name: Compile source code
|
|
128
|
+
run: make -j2
|
|
129
|
+
working-directory: ${{ matrix.build-dir }}
|
|
130
|
+
|
|
131
|
+
- name: Run test cases
|
|
132
|
+
run: |
|
|
133
|
+
make test
|
|
134
|
+
# make cover
|
|
135
|
+
working-directory: ${{ matrix.build-dir }}
|
|
136
|
+
env:
|
|
137
|
+
QEMU_RUN: ${{ matrix.qemu-run }}
|
|
138
|
+
|
|
139
|
+
- name: Upload build errors
|
|
140
|
+
uses: actions/upload-artifact@v6
|
|
141
|
+
if: failure()
|
|
142
|
+
with:
|
|
143
|
+
name: ${{ matrix.name }} (configure)
|
|
144
|
+
path: |
|
|
145
|
+
${{ matrix.build-dir || '.' }}/configure.log
|
|
146
|
+
retention-days: 7
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
name: contribs
|
|
2
|
+
on: [push, pull_request]
|
|
3
|
+
jobs:
|
|
4
|
+
ci-cmake:
|
|
5
|
+
name: ${{ matrix.name }}
|
|
6
|
+
runs-on: ${{ matrix.os }}
|
|
7
|
+
strategy:
|
|
8
|
+
fail-fast: false
|
|
9
|
+
matrix:
|
|
10
|
+
include:
|
|
11
|
+
- name: Ubuntu all contribs
|
|
12
|
+
os: ubuntu-latest
|
|
13
|
+
cmake-args: -DZLIB_BUILD_ADA=ON -DZLIB_BUILD_BLAST=ON -DZLIB_BUILD_IOSTREAM3=ON -DZLIB_BUILD_MINIZIP=ON -DZLIB_BUILD_PUFF=ON -DZLIB_WITH_INFBACK9=ON -DZLIB_WITH_CRC32VX=ON -DZLIB_WITH_GVMAT64=ON
|
|
14
|
+
src_dir: .
|
|
15
|
+
|
|
16
|
+
- name: Ubuntu ADA
|
|
17
|
+
os: ubuntu-latest
|
|
18
|
+
src_dir: contrib/ada
|
|
19
|
+
install_zlib: yes
|
|
20
|
+
|
|
21
|
+
- name: Ubuntu BLAST
|
|
22
|
+
os: ubuntu-latest
|
|
23
|
+
src_dir: contrib/blast
|
|
24
|
+
install_zlib: yes
|
|
25
|
+
|
|
26
|
+
- name: Ubuntu IOSTREAM
|
|
27
|
+
os: ubuntu-latest
|
|
28
|
+
src_dir: contrib/iostream3
|
|
29
|
+
install_zlib: yes
|
|
30
|
+
|
|
31
|
+
- name: Ubuntu MINIZIP
|
|
32
|
+
os: ubuntu-latest
|
|
33
|
+
src_dir: contrib/minizip
|
|
34
|
+
install_zlib: yes
|
|
35
|
+
|
|
36
|
+
- name: Ubuntu PUFF
|
|
37
|
+
os: ubuntu-latest
|
|
38
|
+
src_dir: contrib/puff
|
|
39
|
+
install_zlib: yes
|
|
40
|
+
|
|
41
|
+
steps:
|
|
42
|
+
- name: Checkout repository
|
|
43
|
+
uses: actions/checkout@v4
|
|
44
|
+
|
|
45
|
+
- name: Install packages
|
|
46
|
+
run: |
|
|
47
|
+
sudo apt install gnat libbz2-dev
|
|
48
|
+
|
|
49
|
+
- name: Install zlib
|
|
50
|
+
if: ${{ matrix.install_zlib == 'yes' }}
|
|
51
|
+
run: |
|
|
52
|
+
cmake -S . -B ../build-zlib -DCMAKE_BUILD_TYPE=Release
|
|
53
|
+
cmake --build ../build-zlib --config Release
|
|
54
|
+
sudo cmake --install ../build-zlib
|
|
55
|
+
|
|
56
|
+
- name: Generate project files
|
|
57
|
+
run: cmake -S ${{ matrix.src_dir }} -B ../build ${{ matrix.cmake-args }} -DCMAKE_BUILD_TYPE=Release
|
|
58
|
+
|
|
59
|
+
- name: Compile source code
|
|
60
|
+
run: cmake --build ../build --config Release
|
|
61
|
+
|
|
62
|
+
- name: Run test cases
|
|
63
|
+
run: ctest -C Release --output-on-failure --max-width 120
|
|
64
|
+
working-directory: ../build
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
name: OSS-Fuzz
|
|
2
|
+
on: [pull_request]
|
|
3
|
+
jobs:
|
|
4
|
+
Fuzzing:
|
|
5
|
+
runs-on: ubuntu-latest
|
|
6
|
+
steps:
|
|
7
|
+
- name: Build Fuzzers
|
|
8
|
+
uses: google/oss-fuzz/infra/cifuzz/actions/build_fuzzers@master
|
|
9
|
+
with:
|
|
10
|
+
oss-fuzz-project-name: 'zlib'
|
|
11
|
+
dry-run: false
|
|
12
|
+
|
|
13
|
+
- name: Run Fuzzers
|
|
14
|
+
uses: google/oss-fuzz/infra/cifuzz/actions/run_fuzzers@master
|
|
15
|
+
with:
|
|
16
|
+
oss-fuzz-project-name: 'zlib'
|
|
17
|
+
fuzz-seconds: 300
|
|
18
|
+
dry-run: false
|
|
19
|
+
|
|
20
|
+
- name: Upload Crash
|
|
21
|
+
uses: actions/upload-artifact@v6
|
|
22
|
+
if: failure()
|
|
23
|
+
with:
|
|
24
|
+
name: artifacts
|
|
25
|
+
path: ./out/artifacts
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
name: mingw/cygwin
|
|
2
|
+
|
|
3
|
+
on: [push, pull_request]
|
|
4
|
+
|
|
5
|
+
jobs:
|
|
6
|
+
MSys:
|
|
7
|
+
runs-on: ${{ matrix.os || 'windows-latest' }}
|
|
8
|
+
strategy:
|
|
9
|
+
fail-fast: false
|
|
10
|
+
matrix:
|
|
11
|
+
sys: [mingw32, mingw64, ucrt64, clang64, clangarm64]
|
|
12
|
+
include:
|
|
13
|
+
- sys: clangarm64
|
|
14
|
+
os: windows-11-arm
|
|
15
|
+
name: MSys - ${{ matrix.sys }}
|
|
16
|
+
defaults:
|
|
17
|
+
run:
|
|
18
|
+
shell: msys2 {0}
|
|
19
|
+
steps:
|
|
20
|
+
- name: Checkout
|
|
21
|
+
uses: actions/checkout@v6
|
|
22
|
+
with:
|
|
23
|
+
fetch-depth: 0
|
|
24
|
+
- name: Setup MSYS2
|
|
25
|
+
uses: msys2/setup-msys2@v2
|
|
26
|
+
with:
|
|
27
|
+
msystem: ${{ matrix.sys }}
|
|
28
|
+
update: true
|
|
29
|
+
install: >-
|
|
30
|
+
make
|
|
31
|
+
pacboy: >-
|
|
32
|
+
toolchain:p
|
|
33
|
+
cmake:p
|
|
34
|
+
- name: Configure
|
|
35
|
+
if: matrix.sys != 'clang64'
|
|
36
|
+
run: |
|
|
37
|
+
cmake -G"Unix Makefiles" \
|
|
38
|
+
-S . \
|
|
39
|
+
-B build \
|
|
40
|
+
-DCMAKE_VERBOSE_MAKEFILE=ON \
|
|
41
|
+
-DCMAKE_BUILD_TYPE=Release \
|
|
42
|
+
-DZLIB_BUILD_MINIZIP=ON \
|
|
43
|
+
-DMINIZIP_ENABLE_BZIP2=ON
|
|
44
|
+
- name: Configure clang64
|
|
45
|
+
if: matrix.sys == 'clang64'
|
|
46
|
+
run: |
|
|
47
|
+
CC=clang cmake -G"Unix Makefiles" \
|
|
48
|
+
-S . \
|
|
49
|
+
-B build \
|
|
50
|
+
-DCMAKE_VERBOSE_MAKEFILE=ON \
|
|
51
|
+
-DCMAKE_BUILD_TYPE=Release \
|
|
52
|
+
-DZLIB_BUILD_MINIZIP=ON \
|
|
53
|
+
-DMINIZIP_ENABLE_BZIP2=ON
|
|
54
|
+
- name: Build
|
|
55
|
+
run: cmake --build build --config Release
|
|
56
|
+
- name: Run tests
|
|
57
|
+
run: ctest --output-on-failure --test-dir build -C Release
|
|
58
|
+
|
|
59
|
+
cygwin:
|
|
60
|
+
strategy:
|
|
61
|
+
fail-fast: false
|
|
62
|
+
runs-on: windows-latest
|
|
63
|
+
defaults:
|
|
64
|
+
run:
|
|
65
|
+
shell: C:\cygwin\bin\bash.exe --login -o igncr '{0}'
|
|
66
|
+
name: Cygwin
|
|
67
|
+
steps:
|
|
68
|
+
- name: Checkout
|
|
69
|
+
uses: actions/checkout@v6
|
|
70
|
+
with:
|
|
71
|
+
fetch-depth: 0
|
|
72
|
+
- name: Setup cygwin
|
|
73
|
+
uses: cygwin/cygwin-install-action@master
|
|
74
|
+
with:
|
|
75
|
+
packages: >-
|
|
76
|
+
cmake
|
|
77
|
+
cygwin-devel
|
|
78
|
+
gcc-core
|
|
79
|
+
gcc-g++
|
|
80
|
+
ninja
|
|
81
|
+
- name: Configure
|
|
82
|
+
run: |
|
|
83
|
+
cmake /cygdrive/d/a/zlib/zlib \
|
|
84
|
+
-B build \
|
|
85
|
+
-DCMAKE_BUILD_TYPE=Release \
|
|
86
|
+
-DZLIB_BUILD_MINIZIP=ON \
|
|
87
|
+
-DMINIZIP_ENABLE_BZIP2=OFF \
|
|
88
|
+
-G Ninja
|
|
89
|
+
- name: Build
|
|
90
|
+
run: cmake --build build --config Release -v -j1
|
|
91
|
+
- name: Run tests
|
|
92
|
+
run: ctest --output-on-failure --test-dir build -C Release
|
|
@@ -0,0 +1,153 @@
|
|
|
1
|
+
name: anyVM-OSes
|
|
2
|
+
|
|
3
|
+
on: [push, pull_request]
|
|
4
|
+
|
|
5
|
+
jobs:
|
|
6
|
+
|
|
7
|
+
dragonflybsd:
|
|
8
|
+
runs-on: ubuntu-latest
|
|
9
|
+
name: DragonflyBSD
|
|
10
|
+
steps:
|
|
11
|
+
- uses: actions/checkout@v6
|
|
12
|
+
- name: DragonflyBSD
|
|
13
|
+
uses: vmactions/dragonflybsd-vm@v1
|
|
14
|
+
with:
|
|
15
|
+
copyback: false
|
|
16
|
+
prepare: |
|
|
17
|
+
pkg install -y cmake gcc14 bzip2
|
|
18
|
+
|
|
19
|
+
run: |
|
|
20
|
+
cmake . -B build -DZLIB_BUILD_MINIZIP=ON -DMINIZIP_ENABLE_BZIP2=ON
|
|
21
|
+
cmake --build build/
|
|
22
|
+
ctest --test-dir build --output-on-failure
|
|
23
|
+
|
|
24
|
+
freebsd:
|
|
25
|
+
runs-on: ubuntu-latest
|
|
26
|
+
name: FreeBSD - ${{ matrix.name }}
|
|
27
|
+
strategy:
|
|
28
|
+
fail-fast: false
|
|
29
|
+
matrix:
|
|
30
|
+
include:
|
|
31
|
+
- name: aarch64
|
|
32
|
+
- name: x86_64
|
|
33
|
+
steps:
|
|
34
|
+
- uses: actions/checkout@v6
|
|
35
|
+
- name: FreeBSD - ${{ matrix.name }}
|
|
36
|
+
uses: vmactions/freebsd-vm@v1
|
|
37
|
+
with:
|
|
38
|
+
arch: ${{ matrix.name }}
|
|
39
|
+
copyback: false
|
|
40
|
+
release: "15.0"
|
|
41
|
+
prepare: |
|
|
42
|
+
pkg install -y cmake gcc14 bzip2
|
|
43
|
+
|
|
44
|
+
run: |
|
|
45
|
+
cmake . -B build -DZLIB_BUILD_MINIZIP=ON -DMINIZIP_ENABLE_BZIP2=ON
|
|
46
|
+
cmake --build build/
|
|
47
|
+
ctest --test-dir build --output-on-failure -E .*summary
|
|
48
|
+
|
|
49
|
+
netbsd:
|
|
50
|
+
runs-on: ubuntu-latest
|
|
51
|
+
name: NetBSD - ${{ matrix.name }}
|
|
52
|
+
strategy:
|
|
53
|
+
fail-fast: false
|
|
54
|
+
matrix:
|
|
55
|
+
include:
|
|
56
|
+
- name: aarch64
|
|
57
|
+
- name: x86_64
|
|
58
|
+
steps:
|
|
59
|
+
- uses: actions/checkout@v6
|
|
60
|
+
- name: NetBSD - ${{ matrix.name }}
|
|
61
|
+
uses: vmactions/netbsd-vm@v1
|
|
62
|
+
with:
|
|
63
|
+
copyback: false
|
|
64
|
+
prepare: |
|
|
65
|
+
export PATH="/usr/pkg/sbin:/usr/pkg/bin:$PATH"
|
|
66
|
+
export PKG_PATH="https://cdn.NetBSD.org/pub/pkgsrc/packages"
|
|
67
|
+
export PKG_PATH="$PKG_PATH/$(uname -s)/$(uname -m)/$(uname -r|cut -f '1 2' -d.)/All"
|
|
68
|
+
/usr/sbin/pkg_add cmake
|
|
69
|
+
/usr/sbin/pkg_add bzip2
|
|
70
|
+
|
|
71
|
+
run: |
|
|
72
|
+
cmake . -B build -DZLIB_BUILD_MINIZIP=ON -DMINIZIP_ENABLE_BZIP2=ON
|
|
73
|
+
cmake --build build/
|
|
74
|
+
ctest --test-dir build --output-on-failure
|
|
75
|
+
|
|
76
|
+
omni-os:
|
|
77
|
+
runs-on: ubuntu-latest
|
|
78
|
+
name: OmniOS
|
|
79
|
+
steps:
|
|
80
|
+
- uses: actions/checkout@v6
|
|
81
|
+
- name: OmniOS
|
|
82
|
+
uses: vmactions/omnios-vm@v1
|
|
83
|
+
with:
|
|
84
|
+
copyback: false
|
|
85
|
+
prepare: |
|
|
86
|
+
pkg install cmake gcc14 make bzip2
|
|
87
|
+
|
|
88
|
+
run: |
|
|
89
|
+
cmake . -B build -DZLIB_BUILD_MINIZIP=ON -DMINIZIP_ENABLE_BZIP2=ON
|
|
90
|
+
cmake --build build/
|
|
91
|
+
ctest --test-dir build --output-on-failure
|
|
92
|
+
|
|
93
|
+
openbsd:
|
|
94
|
+
runs-on: ubuntu-latest
|
|
95
|
+
name: OpenBSD - ${{ matrix.name }}
|
|
96
|
+
strategy:
|
|
97
|
+
fail-fast: false
|
|
98
|
+
matrix:
|
|
99
|
+
include:
|
|
100
|
+
- name: aarch64
|
|
101
|
+
- name: x86_64
|
|
102
|
+
- name: riscv64
|
|
103
|
+
steps:
|
|
104
|
+
- uses: actions/checkout@v6
|
|
105
|
+
- name: OpenBSD - ${{ matrix.name }}
|
|
106
|
+
uses: vmactions/openbsd-vm@v1
|
|
107
|
+
with:
|
|
108
|
+
arch: ${{ matrix.name }}
|
|
109
|
+
copyback: false
|
|
110
|
+
prepare: |
|
|
111
|
+
pkg_add cmake
|
|
112
|
+
bzip2
|
|
113
|
+
|
|
114
|
+
run: |
|
|
115
|
+
cmake . -B build -DZLIB_BUILD_MINIZIP=ON -DMINIZIP_ENABLE_BZIP2=ON
|
|
116
|
+
cmake --build build/
|
|
117
|
+
ctest --test-dir build
|
|
118
|
+
|
|
119
|
+
# openindiana:
|
|
120
|
+
# runs-on: ubuntu-latest
|
|
121
|
+
# name: OpenIndiana
|
|
122
|
+
# steps:
|
|
123
|
+
# - uses: actions/checkout@v6
|
|
124
|
+
# - name: OpenIndiana
|
|
125
|
+
# uses: vmactions/openindiana-vm@v0
|
|
126
|
+
# with:
|
|
127
|
+
# copyback: false
|
|
128
|
+
# prepare: |
|
|
129
|
+
# pkg install cmake gcc-14 make bzip2
|
|
130
|
+
|
|
131
|
+
# run: |
|
|
132
|
+
# cmake . -B build -DZLIB_BUILD_MINIZIP=ON -DMINIZIP_ENABLE_BZIP2=ON
|
|
133
|
+
# cmake --build build/
|
|
134
|
+
# ctest --test-dir build --output-on-failure
|
|
135
|
+
|
|
136
|
+
solaris:
|
|
137
|
+
runs-on: ubuntu-latest
|
|
138
|
+
name: Solaris
|
|
139
|
+
steps:
|
|
140
|
+
- uses: actions/checkout@v6
|
|
141
|
+
- name: Solaris
|
|
142
|
+
uses: vmactions/solaris-vm@v1
|
|
143
|
+
with:
|
|
144
|
+
copyback: false
|
|
145
|
+
release: "11.4-gcc"
|
|
146
|
+
prepare: |
|
|
147
|
+
pkgutil -U
|
|
148
|
+
pkgutil -y -i cmake bzip2
|
|
149
|
+
|
|
150
|
+
run: |
|
|
151
|
+
cmake . -B build -DZLIB_BUILD_MINIZIP=ON -DMINIZIP_ENABLE_BZIP2=ON
|
|
152
|
+
cmake --build build/
|
|
153
|
+
ctest --test-dir build --output-on-failure
|
|
@@ -0,0 +1,134 @@
|
|
|
1
|
+
# Copied from https://github.com/bazelbuild/bazel-central-registry/tree/main/modules/zlib/1.3.1.bcr.4/patches
|
|
2
|
+
# Adapted from https://github.com/protocolbuffers/protobuf/blob/master/third_party/zlib.BUILD
|
|
3
|
+
|
|
4
|
+
# Copyright 2008 Google Inc. All rights reserved.
|
|
5
|
+
#
|
|
6
|
+
# Redistribution and use in source and binary forms, with or without
|
|
7
|
+
# modification, are permitted provided that the following conditions are
|
|
8
|
+
# met:
|
|
9
|
+
#
|
|
10
|
+
# * Redistributions of source code must retain the above copyright
|
|
11
|
+
# notice, this list of conditions and the following disclaimer.
|
|
12
|
+
# * Redistributions in binary form must reproduce the above
|
|
13
|
+
# copyright notice, this list of conditions and the following disclaimer
|
|
14
|
+
# in the documentation and/or other materials provided with the
|
|
15
|
+
# distribution.
|
|
16
|
+
# * Neither the name of Google Inc. nor the names of its
|
|
17
|
+
# contributors may be used to endorse or promote products derived from
|
|
18
|
+
# this software without specific prior written permission.
|
|
19
|
+
#
|
|
20
|
+
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
|
21
|
+
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
|
22
|
+
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
|
23
|
+
# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
|
24
|
+
# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
|
25
|
+
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
|
26
|
+
# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
|
27
|
+
# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
|
28
|
+
# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
|
29
|
+
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
30
|
+
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
31
|
+
#
|
|
32
|
+
# Code generated by the Protocol Buffer compiler is owned by the owner
|
|
33
|
+
# of the input file used when generating it. This code is not
|
|
34
|
+
# standalone and requires a support library to be linked with it. This
|
|
35
|
+
# support library is itself covered by the above license.
|
|
36
|
+
|
|
37
|
+
load("@rules_cc//cc:defs.bzl", "cc_library")
|
|
38
|
+
load("@rules_license//rules:license.bzl", "license")
|
|
39
|
+
|
|
40
|
+
package(
|
|
41
|
+
default_applicable_licenses = [":license"],
|
|
42
|
+
)
|
|
43
|
+
|
|
44
|
+
license(
|
|
45
|
+
name = "license",
|
|
46
|
+
license_kinds = ["@rules_license//licenses/spdx:Zlib"],
|
|
47
|
+
license_text = "LICENSE",
|
|
48
|
+
)
|
|
49
|
+
|
|
50
|
+
exports_files([
|
|
51
|
+
"LICENSE",
|
|
52
|
+
])
|
|
53
|
+
|
|
54
|
+
_ZLIB_HEADERS = [
|
|
55
|
+
"crc32.h",
|
|
56
|
+
"deflate.h",
|
|
57
|
+
"gzguts.h",
|
|
58
|
+
"inffast.h",
|
|
59
|
+
"inffixed.h",
|
|
60
|
+
"inflate.h",
|
|
61
|
+
"inftrees.h",
|
|
62
|
+
"trees.h",
|
|
63
|
+
"zconf.h",
|
|
64
|
+
"zlib.h",
|
|
65
|
+
"zutil.h",
|
|
66
|
+
]
|
|
67
|
+
|
|
68
|
+
_ZLIB_PREFIXED_HEADERS = ["zlib/include/" + hdr for hdr in _ZLIB_HEADERS]
|
|
69
|
+
|
|
70
|
+
# In order to limit the damage from the `includes` propagation
|
|
71
|
+
# via `:zlib`, copy the public headers to a subdirectory and
|
|
72
|
+
# expose those.
|
|
73
|
+
genrule(
|
|
74
|
+
name = "copy_public_headers",
|
|
75
|
+
srcs = _ZLIB_HEADERS,
|
|
76
|
+
outs = _ZLIB_PREFIXED_HEADERS,
|
|
77
|
+
cmd_bash = "cp $(SRCS) $(@D)/zlib/include/",
|
|
78
|
+
cmd_bat = " && ".join(
|
|
79
|
+
["@copy /Y \"$(location %s)\" \"$(@D)\\zlib\\include\\\" >NUL" %
|
|
80
|
+
s for s in _ZLIB_HEADERS],
|
|
81
|
+
),
|
|
82
|
+
)
|
|
83
|
+
|
|
84
|
+
config_setting(
|
|
85
|
+
name = "mingw_gcc_compiler",
|
|
86
|
+
flag_values = {
|
|
87
|
+
"@bazel_tools//tools/cpp:compiler": "mingw-gcc",
|
|
88
|
+
},
|
|
89
|
+
visibility = [":__subpackages__"],
|
|
90
|
+
)
|
|
91
|
+
|
|
92
|
+
cc_library(
|
|
93
|
+
name = "z",
|
|
94
|
+
srcs = [
|
|
95
|
+
"adler32.c",
|
|
96
|
+
"compress.c",
|
|
97
|
+
"crc32.c",
|
|
98
|
+
"deflate.c",
|
|
99
|
+
"gzclose.c",
|
|
100
|
+
"gzlib.c",
|
|
101
|
+
"gzread.c",
|
|
102
|
+
"gzwrite.c",
|
|
103
|
+
"infback.c",
|
|
104
|
+
"inffast.c",
|
|
105
|
+
"inflate.c",
|
|
106
|
+
"inftrees.c",
|
|
107
|
+
"trees.c",
|
|
108
|
+
"uncompr.c",
|
|
109
|
+
"zutil.c",
|
|
110
|
+
# Include the un-prefixed headers in srcs to work
|
|
111
|
+
# around the fact that zlib isn't consistent in its
|
|
112
|
+
# choice of <> or "" delimiter when including itself.
|
|
113
|
+
] + _ZLIB_HEADERS,
|
|
114
|
+
hdrs = _ZLIB_PREFIXED_HEADERS,
|
|
115
|
+
copts = select({
|
|
116
|
+
":mingw_gcc_compiler": [
|
|
117
|
+
"-fpermissive",
|
|
118
|
+
],
|
|
119
|
+
"@platforms//os:windows": [],
|
|
120
|
+
"//conditions:default": [
|
|
121
|
+
"-Wno-deprecated-non-prototype",
|
|
122
|
+
"-Wno-unused-variable",
|
|
123
|
+
"-Wno-implicit-function-declaration",
|
|
124
|
+
],
|
|
125
|
+
}),
|
|
126
|
+
includes = ["zlib/include/"],
|
|
127
|
+
visibility = ["//visibility:public"],
|
|
128
|
+
)
|
|
129
|
+
|
|
130
|
+
alias(
|
|
131
|
+
name = "zlib",
|
|
132
|
+
actual = ":z",
|
|
133
|
+
visibility = ["//visibility:public"],
|
|
134
|
+
)
|