hane 1.0.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/README.md +32 -0
- package/binding.gyp +87 -0
- package/dist/index.d.ts +34 -0
- package/dist/index.js +1 -0
- package/package.json +33 -0
- package/src/native/addon.cc +231 -0
- package/src/native/zsign_driver.cc +87 -0
- package/src/native/zsign_driver.h +38 -0
- package/vendor/zlib/.cmake-format.yaml +245 -0
- package/vendor/zlib/.github/workflows/c-std.yml +230 -0
- package/vendor/zlib/.github/workflows/cmake.yml +112 -0
- package/vendor/zlib/.github/workflows/configure.yml +136 -0
- package/vendor/zlib/.github/workflows/fuzz.yml +25 -0
- package/vendor/zlib/.github/workflows/msys-cygwin.yml +77 -0
- package/vendor/zlib/BUILD.bazel +134 -0
- package/vendor/zlib/CMakeLists.txt +330 -0
- package/vendor/zlib/ChangeLog +1621 -0
- package/vendor/zlib/FAQ +367 -0
- package/vendor/zlib/INDEX +68 -0
- package/vendor/zlib/LICENSE +22 -0
- package/vendor/zlib/MODULE.bazel +9 -0
- package/vendor/zlib/Makefile.in +419 -0
- package/vendor/zlib/README +115 -0
- package/vendor/zlib/README-cmake.md +83 -0
- package/vendor/zlib/adler32.c +164 -0
- package/vendor/zlib/amiga/Makefile.pup +69 -0
- package/vendor/zlib/amiga/Makefile.sas +68 -0
- package/vendor/zlib/compress.c +75 -0
- package/vendor/zlib/configure +966 -0
- package/vendor/zlib/contrib/README.contrib +57 -0
- package/vendor/zlib/contrib/ada/buffer_demo.adb +106 -0
- package/vendor/zlib/contrib/ada/mtest.adb +156 -0
- package/vendor/zlib/contrib/ada/read.adb +156 -0
- package/vendor/zlib/contrib/ada/readme.txt +65 -0
- package/vendor/zlib/contrib/ada/test.adb +463 -0
- package/vendor/zlib/contrib/ada/zlib-streams.adb +225 -0
- package/vendor/zlib/contrib/ada/zlib-streams.ads +114 -0
- package/vendor/zlib/contrib/ada/zlib-thin.adb +142 -0
- package/vendor/zlib/contrib/ada/zlib-thin.ads +450 -0
- package/vendor/zlib/contrib/ada/zlib.adb +701 -0
- package/vendor/zlib/contrib/ada/zlib.ads +328 -0
- package/vendor/zlib/contrib/ada/zlib.gpr +20 -0
- package/vendor/zlib/contrib/blast/Makefile +8 -0
- package/vendor/zlib/contrib/blast/README +4 -0
- package/vendor/zlib/contrib/blast/blast.c +466 -0
- package/vendor/zlib/contrib/blast/blast.h +83 -0
- package/vendor/zlib/contrib/blast/test.pk +0 -0
- package/vendor/zlib/contrib/blast/test.txt +1 -0
- package/vendor/zlib/contrib/delphi/ZLib.pas +557 -0
- package/vendor/zlib/contrib/delphi/ZLibConst.pas +11 -0
- package/vendor/zlib/contrib/delphi/readme.txt +76 -0
- package/vendor/zlib/contrib/delphi/zlibd32.mak +99 -0
- package/vendor/zlib/contrib/dotzlib/DotZLib/AssemblyInfo.cs +58 -0
- package/vendor/zlib/contrib/dotzlib/DotZLib/ChecksumImpl.cs +202 -0
- package/vendor/zlib/contrib/dotzlib/DotZLib/CircularBuffer.cs +83 -0
- package/vendor/zlib/contrib/dotzlib/DotZLib/CodecBase.cs +198 -0
- package/vendor/zlib/contrib/dotzlib/DotZLib/Deflater.cs +106 -0
- package/vendor/zlib/contrib/dotzlib/DotZLib/DotZLib.cs +288 -0
- package/vendor/zlib/contrib/dotzlib/DotZLib/DotZLib.csproj +141 -0
- package/vendor/zlib/contrib/dotzlib/DotZLib/GZipStream.cs +301 -0
- package/vendor/zlib/contrib/dotzlib/DotZLib/Inflater.cs +105 -0
- package/vendor/zlib/contrib/dotzlib/DotZLib/UnitTests.cs +274 -0
- package/vendor/zlib/contrib/dotzlib/DotZLib.build +33 -0
- package/vendor/zlib/contrib/dotzlib/DotZLib.chm +0 -0
- package/vendor/zlib/contrib/dotzlib/DotZLib.sln +21 -0
- package/vendor/zlib/contrib/dotzlib/LICENSE_1_0.txt +23 -0
- package/vendor/zlib/contrib/dotzlib/readme.txt +58 -0
- package/vendor/zlib/contrib/gcc_gvmat64/gvmat64.S +574 -0
- package/vendor/zlib/contrib/infback9/README +1 -0
- package/vendor/zlib/contrib/infback9/infback9.c +603 -0
- package/vendor/zlib/contrib/infback9/infback9.h +37 -0
- package/vendor/zlib/contrib/infback9/inffix9.h +107 -0
- package/vendor/zlib/contrib/infback9/inflate9.h +47 -0
- package/vendor/zlib/contrib/infback9/inftree9.c +319 -0
- package/vendor/zlib/contrib/infback9/inftree9.h +61 -0
- package/vendor/zlib/contrib/iostream/test.cpp +24 -0
- package/vendor/zlib/contrib/iostream/zfstream.cpp +329 -0
- package/vendor/zlib/contrib/iostream/zfstream.h +128 -0
- package/vendor/zlib/contrib/iostream2/zstream.h +307 -0
- package/vendor/zlib/contrib/iostream2/zstream_test.cpp +25 -0
- package/vendor/zlib/contrib/iostream3/README +35 -0
- package/vendor/zlib/contrib/iostream3/TODO +17 -0
- package/vendor/zlib/contrib/iostream3/test.cc +50 -0
- package/vendor/zlib/contrib/iostream3/zfstream.cc +479 -0
- package/vendor/zlib/contrib/iostream3/zfstream.h +466 -0
- package/vendor/zlib/contrib/minizip/CMakeLists.txt +380 -0
- package/vendor/zlib/contrib/minizip/Makefile +37 -0
- package/vendor/zlib/contrib/minizip/Makefile.am +45 -0
- package/vendor/zlib/contrib/minizip/MiniZip64_Changes.txt +6 -0
- package/vendor/zlib/contrib/minizip/MiniZip64_info.txt +74 -0
- package/vendor/zlib/contrib/minizip/configure.ac +32 -0
- package/vendor/zlib/contrib/minizip/crypt.h +128 -0
- package/vendor/zlib/contrib/minizip/ints.h +57 -0
- package/vendor/zlib/contrib/minizip/ioapi.c +231 -0
- package/vendor/zlib/contrib/minizip/ioapi.h +183 -0
- package/vendor/zlib/contrib/minizip/iowin32.c +448 -0
- package/vendor/zlib/contrib/minizip/iowin32.h +28 -0
- package/vendor/zlib/contrib/minizip/make_vms.com +25 -0
- package/vendor/zlib/contrib/minizip/miniunz.c +647 -0
- package/vendor/zlib/contrib/minizip/miniunzip.1 +63 -0
- package/vendor/zlib/contrib/minizip/minizip.1 +46 -0
- package/vendor/zlib/contrib/minizip/minizip.c +512 -0
- package/vendor/zlib/contrib/minizip/minizip.pc.in +12 -0
- package/vendor/zlib/contrib/minizip/minizip.pc.txt +13 -0
- package/vendor/zlib/contrib/minizip/minizipConfig.cmake.in +35 -0
- package/vendor/zlib/contrib/minizip/mztools.c +288 -0
- package/vendor/zlib/contrib/minizip/mztools.h +37 -0
- package/vendor/zlib/contrib/minizip/skipset.h +361 -0
- package/vendor/zlib/contrib/minizip/test/CMakeLists.txt +121 -0
- package/vendor/zlib/contrib/minizip/test/add_subdirectory_exclude_test.cmake.in +29 -0
- package/vendor/zlib/contrib/minizip/test/add_subdirectory_test.cmake.in +28 -0
- package/vendor/zlib/contrib/minizip/test/find_package_test.cmake.in +25 -0
- package/vendor/zlib/contrib/minizip/test/test_helper.cm +32 -0
- package/vendor/zlib/contrib/minizip/unzip.c +1981 -0
- package/vendor/zlib/contrib/minizip/unzip.h +441 -0
- package/vendor/zlib/contrib/minizip/zip.c +2199 -0
- package/vendor/zlib/contrib/minizip/zip.h +370 -0
- package/vendor/zlib/contrib/nuget/nuget.csproj +43 -0
- package/vendor/zlib/contrib/nuget/nuget.sln +22 -0
- package/vendor/zlib/contrib/pascal/example.pas +599 -0
- package/vendor/zlib/contrib/pascal/readme.txt +76 -0
- package/vendor/zlib/contrib/pascal/zlibd32.mak +99 -0
- package/vendor/zlib/contrib/pascal/zlibpas.pas +276 -0
- package/vendor/zlib/contrib/puff/Makefile +42 -0
- package/vendor/zlib/contrib/puff/README +63 -0
- package/vendor/zlib/contrib/puff/puff.c +840 -0
- package/vendor/zlib/contrib/puff/puff.h +35 -0
- package/vendor/zlib/contrib/puff/pufftest.c +169 -0
- package/vendor/zlib/contrib/puff/zeros.raw +0 -0
- package/vendor/zlib/contrib/testzlib/testzlib.c +275 -0
- package/vendor/zlib/contrib/testzlib/testzlib.txt +10 -0
- package/vendor/zlib/contrib/untgz/Makefile +14 -0
- package/vendor/zlib/contrib/untgz/Makefile.msc +17 -0
- package/vendor/zlib/contrib/untgz/untgz.c +667 -0
- package/vendor/zlib/contrib/vstudio/readme.txt +81 -0
- package/vendor/zlib/contrib/vstudio/vc10/miniunz.vcxproj +310 -0
- package/vendor/zlib/contrib/vstudio/vc10/miniunz.vcxproj.filters +22 -0
- package/vendor/zlib/contrib/vstudio/vc10/minizip.vcxproj +307 -0
- package/vendor/zlib/contrib/vstudio/vc10/minizip.vcxproj.filters +22 -0
- package/vendor/zlib/contrib/vstudio/vc10/testzlib.vcxproj +412 -0
- package/vendor/zlib/contrib/vstudio/vc10/testzlib.vcxproj.filters +55 -0
- package/vendor/zlib/contrib/vstudio/vc10/testzlibdll.vcxproj +310 -0
- package/vendor/zlib/contrib/vstudio/vc10/testzlibdll.vcxproj.filters +22 -0
- package/vendor/zlib/contrib/vstudio/vc10/zlib.rc +32 -0
- package/vendor/zlib/contrib/vstudio/vc10/zlibstat.vcxproj +449 -0
- package/vendor/zlib/contrib/vstudio/vc10/zlibstat.vcxproj.filters +74 -0
- package/vendor/zlib/contrib/vstudio/vc10/zlibvc.def +161 -0
- package/vendor/zlib/contrib/vstudio/vc10/zlibvc.sln +135 -0
- package/vendor/zlib/contrib/vstudio/vc10/zlibvc.vcxproj +633 -0
- package/vendor/zlib/contrib/vstudio/vc10/zlibvc.vcxproj.filters +115 -0
- package/vendor/zlib/contrib/vstudio/vc11/miniunz.vcxproj +314 -0
- package/vendor/zlib/contrib/vstudio/vc11/minizip.vcxproj +311 -0
- package/vendor/zlib/contrib/vstudio/vc11/testzlib.vcxproj +418 -0
- package/vendor/zlib/contrib/vstudio/vc11/testzlibdll.vcxproj +314 -0
- package/vendor/zlib/contrib/vstudio/vc11/zlib.rc +32 -0
- package/vendor/zlib/contrib/vstudio/vc11/zlibstat.vcxproj +456 -0
- package/vendor/zlib/contrib/vstudio/vc11/zlibvc.def +161 -0
- package/vendor/zlib/contrib/vstudio/vc11/zlibvc.sln +117 -0
- package/vendor/zlib/contrib/vstudio/vc11/zlibvc.vcxproj +664 -0
- package/vendor/zlib/contrib/vstudio/vc12/miniunz.vcxproj +316 -0
- package/vendor/zlib/contrib/vstudio/vc12/minizip.vcxproj +313 -0
- package/vendor/zlib/contrib/vstudio/vc12/testzlib.vcxproj +422 -0
- package/vendor/zlib/contrib/vstudio/vc12/testzlibdll.vcxproj +316 -0
- package/vendor/zlib/contrib/vstudio/vc12/zlib.rc +32 -0
- package/vendor/zlib/contrib/vstudio/vc12/zlibstat.vcxproj +459 -0
- package/vendor/zlib/contrib/vstudio/vc12/zlibvc.def +161 -0
- package/vendor/zlib/contrib/vstudio/vc12/zlibvc.sln +119 -0
- package/vendor/zlib/contrib/vstudio/vc12/zlibvc.vcxproj +668 -0
- package/vendor/zlib/contrib/vstudio/vc14/miniunz.vcxproj +316 -0
- package/vendor/zlib/contrib/vstudio/vc14/minizip.vcxproj +313 -0
- package/vendor/zlib/contrib/vstudio/vc14/testzlib.vcxproj +422 -0
- package/vendor/zlib/contrib/vstudio/vc14/testzlibdll.vcxproj +316 -0
- package/vendor/zlib/contrib/vstudio/vc14/zlib.rc +32 -0
- package/vendor/zlib/contrib/vstudio/vc14/zlibstat.vcxproj +459 -0
- package/vendor/zlib/contrib/vstudio/vc14/zlibvc.def +161 -0
- package/vendor/zlib/contrib/vstudio/vc14/zlibvc.sln +119 -0
- package/vendor/zlib/contrib/vstudio/vc14/zlibvc.vcxproj +668 -0
- package/vendor/zlib/contrib/vstudio/vc17/miniunz.vcxproj +409 -0
- package/vendor/zlib/contrib/vstudio/vc17/minizip.vcxproj +405 -0
- package/vendor/zlib/contrib/vstudio/vc17/testzlib.vcxproj +473 -0
- package/vendor/zlib/contrib/vstudio/vc17/testzlibdll.vcxproj +409 -0
- package/vendor/zlib/contrib/vstudio/vc17/zlib.rc +32 -0
- package/vendor/zlib/contrib/vstudio/vc17/zlibstat.vcxproj +602 -0
- package/vendor/zlib/contrib/vstudio/vc17/zlibvc.def +161 -0
- package/vendor/zlib/contrib/vstudio/vc17/zlibvc.sln +179 -0
- package/vendor/zlib/contrib/vstudio/vc17/zlibvc.vcxproj +875 -0
- package/vendor/zlib/contrib/vstudio/vc9/miniunz.vcproj +565 -0
- package/vendor/zlib/contrib/vstudio/vc9/minizip.vcproj +562 -0
- package/vendor/zlib/contrib/vstudio/vc9/testzlib.vcproj +796 -0
- package/vendor/zlib/contrib/vstudio/vc9/testzlibdll.vcproj +565 -0
- package/vendor/zlib/contrib/vstudio/vc9/zlib.rc +32 -0
- package/vendor/zlib/contrib/vstudio/vc9/zlibstat.vcproj +781 -0
- package/vendor/zlib/contrib/vstudio/vc9/zlibvc.def +161 -0
- package/vendor/zlib/contrib/vstudio/vc9/zlibvc.sln +144 -0
- package/vendor/zlib/contrib/vstudio/vc9/zlibvc.vcproj +1100 -0
- package/vendor/zlib/crc32.c +1049 -0
- package/vendor/zlib/crc32.h +9446 -0
- package/vendor/zlib/deflate.c +2152 -0
- package/vendor/zlib/deflate.h +380 -0
- package/vendor/zlib/doc/algorithm.txt +209 -0
- package/vendor/zlib/doc/crc-doc.1.0.pdf +0 -0
- package/vendor/zlib/doc/rfc1950.txt +619 -0
- package/vendor/zlib/doc/rfc1951.txt +955 -0
- package/vendor/zlib/doc/rfc1952.txt +675 -0
- package/vendor/zlib/doc/txtvsbin.txt +107 -0
- package/vendor/zlib/examples/README.examples +54 -0
- package/vendor/zlib/examples/enough.c +597 -0
- package/vendor/zlib/examples/fitblk.c +233 -0
- package/vendor/zlib/examples/gun.c +702 -0
- package/vendor/zlib/examples/gzappend.c +504 -0
- package/vendor/zlib/examples/gzjoin.c +449 -0
- package/vendor/zlib/examples/gzlog.c +1061 -0
- package/vendor/zlib/examples/gzlog.h +91 -0
- package/vendor/zlib/examples/gznorm.c +474 -0
- package/vendor/zlib/examples/zlib_how.html +549 -0
- package/vendor/zlib/examples/zpipe.c +209 -0
- package/vendor/zlib/examples/zran.c +550 -0
- package/vendor/zlib/examples/zran.h +53 -0
- package/vendor/zlib/gzclose.c +23 -0
- package/vendor/zlib/gzguts.h +215 -0
- package/vendor/zlib/gzlib.c +585 -0
- package/vendor/zlib/gzread.c +603 -0
- package/vendor/zlib/gzwrite.c +631 -0
- package/vendor/zlib/infback.c +628 -0
- package/vendor/zlib/inffast.c +320 -0
- package/vendor/zlib/inffast.h +11 -0
- package/vendor/zlib/inffixed.h +94 -0
- package/vendor/zlib/inflate.c +1526 -0
- package/vendor/zlib/inflate.h +126 -0
- package/vendor/zlib/inftrees.c +299 -0
- package/vendor/zlib/inftrees.h +62 -0
- package/vendor/zlib/make_vms.com +867 -0
- package/vendor/zlib/msdos/Makefile.bor +115 -0
- package/vendor/zlib/msdos/Makefile.dj2 +104 -0
- package/vendor/zlib/msdos/Makefile.emx +69 -0
- package/vendor/zlib/msdos/Makefile.msc +112 -0
- package/vendor/zlib/msdos/Makefile.tc +100 -0
- package/vendor/zlib/nintendods/Makefile +126 -0
- package/vendor/zlib/nintendods/README +5 -0
- package/vendor/zlib/old/Makefile.emx +69 -0
- package/vendor/zlib/old/Makefile.riscos +151 -0
- package/vendor/zlib/old/README +3 -0
- package/vendor/zlib/old/descrip.mms +48 -0
- package/vendor/zlib/old/os2/Makefile.os2 +136 -0
- package/vendor/zlib/old/os2/zlib.def +51 -0
- package/vendor/zlib/old/visual-basic.txt +160 -0
- package/vendor/zlib/os400/README400 +48 -0
- package/vendor/zlib/os400/bndsrc +133 -0
- package/vendor/zlib/os400/make.sh +366 -0
- package/vendor/zlib/os400/zlib.inc +531 -0
- package/vendor/zlib/qnx/package.qpg +141 -0
- package/vendor/zlib/test/CMakeLists.txt +265 -0
- package/vendor/zlib/test/add_subdirectory_exclude_test.cmake.in +29 -0
- package/vendor/zlib/test/add_subdirectory_test.cmake.in +28 -0
- package/vendor/zlib/test/example.c +552 -0
- package/vendor/zlib/test/find_package_test.cmake.in +26 -0
- package/vendor/zlib/test/infcover.c +672 -0
- package/vendor/zlib/test/minigzip.c +590 -0
- package/vendor/zlib/treebuild.xml +116 -0
- package/vendor/zlib/trees.c +1119 -0
- package/vendor/zlib/trees.h +128 -0
- package/vendor/zlib/uncompr.c +85 -0
- package/vendor/zlib/watcom/watcom_f.mak +43 -0
- package/vendor/zlib/watcom/watcom_l.mak +43 -0
- package/vendor/zlib/win32/DLL_FAQ.txt +381 -0
- package/vendor/zlib/win32/Makefile.bor +109 -0
- package/vendor/zlib/win32/Makefile.gcc +177 -0
- package/vendor/zlib/win32/Makefile.msc +159 -0
- package/vendor/zlib/win32/README-WIN32.txt +103 -0
- package/vendor/zlib/win32/VisualC.txt +3 -0
- package/vendor/zlib/win32/zlib.def +98 -0
- package/vendor/zlib/win32/zlib1.rc +37 -0
- package/vendor/zlib/zconf.h.in +544 -0
- package/vendor/zlib/zlib.3 +149 -0
- package/vendor/zlib/zlib.3.pdf +0 -0
- package/vendor/zlib/zlib.h +1957 -0
- package/vendor/zlib/zlib.map +104 -0
- package/vendor/zlib/zlib.pc.cmakein +13 -0
- package/vendor/zlib/zlib.pc.in +13 -0
- package/vendor/zlib/zlibConfig.cmake.in +26 -0
- package/vendor/zlib/zutil.c +299 -0
- package/vendor/zlib/zutil.h +257 -0
- package/vendor/zsign/.gitattributes +4 -0
- package/vendor/zsign/LICENSE +21 -0
- package/vendor/zsign/README.md +142 -0
- package/vendor/zsign/build/linux/Makefile +43 -0
- package/vendor/zsign/build/macos/Makefile +43 -0
- package/vendor/zsign/build/windows/vs2022/include/minizip/crypt.h +128 -0
- package/vendor/zsign/build/windows/vs2022/include/minizip/ioapi.h +216 -0
- package/vendor/zsign/build/windows/vs2022/include/minizip/iowin32.h +28 -0
- package/vendor/zsign/build/windows/vs2022/include/minizip/mztools.h +37 -0
- package/vendor/zsign/build/windows/vs2022/include/minizip/unzip.h +437 -0
- package/vendor/zsign/build/windows/vs2022/include/minizip/zip.h +364 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/__DECC_INCLUDE_EPILOGUE.H +22 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/__DECC_INCLUDE_PROLOGUE.H +26 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/aes.h +111 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/applink.c +153 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/asn1.h +1133 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/asn1_mac.h +10 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/asn1err.h +142 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/asn1t.h +946 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/async.h +104 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/asyncerr.h +29 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/bio.h +1015 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/bioerr.h +72 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/blowfish.h +78 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/bn.h +590 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/bnerr.h +47 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/buffer.h +62 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/buffererr.h +25 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/camellia.h +117 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/cast.h +71 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/cmac.h +52 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/cmp.h +727 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/cmp_util.h +56 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/cmperr.h +131 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/cms.h +508 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/cmserr.h +125 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/comp.h +98 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/comperr.h +38 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/conf.h +214 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/conf_api.h +46 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/conferr.h +52 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/configuration.h +188 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/conftypes.h +44 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/core.h +236 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/core_dispatch.h +1022 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/core_names.h +545 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/core_object.h +41 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/crmf.h +260 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/crmferr.h +50 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/crypto.h +580 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/cryptoerr.h +56 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/cryptoerr_legacy.h +1466 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/ct.h +573 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/cterr.h +45 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/decoder.h +133 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/decodererr.h +28 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/des.h +211 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/dh.h +339 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/dherr.h +59 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/dsa.h +280 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/dsaerr.h +44 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/dtls1.h +57 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/e_os2.h +310 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/e_ostime.h +38 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/ebcdic.h +39 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/ec.h +1588 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/ecdh.h +10 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/ecdsa.h +10 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/ecerr.h +104 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/encoder.h +124 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/encodererr.h +28 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/engine.h +833 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/engineerr.h +63 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/err.h +512 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/ess.h +128 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/esserr.h +32 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/evp.h +2231 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/evperr.h +140 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/fips_names.h +50 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/fipskey.h +41 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/hmac.h +62 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/hpke.h +169 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/http.h +118 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/httperr.h +56 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/idea.h +82 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/indicator.h +31 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/kdf.h +138 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/kdferr.h +16 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/lhash.h +398 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/macros.h +338 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/md2.h +56 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/md4.h +63 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/md5.h +62 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/mdc2.h +55 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/modes.h +219 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/obj_mac.h +5820 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/objects.h +184 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/objectserr.h +28 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/ocsp.h +483 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/ocsperr.h +53 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/opensslconf.h +17 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/opensslv.h +114 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/ossl_typ.h +16 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/param_build.h +63 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/params.h +160 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/pem.h +543 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/pem2.h +19 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/pemerr.h +58 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/pkcs12.h +366 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/pkcs12err.h +46 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/pkcs7.h +430 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/pkcs7err.h +63 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/prov_ssl.h +38 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/proverr.h +162 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/provider.h +66 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/quic.h +70 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/rand.h +125 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/randerr.h +69 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/rc2.h +68 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/rc4.h +47 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/rc5.h +79 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/ripemd.h +59 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/rsa.h +615 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/rsaerr.h +107 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/safestack.h +297 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/seed.h +113 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/self_test.h +98 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/sha.h +139 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/srp.h +285 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/srtp.h +68 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/ssl.h +2878 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/ssl2.h +30 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/ssl3.h +357 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/sslerr.h +379 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/sslerr_legacy.h +467 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/stack.h +90 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/store.h +377 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/storeerr.h +49 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/symhacks.h +39 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/thread.h +31 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/tls1.h +1220 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/trace.h +320 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/ts.h +522 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/tserr.h +67 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/txt_db.h +63 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/types.h +245 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/ui.h +407 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/uierr.h +38 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/whrlpool.h +62 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/x509.h +1304 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/x509_acert.h +263 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/x509_vfy.h +902 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/x509err.h +70 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/x509v3.h +1500 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/x509v3err.h +96 -0
- package/vendor/zsign/build/windows/vs2022/include/zlib/zconf.h +553 -0
- package/vendor/zsign/build/windows/vs2022/include/zlib/zlib.h +1938 -0
- package/vendor/zsign/build/windows/vs2022/lib/minizip/x64/mt/minizip.lib +0 -0
- package/vendor/zsign/build/windows/vs2022/lib/openssl/x64/mt/libcrypto.lib +0 -0
- package/vendor/zsign/build/windows/vs2022/lib/openssl/x64/mt/libssl.lib +0 -0
- package/vendor/zsign/build/windows/vs2022/lib/zlib/x64/mt/zlib.lib +0 -0
- package/vendor/zsign/build/windows/vs2022/zsign/src/common_win32.h +44 -0
- package/vendor/zsign/build/windows/vs2022/zsign/src/getopt.cpp +69 -0
- package/vendor/zsign/build/windows/vs2022/zsign/src/getopt.h +20 -0
- package/vendor/zsign/build/windows/vs2022/zsign/src/iconv.cpp +138 -0
- package/vendor/zsign/build/windows/vs2022/zsign/src/iconv.h +38 -0
- package/vendor/zsign/build/windows/vs2022/zsign/zsign.vcxproj +177 -0
- package/vendor/zsign/build/windows/vs2022/zsign/zsign.vcxproj.filters +120 -0
- package/vendor/zsign/build/windows/vs2022/zsign.sln +28 -0
- package/vendor/zsign/src/archo.cpp +742 -0
- package/vendor/zsign/src/archo.h +61 -0
- package/vendor/zsign/src/bundle.cpp +589 -0
- package/vendor/zsign/src/bundle.h +46 -0
- package/vendor/zsign/src/common/archive.cpp +246 -0
- package/vendor/zsign/src/common/archive.h +22 -0
- package/vendor/zsign/src/common/base64.cpp +166 -0
- package/vendor/zsign/src/common/base64.h +30 -0
- package/vendor/zsign/src/common/common.h +56 -0
- package/vendor/zsign/src/common/fs.cpp +573 -0
- package/vendor/zsign/src/common/fs.h +50 -0
- package/vendor/zsign/src/common/json.cpp +3380 -0
- package/vendor/zsign/src/common/json.h +530 -0
- package/vendor/zsign/src/common/log.cpp +145 -0
- package/vendor/zsign/src/common/log.h +37 -0
- package/vendor/zsign/src/common/mach-o.h +585 -0
- package/vendor/zsign/src/common/sha.cpp +133 -0
- package/vendor/zsign/src/common/sha.h +24 -0
- package/vendor/zsign/src/common/timer.cpp +28 -0
- package/vendor/zsign/src/common/timer.h +17 -0
- package/vendor/zsign/src/common/util.cpp +185 -0
- package/vendor/zsign/src/common/util.h +25 -0
- package/vendor/zsign/src/macho.cpp +273 -0
- package/vendor/zsign/src/macho.h +38 -0
- package/vendor/zsign/src/openssl.cpp +698 -0
- package/vendor/zsign/src/openssl.h +71 -0
- package/vendor/zsign/src/signing.cpp +745 -0
- package/vendor/zsign/src/signing.h +59 -0
- package/vendor/zsign/src/zsign.cpp +317 -0
- package/vendor/zsign/test/dylib/bin/demo1.dylib +0 -0
- package/vendor/zsign/test/dylib/bin/demo2.dylib +0 -0
- package/vendor/zsign/test/dylib/demo/Makefile +12 -0
- package/vendor/zsign/test/dylib/demo/control +9 -0
- package/vendor/zsign/test/dylib/demo/demo.m +21 -0
- package/vendor/zsign/test/linux/test.sh +19 -0
- package/vendor/zsign/test/macos/test.sh +19 -0
- package/vendor/zsign/test/windows/test.ps1 +17 -0
|
@@ -0,0 +1,136 @@
|
|
|
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
|
|
87
|
+
os: macos-latest
|
|
88
|
+
compiler: gcc-12
|
|
89
|
+
configure-args: --warn
|
|
90
|
+
|
|
91
|
+
- name: macOS Clang
|
|
92
|
+
os: macos-latest
|
|
93
|
+
compiler: clang
|
|
94
|
+
configure-args: --warn
|
|
95
|
+
|
|
96
|
+
steps:
|
|
97
|
+
- name: Checkout repository
|
|
98
|
+
uses: actions/checkout@v4
|
|
99
|
+
|
|
100
|
+
- name: Install packages (Ubuntu)
|
|
101
|
+
if: runner.os == 'Linux' && matrix.packages
|
|
102
|
+
run: |
|
|
103
|
+
sudo apt-get update
|
|
104
|
+
sudo apt-get install -y ${{ matrix.packages }}
|
|
105
|
+
|
|
106
|
+
- name: Generate project files
|
|
107
|
+
run: |
|
|
108
|
+
[ -d ${{ matrix.build-dir || '.' }} ] || mkdir ${{ matrix.build-dir || '.' }}
|
|
109
|
+
cd ${{ matrix.build-dir || '.' }}
|
|
110
|
+
${{ matrix.src-dir || '.' }}/configure ${{ matrix.configure-args }}
|
|
111
|
+
env:
|
|
112
|
+
CC: ${{ matrix.compiler }}
|
|
113
|
+
CFLAGS: ${{ matrix.cflags }}
|
|
114
|
+
LDFLAGS: ${{ matrix.ldflags }}
|
|
115
|
+
CHOST: ${{ matrix.chost }}
|
|
116
|
+
|
|
117
|
+
- name: Compile source code
|
|
118
|
+
run: make -j2
|
|
119
|
+
working-directory: ${{ matrix.build-dir }}
|
|
120
|
+
|
|
121
|
+
- name: Run test cases
|
|
122
|
+
run: |
|
|
123
|
+
make test
|
|
124
|
+
make cover
|
|
125
|
+
working-directory: ${{ matrix.build-dir }}
|
|
126
|
+
env:
|
|
127
|
+
QEMU_RUN: ${{ matrix.qemu-run }}
|
|
128
|
+
|
|
129
|
+
- name: Upload build errors
|
|
130
|
+
uses: actions/upload-artifact@v4
|
|
131
|
+
if: failure()
|
|
132
|
+
with:
|
|
133
|
+
name: ${{ matrix.name }} (configure)
|
|
134
|
+
path: |
|
|
135
|
+
${{ matrix.build-dir || '.' }}/configure.log
|
|
136
|
+
retention-days: 7
|
|
@@ -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@v4
|
|
22
|
+
if: failure()
|
|
23
|
+
with:
|
|
24
|
+
name: artifacts
|
|
25
|
+
path: ./out/artifacts
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
name: mingw/cygwin
|
|
2
|
+
|
|
3
|
+
on: [push, pull_request]
|
|
4
|
+
|
|
5
|
+
jobs:
|
|
6
|
+
MSys:
|
|
7
|
+
runs-on: windows-latest
|
|
8
|
+
strategy:
|
|
9
|
+
fail-fast: false
|
|
10
|
+
matrix:
|
|
11
|
+
sys: [mingw32, mingw64, ucrt64, clang64]
|
|
12
|
+
name: MSys - ${{ matrix.sys }}
|
|
13
|
+
defaults:
|
|
14
|
+
run:
|
|
15
|
+
shell: msys2 {0}
|
|
16
|
+
steps:
|
|
17
|
+
- name: Checkout
|
|
18
|
+
uses: actions/checkout@v4
|
|
19
|
+
with:
|
|
20
|
+
fetch-depth: 0
|
|
21
|
+
- name: Setup MSYS2
|
|
22
|
+
uses: msys2/setup-msys2@v2
|
|
23
|
+
with:
|
|
24
|
+
msystem: ${{ matrix.sys }}
|
|
25
|
+
update: true
|
|
26
|
+
install: >-
|
|
27
|
+
make
|
|
28
|
+
pacboy: >-
|
|
29
|
+
toolchain:p
|
|
30
|
+
cmake:p
|
|
31
|
+
- name: Configure
|
|
32
|
+
run: |
|
|
33
|
+
cmake -G"Unix Makefiles" \
|
|
34
|
+
-S . \
|
|
35
|
+
-B build \
|
|
36
|
+
-DCMAKE_VERBOSE_MAKEFILE=ON \
|
|
37
|
+
-DCMAKE_BUILD_TYPE=Release \
|
|
38
|
+
-DMINIZIP_ENABLE_BZIP2=ON
|
|
39
|
+
- name: Build
|
|
40
|
+
run: cmake --build build --config Release
|
|
41
|
+
- name: Run tests
|
|
42
|
+
run: ctest --output-on-failure --test-dir build -C Release
|
|
43
|
+
|
|
44
|
+
cygwin:
|
|
45
|
+
strategy:
|
|
46
|
+
fail-fast: false
|
|
47
|
+
runs-on: windows-latest
|
|
48
|
+
defaults:
|
|
49
|
+
run:
|
|
50
|
+
shell: C:\cygwin\bin\bash.exe --login -o igncr '{0}'
|
|
51
|
+
name: Cygwin
|
|
52
|
+
steps:
|
|
53
|
+
- name: Checkout
|
|
54
|
+
uses: actions/checkout@v4
|
|
55
|
+
with:
|
|
56
|
+
fetch-depth: 0
|
|
57
|
+
- name: Setup cygwin
|
|
58
|
+
uses: cygwin/cygwin-install-action@master
|
|
59
|
+
with:
|
|
60
|
+
packages: >-
|
|
61
|
+
cmake
|
|
62
|
+
cygwin-devel
|
|
63
|
+
gcc-core
|
|
64
|
+
gcc-g++
|
|
65
|
+
ninja
|
|
66
|
+
- name: Configure
|
|
67
|
+
run: |
|
|
68
|
+
cmake /cygdrive/d/a/zlib/zlib \
|
|
69
|
+
-B build \
|
|
70
|
+
-DCMAKE_BUILD_TYPE=Release \
|
|
71
|
+
-DZLIB_BUILD_MINIZIP=ON \
|
|
72
|
+
-DMINIZIP_ENABLE_BZIP2=OFF \
|
|
73
|
+
-G Ninja
|
|
74
|
+
- name: Build
|
|
75
|
+
run: cmake --build build --config Release -v -j1
|
|
76
|
+
- name: Run tests
|
|
77
|
+
run: ctest --output-on-failure --test-dir build -C Release
|
|
@@ -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
|
+
)
|
|
@@ -0,0 +1,330 @@
|
|
|
1
|
+
cmake_minimum_required(VERSION 3.12...3.31)
|
|
2
|
+
|
|
3
|
+
project(
|
|
4
|
+
zlib
|
|
5
|
+
LANGUAGES C
|
|
6
|
+
VERSION 1.4.1.1
|
|
7
|
+
HOMEPAGE_URL "https://zlib.net/"
|
|
8
|
+
DESCRIPTION "a general-purpose lossless data-compression library")
|
|
9
|
+
|
|
10
|
+
# ============================================================================
|
|
11
|
+
# CPack
|
|
12
|
+
# ============================================================================
|
|
13
|
+
set(CPACK_PACKAGE_VENDOR "zlib-Project")
|
|
14
|
+
set(CPACK_PACKAGE_DESCRIPTION_FILE ${zlib_SOURCE_DIR}/README)
|
|
15
|
+
set(CPACK_RESOURCE_FILE_LICENSE ${zlib_SOURCE_DIR}/LICENSE)
|
|
16
|
+
set(CPACK_RESOURCE_FILE_README ${zlib_SOURCE_DIR}/README)
|
|
17
|
+
|
|
18
|
+
# ============================================================================
|
|
19
|
+
# configuration
|
|
20
|
+
# ============================================================================
|
|
21
|
+
|
|
22
|
+
option(ZLIB_BUILD_TESTING "Enable Zlib Examples as tests" ON)
|
|
23
|
+
option(ZLIB_BUILD_SHARED "Enable building zlib shared library" ON)
|
|
24
|
+
option(ZLIB_BUILD_STATIC "Enable building zlib static library" ON)
|
|
25
|
+
option(ZLIB_BUILD_MINIZIP "Enable building libminizip contrib library" OFF)
|
|
26
|
+
option(ZLIB_INSTALL "Enable installation of zlib" ON)
|
|
27
|
+
option(ZLIB_PREFIX "prefix for all types and library functions, see zconf.h.in"
|
|
28
|
+
OFF)
|
|
29
|
+
mark_as_advanced(ZLIB_PREFIX)
|
|
30
|
+
|
|
31
|
+
if(WIN32)
|
|
32
|
+
option(ZLIB_INSTALL_COMPAT_DLL "Install a copy as zlib1.dll" ON)
|
|
33
|
+
endif(WIN32)
|
|
34
|
+
|
|
35
|
+
get_property(IS_MULTI GLOBAL PROPERTY GENERATOR_IS_MULTI_CONFIG)
|
|
36
|
+
|
|
37
|
+
if(NOT DEFINED CMAKE_BUILD_TYPE AND NOT IS_MULTI)
|
|
38
|
+
message(STATUS "No CMAKE_BUILD_TYPE set -- using Release")
|
|
39
|
+
set(CMAKE_BUILD_TYPE Release)
|
|
40
|
+
endif(NOT DEFINED CMAKE_BUILD_TYPE AND NOT IS_MULTI)
|
|
41
|
+
|
|
42
|
+
include(CheckCSourceCompiles)
|
|
43
|
+
include(CheckFunctionExists)
|
|
44
|
+
include(CheckIncludeFile)
|
|
45
|
+
include(CMakePackageConfigHelpers)
|
|
46
|
+
include(CheckTypeSize)
|
|
47
|
+
include(CPack)
|
|
48
|
+
include(GNUInstallDirs)
|
|
49
|
+
|
|
50
|
+
set(CPACK_INCLUDED TRUE)
|
|
51
|
+
|
|
52
|
+
if(NOT ZLIB_CONF_WRITTEN)
|
|
53
|
+
set(Z_PREFIX ${ZLIB_PREFIX})
|
|
54
|
+
set(CONF_OUT_FILE ${zlib_BINARY_DIR}/zconf.h.cmakein)
|
|
55
|
+
file(READ ${zlib_SOURCE_DIR}/zconf.h ZCONF_CONTENT LIMIT 245)
|
|
56
|
+
file(WRITE ${CONF_OUT_FILE} ${ZCONF_CONTENT})
|
|
57
|
+
file(APPEND ${CONF_OUT_FILE} "#cmakedefine Z_PREFIX 1\n")
|
|
58
|
+
file(APPEND ${CONF_OUT_FILE} "#cmakedefine HAVE_STDARG_H 1\n")
|
|
59
|
+
file(APPEND ${CONF_OUT_FILE} "#cmakedefine HAVE_UNISTD_H 1\n")
|
|
60
|
+
file(READ ${zlib_SOURCE_DIR}/zconf.h ZCONF_CONTENT OFFSET 244)
|
|
61
|
+
set(FIRST_ITEM TRUE)
|
|
62
|
+
|
|
63
|
+
foreach(item IN LISTS ZCONF_CONTENT)
|
|
64
|
+
if(FIRST_ITEM)
|
|
65
|
+
string(APPEND OUT_CONTENT ${item})
|
|
66
|
+
set(FIRST_ITEM FALSE)
|
|
67
|
+
else(FIRST_ITEM)
|
|
68
|
+
string(APPEND OUT_CONTENT "\;" ${item})
|
|
69
|
+
endif(FIRST_ITEM)
|
|
70
|
+
endforeach(item IN LISTS ${ZCONF_CONTENT})
|
|
71
|
+
|
|
72
|
+
file(APPEND ${CONF_OUT_FILE} ${OUT_CONTENT})
|
|
73
|
+
set(ZLIB_CONF_WRITTEN
|
|
74
|
+
TRUE
|
|
75
|
+
CACHE BOOL "zconf.h.cmakein was created")
|
|
76
|
+
mark_as_advanced(ZLIB_CONF_WRITTEN)
|
|
77
|
+
endif(NOT ZLIB_CONF_WRITTEN)
|
|
78
|
+
|
|
79
|
+
#
|
|
80
|
+
# Check to see if we have large file support
|
|
81
|
+
#
|
|
82
|
+
set(CMAKE_REQUIRED_DEFINITIONS -D_LARGEFILE64_SOURCE=1)
|
|
83
|
+
check_type_size(off64_t OFF64_T)
|
|
84
|
+
unset(CMAKE_REQUIRED_DEFINITIONS) # clear variable
|
|
85
|
+
|
|
86
|
+
#
|
|
87
|
+
# Check for fseeko
|
|
88
|
+
#
|
|
89
|
+
check_function_exists(fseeko HAVE_FSEEKO)
|
|
90
|
+
|
|
91
|
+
#
|
|
92
|
+
# Check for stdarg.h
|
|
93
|
+
#
|
|
94
|
+
check_include_file(stdarg.h HAVE_STDARG_H)
|
|
95
|
+
|
|
96
|
+
#
|
|
97
|
+
# Check for unistd.h
|
|
98
|
+
#
|
|
99
|
+
check_include_file(unistd.h HAVE_UNISTD_H)
|
|
100
|
+
|
|
101
|
+
#
|
|
102
|
+
# Check visibility attribute is supported
|
|
103
|
+
#
|
|
104
|
+
if(MSVC)
|
|
105
|
+
set(CMAKE_REQUIRED_FLAGS "-WX")
|
|
106
|
+
else(MSVC)
|
|
107
|
+
set(CMAKE_REQUIRED_FLAGS "-WError")
|
|
108
|
+
endif(MSVC)
|
|
109
|
+
|
|
110
|
+
check_c_source_compiles(
|
|
111
|
+
"
|
|
112
|
+
#include <stdlib.h>
|
|
113
|
+
static void f(void) __attribute__ ((visibility(\"hidden\")));
|
|
114
|
+
int main(void) {return 0;}
|
|
115
|
+
"
|
|
116
|
+
HAVE___ATTR__VIS_HIDDEN)
|
|
117
|
+
|
|
118
|
+
unset(CMAKE_COMPILE_FLAGS)
|
|
119
|
+
set(ZLIB_PC ${zlib_BINARY_DIR}/zlib.pc)
|
|
120
|
+
configure_file(${zlib_SOURCE_DIR}/zlib.pc.cmakein ${ZLIB_PC} @ONLY)
|
|
121
|
+
configure_file(${zlib_BINARY_DIR}/zconf.h.cmakein ${zlib_BINARY_DIR}/zconf.h)
|
|
122
|
+
|
|
123
|
+
# ============================================================================
|
|
124
|
+
# zlib
|
|
125
|
+
# ============================================================================
|
|
126
|
+
|
|
127
|
+
set(ZLIB_PUBLIC_HDRS ${zlib_BINARY_DIR}/zconf.h zlib.h)
|
|
128
|
+
|
|
129
|
+
set(ZLIB_PRIVATE_HDRS
|
|
130
|
+
crc32.h
|
|
131
|
+
deflate.h
|
|
132
|
+
gzguts.h
|
|
133
|
+
inffast.h
|
|
134
|
+
inffixed.h
|
|
135
|
+
inflate.h
|
|
136
|
+
inftrees.h
|
|
137
|
+
trees.h
|
|
138
|
+
zutil.h)
|
|
139
|
+
|
|
140
|
+
set(ZLIB_SRCS
|
|
141
|
+
adler32.c
|
|
142
|
+
compress.c
|
|
143
|
+
crc32.c
|
|
144
|
+
deflate.c
|
|
145
|
+
gzclose.c
|
|
146
|
+
gzlib.c
|
|
147
|
+
gzread.c
|
|
148
|
+
gzwrite.c
|
|
149
|
+
inflate.c
|
|
150
|
+
infback.c
|
|
151
|
+
inftrees.c
|
|
152
|
+
inffast.c
|
|
153
|
+
trees.c
|
|
154
|
+
uncompr.c
|
|
155
|
+
zutil.c)
|
|
156
|
+
|
|
157
|
+
if(WIN32)
|
|
158
|
+
set(zlib_static_suffix "s")
|
|
159
|
+
set(CMAKE_DEBUG_POSTFIX "d")
|
|
160
|
+
endif(WIN32)
|
|
161
|
+
|
|
162
|
+
if(ZLIB_BUILD_SHARED)
|
|
163
|
+
add_library(
|
|
164
|
+
zlib SHARED ${ZLIB_SRCS} ${ZLIB_PUBLIC_HDRS} ${ZLIB_PRIVATE_HDRS}
|
|
165
|
+
$<$<OR:$<BOOL:${WIN32}>,$<BOOL:${CYGWIN}>>:win32/zlib1.rc>)
|
|
166
|
+
add_library(ZLIB::ZLIB ALIAS zlib)
|
|
167
|
+
target_include_directories(
|
|
168
|
+
zlib
|
|
169
|
+
PUBLIC $<BUILD_INTERFACE:${zlib_BINARY_DIR}>
|
|
170
|
+
$<BUILD_INTERFACE:${zlib_SOURCE_DIR}>
|
|
171
|
+
$<INSTALL_INTERFACE:${CMAKE_INSTALL_INCLUDEDIR}>)
|
|
172
|
+
target_compile_definitions(
|
|
173
|
+
zlib
|
|
174
|
+
PRIVATE ZLIB_BUILD
|
|
175
|
+
$<$<BOOL:NOT:${HAVE_FSEEKO}>:NO_FSEEKO>
|
|
176
|
+
$<$<BOOL:${HAVE___ATTR__VIS_HIDDEN}>:HAVE_HIDDEN>
|
|
177
|
+
$<$<BOOL:${MSVC}>:_CRT_SECURE_NO_DEPRECATE>
|
|
178
|
+
$<$<BOOL:${MSVC}>:_CRT_NONSTDC_NO_DEPRECATE>
|
|
179
|
+
PUBLIC $<$<BOOL:${HAVE_OFF64_T}>:_LARGEFILE64_SOURCE=1>)
|
|
180
|
+
set(INSTALL_VERSION ${zlib_VERSION})
|
|
181
|
+
|
|
182
|
+
if(NOT CYGWIN)
|
|
183
|
+
set_target_properties(zlib PROPERTIES SOVERSION ${zlib_VERSION_MAJOR}
|
|
184
|
+
VERSION ${INSTALL_VERSION})
|
|
185
|
+
endif(NOT CYGWIN)
|
|
186
|
+
|
|
187
|
+
set_target_properties(
|
|
188
|
+
zlib
|
|
189
|
+
PROPERTIES DEFINE_SYMBOL ZLIB_DLL
|
|
190
|
+
EXPORT_NAME ZLIB
|
|
191
|
+
OUTPUT_NAME z)
|
|
192
|
+
if(UNIX
|
|
193
|
+
AND NOT APPLE
|
|
194
|
+
AND NOT (CMAKE_SYSTEM_NAME STREQUAL AIX))
|
|
195
|
+
# On unix-like platforms the library is almost always called libz
|
|
196
|
+
set_target_properties(
|
|
197
|
+
zlib
|
|
198
|
+
PROPERTIES LINK_FLAGS
|
|
199
|
+
"-Wl,--version-script,\"${zlib_SOURCE_DIR}/zlib.map\"")
|
|
200
|
+
endif(
|
|
201
|
+
UNIX
|
|
202
|
+
AND NOT APPLE
|
|
203
|
+
AND NOT (CMAKE_SYSTEM_NAME STREQUAL AIX))
|
|
204
|
+
endif(ZLIB_BUILD_SHARED)
|
|
205
|
+
|
|
206
|
+
if(ZLIB_BUILD_STATIC)
|
|
207
|
+
add_library(zlibstatic STATIC ${ZLIB_SRCS} ${ZLIB_PUBLIC_HDRS}
|
|
208
|
+
${ZLIB_PRIVATE_HDRS})
|
|
209
|
+
add_library(ZLIB::ZLIBSTATIC ALIAS zlibstatic)
|
|
210
|
+
target_include_directories(
|
|
211
|
+
zlibstatic
|
|
212
|
+
PUBLIC $<BUILD_INTERFACE:${zlib_BINARY_DIR}>
|
|
213
|
+
$<BUILD_INTERFACE:${zlib_SOURCE_DIR}>
|
|
214
|
+
$<INSTALL_INTERFACE:${CMAKE_INSTALL_INCLUDEDIR}>)
|
|
215
|
+
target_compile_definitions(
|
|
216
|
+
zlibstatic
|
|
217
|
+
PRIVATE ZLIB_BUILD
|
|
218
|
+
$<$<BOOL:NOT:${HAVE_FSEEKO}>:NO_FSEEKO>
|
|
219
|
+
$<$<BOOL:${HAVE___ATTR__VIS_HIDDEN}>:HAVE_HIDDEN>
|
|
220
|
+
$<$<BOOL:${MSVC}>:_CRT_SECURE_NO_DEPRECATE>
|
|
221
|
+
$<$<BOOL:${MSVC}>:_CRT_NONSTDC_NO_DEPRECATE>
|
|
222
|
+
PUBLIC $<$<BOOL:${HAVE_OFF64_T}>:_LARGEFILE64_SOURCE=1>)
|
|
223
|
+
set_target_properties(
|
|
224
|
+
zlibstatic PROPERTIES EXPORT_NAME ZLIBSTATIC OUTPUT_NAME
|
|
225
|
+
z${zlib_static_suffix})
|
|
226
|
+
endif(ZLIB_BUILD_STATIC)
|
|
227
|
+
|
|
228
|
+
if(ZLIB_INSTALL)
|
|
229
|
+
if(ZLIB_BUILD_SHARED)
|
|
230
|
+
install(
|
|
231
|
+
TARGETS zlib
|
|
232
|
+
COMPONENT Runtime
|
|
233
|
+
EXPORT zlibSharedExport
|
|
234
|
+
RUNTIME DESTINATION "${CMAKE_INSTALL_BINDIR}"
|
|
235
|
+
ARCHIVE DESTINATION "${CMAKE_INSTALL_LIBDIR}"
|
|
236
|
+
LIBRARY DESTINATION "${CMAKE_INSTALL_LIBDIR}")
|
|
237
|
+
install(
|
|
238
|
+
EXPORT zlibSharedExport
|
|
239
|
+
FILE ZLIB-shared.cmake
|
|
240
|
+
NAMESPACE ZLIB::
|
|
241
|
+
DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake/zlib)
|
|
242
|
+
if(ZLIB_INSTALL_COMPAT_DLL)
|
|
243
|
+
install(
|
|
244
|
+
FILES $<TARGET_FILE:zlib>
|
|
245
|
+
COMPONENT Runtime
|
|
246
|
+
RENAME zlib1.dll
|
|
247
|
+
DESTINATION "${CMAKE_INSTALL_BINDIR}")
|
|
248
|
+
endif(ZLIB_INSTALL_COMPAT_DLL)
|
|
249
|
+
|
|
250
|
+
if(MSVC)
|
|
251
|
+
install(
|
|
252
|
+
FILES $<TARGET_PDB_FILE:zlib>
|
|
253
|
+
COMPONENT Runtime
|
|
254
|
+
DESTINATION ${CMAKE_INSTALL_BINDIR}
|
|
255
|
+
CONFIGURATIONS Debug OR RelWithDebInfo
|
|
256
|
+
OPTIONAL)
|
|
257
|
+
endif(MSVC)
|
|
258
|
+
endif(ZLIB_BUILD_SHARED)
|
|
259
|
+
|
|
260
|
+
if(ZLIB_BUILD_STATIC)
|
|
261
|
+
install(
|
|
262
|
+
TARGETS zlibstatic
|
|
263
|
+
COMPONENT Development
|
|
264
|
+
EXPORT zlibStaticExport
|
|
265
|
+
RUNTIME DESTINATION "${CMAKE_INSTALL_BINDIR}"
|
|
266
|
+
ARCHIVE DESTINATION "${CMAKE_INSTALL_LIBDIR}"
|
|
267
|
+
LIBRARY DESTINATION "${CMAKE_INSTALL_LIBDIR}")
|
|
268
|
+
install(
|
|
269
|
+
EXPORT zlibStaticExport
|
|
270
|
+
FILE ZLIB-static.cmake
|
|
271
|
+
NAMESPACE ZLIB::
|
|
272
|
+
DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake/zlib)
|
|
273
|
+
|
|
274
|
+
if(ZLIB_INSTALL_COMPAT_DLL AND MINGW)
|
|
275
|
+
install(
|
|
276
|
+
FILES $<TARGET_FILE:zlibstatic>
|
|
277
|
+
COMPONENT Development
|
|
278
|
+
RENAME libz.dll.a
|
|
279
|
+
DESTINATION "${CMAKE_INSTALL_LIBDIR}")
|
|
280
|
+
endif(ZLIB_INSTALL_COMPAT_DLL AND MINGW)
|
|
281
|
+
endif(ZLIB_BUILD_STATIC)
|
|
282
|
+
|
|
283
|
+
configure_package_config_file(
|
|
284
|
+
${zlib_SOURCE_DIR}/zlibConfig.cmake.in
|
|
285
|
+
${zlib_BINARY_DIR}/ZLIBConfig.cmake
|
|
286
|
+
INSTALL_DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake/zlib)
|
|
287
|
+
|
|
288
|
+
write_basic_package_version_file(
|
|
289
|
+
"${zlib_BINARY_DIR}/ZLIBConfigVersion.cmake"
|
|
290
|
+
VERSION "${zlib_VERSION}"
|
|
291
|
+
COMPATIBILITY AnyNewerVersion)
|
|
292
|
+
|
|
293
|
+
install(FILES ${zlib_BINARY_DIR}/ZLIBConfig.cmake
|
|
294
|
+
${zlib_BINARY_DIR}/ZLIBConfigVersion.cmake
|
|
295
|
+
DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake/zlib)
|
|
296
|
+
install(
|
|
297
|
+
FILES ${ZLIB_PUBLIC_HDRS}
|
|
298
|
+
COMPONENT Development
|
|
299
|
+
DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}")
|
|
300
|
+
install(
|
|
301
|
+
FILES zlib.3
|
|
302
|
+
COMPONENT Docs
|
|
303
|
+
DESTINATION "${CMAKE_INSTALL_MANDIR}/man3")
|
|
304
|
+
install(
|
|
305
|
+
FILES LICENSE
|
|
306
|
+
doc/algorithm.txt
|
|
307
|
+
doc/crc-doc.1.0.pdf
|
|
308
|
+
doc/rfc1950.txt
|
|
309
|
+
doc/rfc1951.txt
|
|
310
|
+
doc/rfc1952.txt
|
|
311
|
+
doc/txtvsbin.txt
|
|
312
|
+
COMPONENT Docs
|
|
313
|
+
DESTINATION "${CMAKE_INSTALL_DOCDIR}/zlib")
|
|
314
|
+
install(
|
|
315
|
+
FILES ${ZLIB_PC}
|
|
316
|
+
COMPONENT Development
|
|
317
|
+
DESTINATION "${CMAKE_INSTALL_LIBDIR}/pkgconfig")
|
|
318
|
+
endif(ZLIB_INSTALL)
|
|
319
|
+
|
|
320
|
+
# ============================================================================
|
|
321
|
+
# Tests
|
|
322
|
+
# ============================================================================
|
|
323
|
+
if(ZLIB_BUILD_TESTING)
|
|
324
|
+
enable_testing()
|
|
325
|
+
add_subdirectory(test)
|
|
326
|
+
endif(ZLIB_BUILD_TESTING)
|
|
327
|
+
|
|
328
|
+
if(ZLIB_BUILD_MINIZIP)
|
|
329
|
+
add_subdirectory(contrib/minizip/)
|
|
330
|
+
endif(ZLIB_BUILD_MINIZIP)
|