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,380 @@
|
|
|
1
|
+
cmake_minimum_required(VERSION 3.12...3.31)
|
|
2
|
+
|
|
3
|
+
project(
|
|
4
|
+
minizip
|
|
5
|
+
VERSION 1.0.0
|
|
6
|
+
LANGUAGES C
|
|
7
|
+
DESCRIPTION "A library for creating zipfiles based in zlib"
|
|
8
|
+
HOMEPAGE_URL "https://www.winimage.com/zLibDll/minizip.html")
|
|
9
|
+
|
|
10
|
+
if(CMAKE_SIZEOF_VOID_P LESS 8 AND NOT MINGW)
|
|
11
|
+
message(WARNING "libminizip needs 64bit - stopping here")
|
|
12
|
+
return()
|
|
13
|
+
endif(CMAKE_SIZEOF_VOID_P LESS 8 AND NOT MINGW)
|
|
14
|
+
|
|
15
|
+
# ============================================================================
|
|
16
|
+
# CPack
|
|
17
|
+
# ============================================================================
|
|
18
|
+
set(CPACK_PACKAGE_VENDOR "zlib-Project")
|
|
19
|
+
set(CPACK_PACKAGE_DESCRIPTION_FILE ${minizip_SOURCE_DIR}/MiniZip64_info.txt)
|
|
20
|
+
set(CPACK_RESOURCE_FILE_LICENSE ${minizip_SOURCE_DIR}/../../LICENSE)
|
|
21
|
+
set(CPACK_RESOURCE_FILE_README ${minizip_SOURCE_DIR}/MiniZip64_info.txt)
|
|
22
|
+
|
|
23
|
+
# ============================================================================
|
|
24
|
+
# configuration
|
|
25
|
+
# ============================================================================
|
|
26
|
+
option(MINIZIP_BUILD_SHARED "Enable building minizip shared library" ON)
|
|
27
|
+
option(MINIZIP_BUILD_STATIC "Enable building minizip static library" ON)
|
|
28
|
+
option(MINIZIP_BUILD_TESTING "Enable testing of minizip" ON)
|
|
29
|
+
option(MINIZIP_ENABLE_BZIP2 "Build minizip withj bzip2 support" ON)
|
|
30
|
+
option(MINIZIP_INSTALL "Enable installation of minizip" ON)
|
|
31
|
+
|
|
32
|
+
if(MINGW)
|
|
33
|
+
option(MINIZIP_INSTALL_COMPAT_DLL "Install a copy as libminizip-1.dll" ON)
|
|
34
|
+
endif(MINGW)
|
|
35
|
+
|
|
36
|
+
include(CheckCSourceCompiles)
|
|
37
|
+
include(CheckFunctionExists)
|
|
38
|
+
include(CheckIncludeFile)
|
|
39
|
+
include(CMakePackageConfigHelpers)
|
|
40
|
+
include(CheckTypeSize)
|
|
41
|
+
include(GNUInstallDirs)
|
|
42
|
+
|
|
43
|
+
if(NOT CPACK_INCLUDED)
|
|
44
|
+
include(CPack)
|
|
45
|
+
endif(NOT CPACK_INCLUDED)
|
|
46
|
+
|
|
47
|
+
if(MINIZIP_ENABLE_BZIP2)
|
|
48
|
+
find_package(BZip2 REQUIRED)
|
|
49
|
+
endif(MINIZIP_ENABLE_BZIP2)
|
|
50
|
+
|
|
51
|
+
#
|
|
52
|
+
# Check for fopen64
|
|
53
|
+
#
|
|
54
|
+
check_function_exists(fopen64 HAVE_FOPEN64)
|
|
55
|
+
|
|
56
|
+
#
|
|
57
|
+
# Check for fseeko
|
|
58
|
+
#
|
|
59
|
+
check_function_exists(fseeko HAVE_FSEEKO)
|
|
60
|
+
|
|
61
|
+
#
|
|
62
|
+
# Check for unistd.h
|
|
63
|
+
#
|
|
64
|
+
check_include_file(unistd.h HAVE_UNISTD_H)
|
|
65
|
+
|
|
66
|
+
#
|
|
67
|
+
# Check to see if we have large file support
|
|
68
|
+
#
|
|
69
|
+
set(CMAKE_REQUIRED_DEFINITIONS -D_LARGEFILE64_SOURCE=1)
|
|
70
|
+
check_type_size(off64_t OFF64_T)
|
|
71
|
+
unset(CMAKE_REQUIRED_DEFINITIONS) # clear variable
|
|
72
|
+
|
|
73
|
+
#
|
|
74
|
+
# Check visibility attribute is supported
|
|
75
|
+
#
|
|
76
|
+
if(MSVC)
|
|
77
|
+
set(CMAKE_REQUIRED_FLAGS "-WX")
|
|
78
|
+
else(MSVC)
|
|
79
|
+
set(CMAKE_REQUIRED_FLAGS "-WError")
|
|
80
|
+
endif(MSVC)
|
|
81
|
+
|
|
82
|
+
check_c_source_compiles(
|
|
83
|
+
"
|
|
84
|
+
#include <stdlib.h>
|
|
85
|
+
static void f(void) __attribute__ ((visibility(\"hidden\")));
|
|
86
|
+
int main(void) {return 0;}
|
|
87
|
+
"
|
|
88
|
+
HAVE___ATTR__VIS_HIDDEN)
|
|
89
|
+
|
|
90
|
+
unset(CMAKE_REQUIRED_FLAGS)
|
|
91
|
+
|
|
92
|
+
if(NOT TARGET ZLIB::ZLIB)
|
|
93
|
+
find_package(ZLIB REQUIRED CONFIG)
|
|
94
|
+
endif(NOT TARGET ZLIB::ZLIB)
|
|
95
|
+
|
|
96
|
+
set(LIBMINIZIP_SRCS ioapi.c mztools.c unzip.c zip.c)
|
|
97
|
+
|
|
98
|
+
set(LIBMINIZIP_HDRS crypt.h ints.h ioapi.h mztools.h unzip.h zip.h)
|
|
99
|
+
|
|
100
|
+
set(MINIZIP_SRCS ioapi.c $<$<BOOL:${WIN32}>:iowin32.c> minizip.c zip.c)
|
|
101
|
+
|
|
102
|
+
set(MINIZIP_HDRS crypt.h ints.h ioapi.h $<$<BOOL:${WIN32}>:iowin32.h> skipset.h
|
|
103
|
+
zip.h)
|
|
104
|
+
|
|
105
|
+
set(MINIUNZIP_SRCS ioapi.c $<$<BOOL:${WIN32}>:iowin32.c> miniunz.c unzip.c
|
|
106
|
+
zip.c)
|
|
107
|
+
|
|
108
|
+
set(MINIUNZIP_HDRS
|
|
109
|
+
crypt.h
|
|
110
|
+
ints.h
|
|
111
|
+
ioapi.h
|
|
112
|
+
$<$<BOOL:${WIN32}>:iowin32.h>
|
|
113
|
+
skipset.h
|
|
114
|
+
unzip.h
|
|
115
|
+
zip.h)
|
|
116
|
+
|
|
117
|
+
if(WIN32 OR CYGWIN)
|
|
118
|
+
set(minizip_static_suffix "s")
|
|
119
|
+
set(CMAKE_DEBUG_POSTFIX "d")
|
|
120
|
+
endif(WIN32 OR CYGWIN)
|
|
121
|
+
|
|
122
|
+
if(MINIZIP_BUILD_SHARED)
|
|
123
|
+
set(CMAKE_WINDOWS_EXPORT_ALL_SYMBOLS TRUE)
|
|
124
|
+
add_library(libminizip SHARED ${LIBMINIZIP_SRCS} ${LIBMINIZIP_HDRS})
|
|
125
|
+
add_library(MINIZIP::minizip ALIAS libminizip)
|
|
126
|
+
target_include_directories(
|
|
127
|
+
libminizip PUBLIC $<BUILD_INTERFACE:${minizip_SOURCE_DIR}>
|
|
128
|
+
$<INSTALL_INTERFACE:${CMAKE_INSTALL_INCLUDEDIR}>)
|
|
129
|
+
target_compile_definitions(
|
|
130
|
+
libminizip
|
|
131
|
+
PRIVATE $<$<BOOL:${MSVC}>:_CRT_SECURE_NO_WARNINGS>
|
|
132
|
+
$<$<BOOL:${HAVE___ATTR__VIS_HIDDEN}>:HAVE_HIDDEN>
|
|
133
|
+
$<$<BOOL:${HAVE_UNISTD_H}>:HAVE_UNISTD_H=1>
|
|
134
|
+
PUBLIC $<$<BOOL:${HAVE_OFF64_T}>:_LARGEFILE64_SOURCE=1>
|
|
135
|
+
$<$<BOOL:${BZIP2_FOUND}>:HAVE_BZIP2=1>
|
|
136
|
+
$<$<BOOL:NOT:${HAVE_FOPEN64}>:USE_FILE32API=1>)
|
|
137
|
+
|
|
138
|
+
if(NOT CYGWIN)
|
|
139
|
+
set_target_properties(libminizip PROPERTIES SOVERSION
|
|
140
|
+
${minizip_VERSION_MAJOR})
|
|
141
|
+
endif(NOT CYGWIN)
|
|
142
|
+
|
|
143
|
+
set_target_properties(
|
|
144
|
+
libminizip
|
|
145
|
+
PROPERTIES EXPORT_NAME minizip
|
|
146
|
+
OUTPUT_NAME minizip
|
|
147
|
+
VERSION ${minizip_VERSION}
|
|
148
|
+
SOVERSION ${minizip_VERSION_MAJOR})
|
|
149
|
+
|
|
150
|
+
target_link_libraries(libminizip
|
|
151
|
+
PUBLIC ZLIB::ZLIB
|
|
152
|
+
$<$<BOOL:${BZIP2_FOUND}>:BZip2::BZip2>)
|
|
153
|
+
|
|
154
|
+
add_executable(minizip ${MINIZIP_SRCS} ${MINIZIP_HDRS})
|
|
155
|
+
set_target_properties(minizip PROPERTIES EXPORT_NAME minizip_executable)
|
|
156
|
+
target_compile_definitions(
|
|
157
|
+
minizip PRIVATE $<$<BOOL:${MSVC}>:_CRT_SECURE_NO_WARNINGS>)
|
|
158
|
+
target_link_libraries(minizip PRIVATE MINIZIP::minizip)
|
|
159
|
+
add_executable(miniunzip ${MINIUNZIP_SRCS} ${MINIUNZIP_HDRS})
|
|
160
|
+
set_target_properties(miniunzip PROPERTIES EXPORT_NAME miniunzip_executable)
|
|
161
|
+
target_compile_definitions(
|
|
162
|
+
miniunzip PRIVATE $<$<BOOL:${MSVC}>:_CRT_SECURE_NO_WARNINGS>)
|
|
163
|
+
target_link_libraries(miniunzip PRIVATE MINIZIP::minizip)
|
|
164
|
+
endif(MINIZIP_BUILD_SHARED)
|
|
165
|
+
|
|
166
|
+
if(MINIZIP_BUILD_STATIC)
|
|
167
|
+
add_library(libminizipstatic STATIC ${LIBMINIZIP_SRCS} ${LIBMINIZIP_HDRS})
|
|
168
|
+
add_library(MINIZIP::minizipstatic ALIAS libminizipstatic)
|
|
169
|
+
target_include_directories(
|
|
170
|
+
libminizipstatic
|
|
171
|
+
PUBLIC $<BUILD_INTERFACE:${minizip_SOURCE_DIR}>
|
|
172
|
+
$<INSTALL_INTERFACE:${CMAKE_INSTALL_INCLUDEDIR}>)
|
|
173
|
+
target_compile_definitions(
|
|
174
|
+
libminizipstatic
|
|
175
|
+
PRIVATE $<$<BOOL:${MSVC}>:_CRT_SECURE_NO_WARNINGS>
|
|
176
|
+
$<$<BOOL:${HAVE___ATTR__VIS_HIDDEN}>:HAVE_HIDDEN>
|
|
177
|
+
$<$<BOOL:${HAVE_UNISTD_H}>:HAVE_UNISTD_H=1>
|
|
178
|
+
PUBLIC $<$<BOOL:${HAVE_OFF64_T}>:_LARGEFILE64_SOURCE=1>
|
|
179
|
+
$<$<BOOL:${BZIP2_FOUND}>:HAVE_BZIP2=1>
|
|
180
|
+
$<$<BOOL:NOT:${HAVE_FOPEN64}>:USE_FILE32API=1>)
|
|
181
|
+
set_target_properties(
|
|
182
|
+
libminizipstatic PROPERTIES EXPORT_NAME minizipstatic
|
|
183
|
+
OUTPUT_NAME minizip${minizip_static_suffix})
|
|
184
|
+
|
|
185
|
+
if(CYGWIN)
|
|
186
|
+
set_target_properties(libminizipstatic PROPERTIES SUFFIX ".dll.a")
|
|
187
|
+
endif(CYGWIN)
|
|
188
|
+
|
|
189
|
+
target_link_libraries(libminizipstatic PUBLIC ZLIB::ZLIBSTATIC
|
|
190
|
+
$<$<BOOL:${BZIP2_FOUND}>:BZip2::BZip2>)
|
|
191
|
+
|
|
192
|
+
add_executable(minizipstatic ${MINIZIP_SRCS} ${MINIZIP_HDRS})
|
|
193
|
+
set_target_properties(minizipstatic PROPERTIES EXPORT_NAME
|
|
194
|
+
minizip_static_executable)
|
|
195
|
+
target_compile_definitions(
|
|
196
|
+
minizipstatic PRIVATE $<$<BOOL:${MSVC}>:_CRT_SECURE_NO_WARNINGS>)
|
|
197
|
+
target_link_libraries(minizipstatic PRIVATE MINIZIP::minizipstatic)
|
|
198
|
+
add_executable(miniunzipstatic ${MINIUNZIP_SRCS} ${MINIUNZIP_HDRS})
|
|
199
|
+
set_target_properties(miniunzipstatic
|
|
200
|
+
PROPERTIES EXPORT_NAME miniunzip_static_executable)
|
|
201
|
+
target_compile_definitions(
|
|
202
|
+
miniunzipstatic PRIVATE $<$<BOOL:${MSVC}>:_CRT_SECURE_NO_WARNINGS>)
|
|
203
|
+
target_link_libraries(miniunzipstatic PRIVATE MINIZIP::minizipstatic)
|
|
204
|
+
endif(MINIZIP_BUILD_STATIC)
|
|
205
|
+
|
|
206
|
+
if(MINIZIP_INSTALL)
|
|
207
|
+
if(MINIZIP_BUILD_SHARED)
|
|
208
|
+
install(
|
|
209
|
+
TARGETS libminizip minizip miniunzip
|
|
210
|
+
COMPONENT Runtime
|
|
211
|
+
EXPORT minizipSharedExport
|
|
212
|
+
RUNTIME DESTINATION "${CMAKE_INSTALL_BINDIR}"
|
|
213
|
+
ARCHIVE DESTINATION "${CMAKE_INSTALL_LIBDIR}"
|
|
214
|
+
LIBRARY DESTINATION "${CMAKE_INSTALL_LIBDIR}")
|
|
215
|
+
install(
|
|
216
|
+
EXPORT minizipSharedExport
|
|
217
|
+
FILE minizip-shared.cmake
|
|
218
|
+
NAMESPACE MINIZIP::
|
|
219
|
+
DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake/minizip)
|
|
220
|
+
if(MINIZIP_INSTALL_COMPAT_DLL)
|
|
221
|
+
install(
|
|
222
|
+
FILES $<TARGET_FILE:libminizip>
|
|
223
|
+
COMPONENT Runtime
|
|
224
|
+
RENAME libminizip-${minizip_VERSION_MAJOR}.dll
|
|
225
|
+
DESTINATION "${CMAKE_INSTALL_BINDIR}")
|
|
226
|
+
endif(MINIZIP_INSTALL_COMPAT_DLL)
|
|
227
|
+
|
|
228
|
+
if(MSVC)
|
|
229
|
+
install(
|
|
230
|
+
FILES $<TARGET_PDB_FILE:libminizip>
|
|
231
|
+
COMPONENT Runtime
|
|
232
|
+
DESTINATION ${CMAKE_INSTALL_BINDIR}
|
|
233
|
+
CONFIGURATIONS Debug OR RelWithDebInfo
|
|
234
|
+
OPTIONAL)
|
|
235
|
+
endif(MSVC)
|
|
236
|
+
endif(MINIZIP_BUILD_SHARED)
|
|
237
|
+
|
|
238
|
+
if(MINIZIP_BUILD_STATIC)
|
|
239
|
+
install(
|
|
240
|
+
TARGETS libminizipstatic
|
|
241
|
+
COMPONENT Development
|
|
242
|
+
TARGETS minizipstatic miniunzipstatic
|
|
243
|
+
COMPONENT Runtime
|
|
244
|
+
EXPORT minizipStaticExport
|
|
245
|
+
RUNTIME DESTINATION "${CMAKE_INSTALL_BINDIR}"
|
|
246
|
+
ARCHIVE DESTINATION "${CMAKE_INSTALL_LIBDIR}"
|
|
247
|
+
LIBRARY DESTINATION "${CMAKE_INSTALL_LIBDIR}")
|
|
248
|
+
install(
|
|
249
|
+
EXPORT minizipStaticExport
|
|
250
|
+
FILE minizip-static.cmake
|
|
251
|
+
NAMESPACE MINIZIP::
|
|
252
|
+
DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake/minizip)
|
|
253
|
+
endif(MINIZIP_BUILD_STATIC)
|
|
254
|
+
|
|
255
|
+
configure_package_config_file(
|
|
256
|
+
${minizip_SOURCE_DIR}/minizipConfig.cmake.in
|
|
257
|
+
${minizip_BINARY_DIR}/minizipConfig.cmake
|
|
258
|
+
INSTALL_DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake/minizip)
|
|
259
|
+
write_basic_package_version_file(
|
|
260
|
+
"${minizip_BINARY_DIR}/minizipConfigVersion.cmake"
|
|
261
|
+
VERSION "${minizip_VERSION}"
|
|
262
|
+
COMPATIBILITY AnyNewerVersion)
|
|
263
|
+
install(FILES ${minizip_BINARY_DIR}/minizipConfig.cmake
|
|
264
|
+
${minizip_BINARY_DIR}/minizipConfigVersion.cmake
|
|
265
|
+
DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake/minizip)
|
|
266
|
+
install(
|
|
267
|
+
FILES ${LIBMINIZIP_HDRS}
|
|
268
|
+
COMPONENT Development
|
|
269
|
+
DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}")
|
|
270
|
+
endif(MINIZIP_INSTALL)
|
|
271
|
+
|
|
272
|
+
if(MINIZIP_BUILD_TESTING)
|
|
273
|
+
enable_testing()
|
|
274
|
+
|
|
275
|
+
if(MINIZIP_BUILD_SHARED AND NOT ${CMAKE_SHARED_LIBRARY_SUFFIX} STREQUAL
|
|
276
|
+
".dll")
|
|
277
|
+
add_test(
|
|
278
|
+
NAME minizip_prepare_shared_zip
|
|
279
|
+
COMMAND ${CMAKE_COMMAND} -DCREATE_SHARED=ON -P
|
|
280
|
+
${CMAKE_CURRENT_SOURCE_DIR}/test/test_helper.cm
|
|
281
|
+
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/test)
|
|
282
|
+
add_test(
|
|
283
|
+
NAME minizip_zipping_test_file_shared
|
|
284
|
+
COMMAND minizip test_file_shared.zip test_file_shared.txt
|
|
285
|
+
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/test)
|
|
286
|
+
add_test(
|
|
287
|
+
NAME minizip_prepare_shared_unzip
|
|
288
|
+
COMMAND ${CMAKE_COMMAND} -DMOVE_SHARED=ON -P
|
|
289
|
+
${CMAKE_CURRENT_SOURCE_DIR}/test/test_helper.cm
|
|
290
|
+
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/test)
|
|
291
|
+
add_test(
|
|
292
|
+
NAME minizip_miniunzipping_test_file_shared.zip
|
|
293
|
+
COMMAND miniunzip test_file_shared.zip
|
|
294
|
+
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/test)
|
|
295
|
+
add_test(
|
|
296
|
+
NAME minizip_compare_shared
|
|
297
|
+
COMMAND ${CMAKE_COMMAND} -E compare_files test_file_shared.txt
|
|
298
|
+
test_file_shared.orig
|
|
299
|
+
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/test)
|
|
300
|
+
add_test(
|
|
301
|
+
NAME minizip_clean_shared_zip
|
|
302
|
+
COMMAND ${CMAKE_COMMAND} -DDELETE_SHARED=ON -P
|
|
303
|
+
${CMAKE_CURRENT_SOURCE_DIR}/test/test_helper.cm
|
|
304
|
+
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/test)
|
|
305
|
+
set_tests_properties(minizip_prepare_shared_zip
|
|
306
|
+
PROPERTIES FIXTURES_SETUP prepare_shared)
|
|
307
|
+
set_tests_properties(
|
|
308
|
+
minizip_zipping_test_file_shared
|
|
309
|
+
PROPERTIES FIXTURES_REQUIRED prepare_shared FIXTURES_SETUP
|
|
310
|
+
zip_shared)
|
|
311
|
+
set_tests_properties(
|
|
312
|
+
minizip_prepare_shared_unzip
|
|
313
|
+
PROPERTIES FIXTURES_REQUIRED zip_shared FIXTURES_SETUP
|
|
314
|
+
prepare_unzip_shared)
|
|
315
|
+
set_tests_properties(
|
|
316
|
+
minizip_miniunzipping_test_file_shared.zip
|
|
317
|
+
PROPERTIES FIXTURES_REQUIRED prepare_unzip_shared FIXTURES_SETUP
|
|
318
|
+
prepare_compare_shared)
|
|
319
|
+
set_tests_properties(
|
|
320
|
+
minizip_compare_shared
|
|
321
|
+
PROPERTIES FIXTURES_REQUIRED prepare_compare_shared FIXTURES_SETUP
|
|
322
|
+
compared_shared)
|
|
323
|
+
set_tests_properties(minizip_clean_shared_zip
|
|
324
|
+
PROPERTIES FIXTURES_CLEANUP compared_shared)
|
|
325
|
+
endif(MINIZIP_BUILD_SHARED AND NOT ${CMAKE_SHARED_LIBRARY_SUFFIX} STREQUAL
|
|
326
|
+
".dll")
|
|
327
|
+
|
|
328
|
+
if(MINIZIP_BUILD_STATIC)
|
|
329
|
+
add_test(
|
|
330
|
+
NAME minizip_prepare_static_zip
|
|
331
|
+
COMMAND ${CMAKE_COMMAND} -DCREATE_STATIC=ON -P
|
|
332
|
+
${CMAKE_CURRENT_SOURCE_DIR}/test/test_helper.cm
|
|
333
|
+
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/test)
|
|
334
|
+
add_test(
|
|
335
|
+
NAME minizip_zipping_test_file_static
|
|
336
|
+
COMMAND minizipstatic test_file_static.zip test_file_static.txt
|
|
337
|
+
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/test)
|
|
338
|
+
add_test(
|
|
339
|
+
NAME minizip_prepare_static_unzip
|
|
340
|
+
COMMAND ${CMAKE_COMMAND} -DMOVE_STATIC=ON -P
|
|
341
|
+
${CMAKE_CURRENT_SOURCE_DIR}/test/test_helper.cm
|
|
342
|
+
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/test)
|
|
343
|
+
add_test(
|
|
344
|
+
NAME minizip_miniunzipping_test_file_static.zip
|
|
345
|
+
COMMAND miniunzipstatic test_file_static.zip
|
|
346
|
+
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/test)
|
|
347
|
+
add_test(
|
|
348
|
+
NAME minizip_compare_static
|
|
349
|
+
COMMAND ${CMAKE_COMMAND} -E compare_files test_file_static.txt
|
|
350
|
+
test_file_static.orig
|
|
351
|
+
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/test)
|
|
352
|
+
add_test(
|
|
353
|
+
NAME minizip_clean_static_zip
|
|
354
|
+
COMMAND ${CMAKE_COMMAND} -DDELETE_STATIC=ON -P
|
|
355
|
+
${CMAKE_CURRENT_SOURCE_DIR}/test/test_helper.cm
|
|
356
|
+
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/test)
|
|
357
|
+
set_tests_properties(minizip_prepare_static_zip
|
|
358
|
+
PROPERTIES FIXTURES_SETUP prepare_static)
|
|
359
|
+
set_tests_properties(
|
|
360
|
+
minizip_zipping_test_file_static
|
|
361
|
+
PROPERTIES FIXTURES_REQUIRED prepare_static FIXTURES_SETUP
|
|
362
|
+
zip_static)
|
|
363
|
+
set_tests_properties(
|
|
364
|
+
minizip_prepare_static_unzip
|
|
365
|
+
PROPERTIES FIXTURES_REQUIRED zip_static FIXTURES_SETUP
|
|
366
|
+
prepare_unzip_static)
|
|
367
|
+
set_tests_properties(
|
|
368
|
+
minizip_miniunzipping_test_file_static.zip
|
|
369
|
+
PROPERTIES FIXTURES_REQUIRED prepare_unzip_static FIXTURES_SETUP
|
|
370
|
+
prepare_compare_static)
|
|
371
|
+
set_tests_properties(
|
|
372
|
+
minizip_compare_static
|
|
373
|
+
PROPERTIES FIXTURES_REQUIRED prepare_compare_static FIXTURES_SETUP
|
|
374
|
+
compared_static)
|
|
375
|
+
set_tests_properties(minizip_clean_static_zip
|
|
376
|
+
PROPERTIES FIXTURES_CLEANUP compared_static)
|
|
377
|
+
endif(MINIZIP_BUILD_STATIC)
|
|
378
|
+
|
|
379
|
+
add_subdirectory(test)
|
|
380
|
+
endif(MINIZIP_BUILD_TESTING)
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
CC?=cc
|
|
2
|
+
CFLAGS := -O $(CFLAGS) -I../..
|
|
3
|
+
|
|
4
|
+
UNZ_OBJS = miniunz.o unzip.o ioapi.o ../../libz.a
|
|
5
|
+
ZIP_OBJS = minizip.o zip.o ioapi.o ../../libz.a
|
|
6
|
+
|
|
7
|
+
.c.o:
|
|
8
|
+
$(CC) -c $(CFLAGS) $*.c
|
|
9
|
+
|
|
10
|
+
all: miniunz minizip
|
|
11
|
+
|
|
12
|
+
miniunz.o: miniunz.c unzip.h iowin32.h
|
|
13
|
+
minizip.o: minizip.c zip.h iowin32.h ints.h
|
|
14
|
+
unzip.o: unzip.c unzip.h crypt.h
|
|
15
|
+
zip.o: zip.c zip.h crypt.h skipset.h ints.h
|
|
16
|
+
ioapi.o: ioapi.c ioapi.h ints.h
|
|
17
|
+
iowin32.o: iowin32.c iowin32.h ioapi.h
|
|
18
|
+
mztools.o: mztools.c unzip.h
|
|
19
|
+
|
|
20
|
+
miniunz: $(UNZ_OBJS)
|
|
21
|
+
$(CC) $(CFLAGS) -o $@ $(UNZ_OBJS)
|
|
22
|
+
|
|
23
|
+
minizip: $(ZIP_OBJS)
|
|
24
|
+
$(CC) $(CFLAGS) -o $@ $(ZIP_OBJS)
|
|
25
|
+
|
|
26
|
+
test: miniunz minizip
|
|
27
|
+
@rm -f test.*
|
|
28
|
+
@echo hello hello hello > test.txt
|
|
29
|
+
./minizip test test.txt
|
|
30
|
+
./miniunz -l test.zip
|
|
31
|
+
@mv test.txt test.old
|
|
32
|
+
./miniunz test.zip
|
|
33
|
+
@cmp test.txt test.old
|
|
34
|
+
@rm -f test.*
|
|
35
|
+
|
|
36
|
+
clean:
|
|
37
|
+
/bin/rm -f *.o *~ minizip miniunz test.*
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
lib_LTLIBRARIES = libminizip.la
|
|
2
|
+
|
|
3
|
+
if COND_DEMOS
|
|
4
|
+
bin_PROGRAMS = miniunzip minizip
|
|
5
|
+
endif
|
|
6
|
+
|
|
7
|
+
zlib_top_srcdir = $(top_srcdir)/../..
|
|
8
|
+
zlib_top_builddir = $(top_builddir)/../..
|
|
9
|
+
|
|
10
|
+
AM_CPPFLAGS = -I$(zlib_top_srcdir)
|
|
11
|
+
AM_LDFLAGS = -L$(zlib_top_builddir)
|
|
12
|
+
|
|
13
|
+
if WIN32
|
|
14
|
+
iowin32_src = iowin32.c
|
|
15
|
+
iowin32_h = iowin32.h
|
|
16
|
+
endif
|
|
17
|
+
|
|
18
|
+
libminizip_la_SOURCES = \
|
|
19
|
+
ioapi.c \
|
|
20
|
+
mztools.c \
|
|
21
|
+
unzip.c \
|
|
22
|
+
zip.c \
|
|
23
|
+
${iowin32_src}
|
|
24
|
+
|
|
25
|
+
libminizip_la_LDFLAGS = $(AM_LDFLAGS) -version-info 1:0:0 -lz
|
|
26
|
+
|
|
27
|
+
minizip_includedir = $(includedir)/minizip
|
|
28
|
+
minizip_include_HEADERS = \
|
|
29
|
+
crypt.h \
|
|
30
|
+
ioapi.h \
|
|
31
|
+
mztools.h \
|
|
32
|
+
unzip.h \
|
|
33
|
+
zip.h \
|
|
34
|
+
${iowin32_h}
|
|
35
|
+
|
|
36
|
+
pkgconfigdir = $(libdir)/pkgconfig
|
|
37
|
+
pkgconfig_DATA = minizip.pc
|
|
38
|
+
|
|
39
|
+
EXTRA_PROGRAMS = miniunzip minizip
|
|
40
|
+
|
|
41
|
+
miniunzip_SOURCES = miniunz.c
|
|
42
|
+
miniunzip_LDADD = libminizip.la
|
|
43
|
+
|
|
44
|
+
minizip_SOURCES = minizip.c
|
|
45
|
+
minizip_LDADD = libminizip.la -lz
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
MiniZip - Copyright (c) 1998-2010 - by Gilles Vollant - version 1.1 64 bits from Mathias Svensson
|
|
2
|
+
|
|
3
|
+
Introduction
|
|
4
|
+
---------------------
|
|
5
|
+
MiniZip 1.1 is built from MiniZip 1.0 by Gilles Vollant ( http://www.winimage.com/zLibDll/minizip.html )
|
|
6
|
+
|
|
7
|
+
When adding ZIP64 support into minizip it would result into risk of breaking compatibility with minizip 1.0.
|
|
8
|
+
All possible work was done for compatibility.
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
Background
|
|
12
|
+
---------------------
|
|
13
|
+
When adding ZIP64 support Mathias Svensson found that Even Rouault have added ZIP64
|
|
14
|
+
support for unzip.c into minizip for a open source project called gdal ( http://www.gdal.org/ )
|
|
15
|
+
|
|
16
|
+
That was used as a starting point. And after that ZIP64 support was added to zip.c
|
|
17
|
+
some refactoring and code cleanup was also done.
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
Changed from MiniZip 1.0 to MiniZip 1.1
|
|
21
|
+
---------------------------------------
|
|
22
|
+
* Added ZIP64 support for unzip ( by Even Rouault )
|
|
23
|
+
* Added ZIP64 support for zip ( by Mathias Svensson )
|
|
24
|
+
* Reverted some changed that Even Rouault did.
|
|
25
|
+
* Bunch of patches received from Gulles Vollant that he received for MiniZip from various users.
|
|
26
|
+
* Added unzip patch for BZIP Compression method (patch create by Daniel Borca)
|
|
27
|
+
* Added BZIP Compress method for zip
|
|
28
|
+
* Did some refactoring and code cleanup
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
Credits
|
|
32
|
+
|
|
33
|
+
Gilles Vollant - Original MiniZip author
|
|
34
|
+
Even Rouault - ZIP64 unzip Support
|
|
35
|
+
Daniel Borca - BZip Compression method support in unzip
|
|
36
|
+
Mathias Svensson - ZIP64 zip support
|
|
37
|
+
Mathias Svensson - BZip Compression method support in zip
|
|
38
|
+
|
|
39
|
+
Resources
|
|
40
|
+
|
|
41
|
+
ZipLayout http://result42.com/projects/ZipFileLayout
|
|
42
|
+
Command line tool for Windows that shows the layout and information of the headers in a zip archive.
|
|
43
|
+
Used when debugging and validating the creation of zip files using MiniZip64
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
ZIP App Note http://www.pkware.com/documents/casestudies/APPNOTE.TXT
|
|
47
|
+
Zip File specification
|
|
48
|
+
|
|
49
|
+
|
|
50
|
+
Notes.
|
|
51
|
+
* To be able to use BZip compression method in zip64.c or unzip64.c the BZIP2 lib is needed and HAVE_BZIP2 need to be defined.
|
|
52
|
+
|
|
53
|
+
License
|
|
54
|
+
----------------------------------------------------------
|
|
55
|
+
Condition of use and distribution are the same than zlib :
|
|
56
|
+
|
|
57
|
+
This software is provided 'as-is', without any express or implied
|
|
58
|
+
warranty. In no event will the authors be held liable for any damages
|
|
59
|
+
arising from the use of this software.
|
|
60
|
+
|
|
61
|
+
Permission is granted to anyone to use this software for any purpose,
|
|
62
|
+
including commercial applications, and to alter it and redistribute it
|
|
63
|
+
freely, subject to the following restrictions:
|
|
64
|
+
|
|
65
|
+
1. The origin of this software must not be misrepresented; you must not
|
|
66
|
+
claim that you wrote the original software. If you use this software
|
|
67
|
+
in a product, an acknowledgment in the product documentation would be
|
|
68
|
+
appreciated but is not required.
|
|
69
|
+
2. Altered source versions must be plainly marked as such, and must not be
|
|
70
|
+
misrepresented as being the original software.
|
|
71
|
+
3. This notice may not be removed or altered from any source distribution.
|
|
72
|
+
|
|
73
|
+
----------------------------------------------------------
|
|
74
|
+
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
# -*- Autoconf -*-
|
|
2
|
+
# Process this file with autoconf to produce a configure script.
|
|
3
|
+
|
|
4
|
+
AC_INIT([minizip], [1.3.1.1], [bugzilla.redhat.com])
|
|
5
|
+
AC_CONFIG_SRCDIR([minizip.c])
|
|
6
|
+
AM_INIT_AUTOMAKE([foreign])
|
|
7
|
+
LT_INIT
|
|
8
|
+
|
|
9
|
+
AC_MSG_CHECKING([whether to build example programs])
|
|
10
|
+
AC_ARG_ENABLE([demos], AS_HELP_STRING([--enable-demos], [build example programs]))
|
|
11
|
+
AM_CONDITIONAL([COND_DEMOS], [test "$enable_demos" = yes])
|
|
12
|
+
if test "$enable_demos" = yes
|
|
13
|
+
then
|
|
14
|
+
AC_MSG_RESULT([yes])
|
|
15
|
+
else
|
|
16
|
+
AC_MSG_RESULT([no])
|
|
17
|
+
fi
|
|
18
|
+
|
|
19
|
+
case "${host}" in
|
|
20
|
+
*-mingw* | mingw*)
|
|
21
|
+
WIN32="yes"
|
|
22
|
+
;;
|
|
23
|
+
*)
|
|
24
|
+
;;
|
|
25
|
+
esac
|
|
26
|
+
AM_CONDITIONAL([WIN32], [test "${WIN32}" = "yes"])
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
AC_SUBST([HAVE_UNISTD_H], [0])
|
|
30
|
+
AC_CHECK_HEADER([unistd.h], [HAVE_UNISTD_H=1], [])
|
|
31
|
+
AC_CONFIG_FILES([Makefile minizip.pc])
|
|
32
|
+
AC_OUTPUT
|