├── .gitignore ├── README.md └── p7zip_16.02 ├── Asm └── x86 │ ├── 7zAsm.asm │ ├── 7zCrcOpt_asm.asm │ └── AesOpt.asm ├── C ├── 7zBuf.h ├── 7zBuf2.c ├── 7zCrc.c ├── 7zCrc.h ├── 7zCrcOpt.c ├── 7zStream.c ├── 7zTypes.h ├── 7zVersion.h ├── Aes.c ├── Aes.h ├── Alloc.c ├── Alloc.h ├── Bcj2.c ├── Bcj2.h ├── Bcj2Enc.c ├── Blake2.h ├── Blake2s.c ├── Bra.c ├── Bra.h ├── Bra86.c ├── BraIA64.c ├── BwtSort.c ├── BwtSort.h ├── Compiler.h ├── CpuArch.c ├── CpuArch.h ├── Delta.c ├── Delta.h ├── HuffEnc.c ├── HuffEnc.h ├── LzFind.c ├── LzFind.h ├── LzFindMt.c ├── LzFindMt.h ├── LzHash.h ├── Lzma2Dec.c ├── Lzma2Dec.h ├── Lzma2Enc.c ├── Lzma2Enc.h ├── Lzma86.h ├── Lzma86Dec.c ├── Lzma86Enc.c ├── LzmaDec.c ├── LzmaDec.h ├── LzmaEnc.c ├── LzmaEnc.h ├── MtCoder.c ├── MtCoder.h ├── Ppmd.h ├── Ppmd7.c ├── Ppmd7.h ├── Ppmd7Dec.c ├── Ppmd7Enc.c ├── Ppmd8.c ├── Ppmd8.h ├── Ppmd8Dec.c ├── Ppmd8Enc.c ├── Precomp.h ├── RotateDefs.h ├── Sha1.c ├── Sha1.h ├── Sha256.c ├── Sha256.h ├── Sort.c ├── Sort.h ├── Threads.c ├── Threads.h ├── Xz.c ├── Xz.h ├── XzCrc64.c ├── XzCrc64.h ├── XzCrc64Opt.c ├── XzDec.c ├── XzEnc.c ├── XzEnc.h ├── XzIn.c ├── ZStd │ ├── bitstream.h │ ├── entropy_common.c │ ├── error_private.c │ ├── error_private.h │ ├── error_public.h │ ├── fse.h │ ├── fse_compress.c │ ├── fse_decompress.c │ ├── huf.h │ ├── huf_compress.c │ ├── huf_decompress.c │ ├── mem.h │ ├── threading.c │ ├── threading.h │ ├── xxhash.c │ ├── xxhash.h │ ├── zstd.h │ ├── zstd_common.c │ ├── zstd_compress.c │ ├── zstd_decompress.c │ ├── zstd_errors.h │ ├── zstd_internal.h │ ├── zstd_legacy.h │ ├── zstd_opt.h │ ├── zstd_v01.c │ ├── zstd_v01.h │ ├── zstd_v02.c │ ├── zstd_v02.h │ ├── zstd_v03.c │ ├── zstd_v03.h │ ├── zstd_v04.c │ ├── zstd_v04.h │ ├── zstd_v05.c │ ├── zstd_v05.h │ ├── zstd_v06.c │ ├── zstd_v06.h │ ├── zstd_v07.c │ ├── zstd_v07.h │ ├── zstdmt_common.c │ ├── zstdmt_compress.c │ └── zstdmt_decompress.c └── zstdmt │ ├── README.md │ ├── list.h │ ├── lz4mt.h │ ├── lz4mt_common.c │ ├── lz4mt_compress.c │ ├── lz4mt_decompress.c │ ├── lz5mt.h │ ├── lz5mt_common.c │ ├── lz5mt_compress.c │ ├── lz5mt_decompress.c │ ├── mem.h │ ├── threading.c │ ├── threading.h │ ├── zstdmt.h │ ├── zstdmt_common.c │ ├── zstdmt_compress.c │ └── zstdmt_decompress.c ├── CPP ├── 7zip │ ├── Archive │ │ ├── 7z │ │ │ ├── 7zCompressionMode.cpp │ │ │ ├── 7zCompressionMode.h │ │ │ ├── 7zDecode.cpp │ │ │ ├── 7zDecode.h │ │ │ ├── 7zEncode.cpp │ │ │ ├── 7zEncode.h │ │ │ ├── 7zExtract.cpp │ │ │ ├── 7zFolderInStream.cpp │ │ │ ├── 7zFolderInStream.h │ │ │ ├── 7zHandler.cpp │ │ │ ├── 7zHandler.h │ │ │ ├── 7zHandlerOut.cpp │ │ │ ├── 7zHeader.cpp │ │ │ ├── 7zHeader.h │ │ │ ├── 7zIn.cpp │ │ │ ├── 7zIn.h │ │ │ ├── 7zItem.h │ │ │ ├── 7zOut.cpp │ │ │ ├── 7zOut.h │ │ │ ├── 7zProperties.cpp │ │ │ ├── 7zProperties.h │ │ │ ├── 7zRegister.cpp │ │ │ ├── 7zSpecStream.cpp │ │ │ ├── 7zSpecStream.h │ │ │ ├── 7zUpdate.cpp │ │ │ └── 7zUpdate.h │ │ ├── ApmHandler.cpp │ │ ├── ArHandler.cpp │ │ ├── ArchiveExports.cpp │ │ ├── ArjHandler.cpp │ │ ├── Bz2Handler.cpp │ │ ├── Cab │ │ │ ├── CabBlockInStream.cpp │ │ │ ├── CabBlockInStream.h │ │ │ ├── CabHandler.cpp │ │ │ ├── CabHandler.h │ │ │ ├── CabHeader.cpp │ │ │ ├── CabHeader.h │ │ │ ├── CabIn.cpp │ │ │ ├── CabIn.h │ │ │ ├── CabItem.h │ │ │ └── CabRegister.cpp │ │ ├── Chm │ │ │ ├── ChmHandler.cpp │ │ │ ├── ChmHandler.h │ │ │ ├── ChmIn.cpp │ │ │ └── ChmIn.h │ │ ├── ComHandler.cpp │ │ ├── Common │ │ │ ├── CoderMixer2.cpp │ │ │ ├── CoderMixer2.h │ │ │ ├── DummyOutStream.cpp │ │ │ ├── DummyOutStream.h │ │ │ ├── FindSignature.cpp │ │ │ ├── FindSignature.h │ │ │ ├── HandlerOut.cpp │ │ │ ├── HandlerOut.h │ │ │ ├── InStreamWithCRC.cpp │ │ │ ├── InStreamWithCRC.h │ │ │ ├── ItemNameUtils.cpp │ │ │ ├── ItemNameUtils.h │ │ │ ├── MultiStream.cpp │ │ │ ├── MultiStream.h │ │ │ ├── OutStreamWithCRC.cpp │ │ │ ├── OutStreamWithCRC.h │ │ │ ├── OutStreamWithSha1.cpp │ │ │ ├── OutStreamWithSha1.h │ │ │ ├── ParseProperties.cpp │ │ │ └── ParseProperties.h │ │ ├── CpioHandler.cpp │ │ ├── CramfsHandler.cpp │ │ ├── DeflateProps.cpp │ │ ├── DeflateProps.h │ │ ├── DllExports2.cpp │ │ ├── DmgHandler.cpp │ │ ├── ElfHandler.cpp │ │ ├── ExtHandler.cpp │ │ ├── FatHandler.cpp │ │ ├── FlvHandler.cpp │ │ ├── GptHandler.cpp │ │ ├── GzHandler.cpp │ │ ├── HandlerCont.cpp │ │ ├── HandlerCont.h │ │ ├── HfsHandler.cpp │ │ ├── IArchive.h │ │ ├── IhexHandler.cpp │ │ ├── Iso │ │ │ ├── IsoHandler.cpp │ │ │ ├── IsoHandler.h │ │ │ ├── IsoHeader.cpp │ │ │ ├── IsoHeader.h │ │ │ ├── IsoIn.cpp │ │ │ ├── IsoIn.h │ │ │ ├── IsoItem.h │ │ │ └── IsoRegister.cpp │ │ ├── LzHandler.cpp │ │ ├── LzhHandler.cpp │ │ ├── LzmaHandler.cpp │ │ ├── MachoHandler.cpp │ │ ├── MbrHandler.cpp │ │ ├── MslzHandler.cpp │ │ ├── MubHandler.cpp │ │ ├── Nsis │ │ │ ├── NsisDecode.cpp │ │ │ ├── NsisDecode.h │ │ │ ├── NsisHandler.cpp │ │ │ ├── NsisHandler.h │ │ │ ├── NsisIn.cpp │ │ │ ├── NsisIn.h │ │ │ └── NsisRegister.cpp │ │ ├── NtfsHandler.cpp │ │ ├── PeHandler.cpp │ │ ├── PpmdHandler.cpp │ │ ├── QcowHandler.cpp │ │ ├── Rar │ │ │ ├── Rar5Handler.cpp │ │ │ ├── Rar5Handler.h │ │ │ ├── RarHandler.cpp │ │ │ ├── RarHandler.h │ │ │ ├── RarHeader.h │ │ │ ├── RarItem.h │ │ │ └── RarVol.h │ │ ├── RpmHandler.cpp │ │ ├── SplitHandler.cpp │ │ ├── SquashfsHandler.cpp │ │ ├── SwfHandler.cpp │ │ ├── Tar │ │ │ ├── TarHandler.cpp │ │ │ ├── TarHandler.h │ │ │ ├── TarHandlerOut.cpp │ │ │ ├── TarHeader.cpp │ │ │ ├── TarHeader.h │ │ │ ├── TarIn.cpp │ │ │ ├── TarIn.h │ │ │ ├── TarItem.h │ │ │ ├── TarOut.cpp │ │ │ ├── TarOut.h │ │ │ ├── TarRegister.cpp │ │ │ ├── TarUpdate.cpp │ │ │ └── TarUpdate.h │ │ ├── Udf │ │ │ ├── UdfHandler.cpp │ │ │ ├── UdfHandler.h │ │ │ ├── UdfIn.cpp │ │ │ └── UdfIn.h │ │ ├── UefiHandler.cpp │ │ ├── VdiHandler.cpp │ │ ├── VhdHandler.cpp │ │ ├── VmdkHandler.cpp │ │ ├── Wim │ │ │ ├── WimHandler.cpp │ │ │ ├── WimHandler.h │ │ │ ├── WimHandlerOut.cpp │ │ │ ├── WimIn.cpp │ │ │ ├── WimIn.h │ │ │ └── WimRegister.cpp │ │ ├── XarHandler.cpp │ │ ├── XzHandler.cpp │ │ ├── XzHandler.h │ │ ├── ZHandler.cpp │ │ ├── Zip │ │ │ ├── ZipAddCommon.cpp │ │ │ ├── ZipAddCommon.h │ │ │ ├── ZipCompressionMode.h │ │ │ ├── ZipHandler.cpp │ │ │ ├── ZipHandler.h │ │ │ ├── ZipHandlerOut.cpp │ │ │ ├── ZipHeader.h │ │ │ ├── ZipIn.cpp │ │ │ ├── ZipIn.h │ │ │ ├── ZipItem.cpp │ │ │ ├── ZipItem.h │ │ │ ├── ZipOut.cpp │ │ │ ├── ZipOut.h │ │ │ ├── ZipRegister.cpp │ │ │ ├── ZipUpdate.cpp │ │ │ └── ZipUpdate.h │ │ └── ZstdHandler.cpp │ ├── Bundles │ │ ├── Alone │ │ │ ├── makefile │ │ │ ├── makefile.depend │ │ │ └── makefile.list │ │ ├── Alone7z │ │ │ ├── makefile │ │ │ ├── makefile.depend │ │ │ └── makefile.list │ │ ├── AloneGCOV │ │ │ └── makefile │ │ ├── Format7zFree │ │ │ ├── makefile │ │ │ ├── makefile.depend │ │ │ └── makefile.list │ │ ├── LzmaCon │ │ │ ├── LzmaAlone.cpp │ │ │ ├── makefile │ │ │ ├── makefile.depend │ │ │ └── makefile.list │ │ └── SFXCon │ │ │ ├── SfxCon.cpp │ │ │ ├── makefile │ │ │ ├── makefile.depend │ │ │ └── makefile.list │ ├── CMAKE │ │ ├── 7zFM │ │ │ └── CMakeLists.txt │ │ ├── 7zG │ │ │ └── CMakeLists.txt │ │ ├── 7z_ │ │ │ └── CMakeLists.txt │ │ ├── 7za │ │ │ └── CMakeLists.txt │ │ ├── 7zr │ │ │ └── CMakeLists.txt │ │ ├── CMakeLists.txt │ │ ├── Format7zFree │ │ │ └── CMakeLists.txt │ │ ├── generate.sh │ │ └── generate_xcode.sh │ ├── Common │ │ ├── CWrappers.cpp │ │ ├── CWrappers.h │ │ ├── CreateCoder.cpp │ │ ├── CreateCoder.h │ │ ├── FilePathAutoRename.cpp │ │ ├── FilePathAutoRename.h │ │ ├── FileStreams.cpp │ │ ├── FileStreams.h │ │ ├── FilterCoder.cpp │ │ ├── FilterCoder.h │ │ ├── InBuffer.cpp │ │ ├── InBuffer.h │ │ ├── InOutTempBuffer.cpp │ │ ├── InOutTempBuffer.h │ │ ├── LimitedStreams.cpp │ │ ├── LimitedStreams.h │ │ ├── MemBlocks.cpp │ │ ├── MemBlocks.h │ │ ├── MethodId.cpp │ │ ├── MethodId.h │ │ ├── MethodProps.cpp │ │ ├── MethodProps.h │ │ ├── OffsetStream.cpp │ │ ├── OffsetStream.h │ │ ├── OutBuffer.cpp │ │ ├── OutBuffer.h │ │ ├── OutMemStream.cpp │ │ ├── OutMemStream.h │ │ ├── ProgressMt.cpp │ │ ├── ProgressMt.h │ │ ├── ProgressUtils.cpp │ │ ├── ProgressUtils.h │ │ ├── PropId.cpp │ │ ├── RegisterArc.h │ │ ├── RegisterCodec.h │ │ ├── StreamBinder.cpp │ │ ├── StreamBinder.h │ │ ├── StreamObjects.cpp │ │ ├── StreamObjects.h │ │ ├── StreamUtils.cpp │ │ ├── StreamUtils.h │ │ ├── UniqBlocks.cpp │ │ ├── UniqBlocks.h │ │ ├── VirtThread.cpp │ │ └── VirtThread.h │ ├── Compress │ │ ├── BZip2Const.h │ │ ├── BZip2Crc.cpp │ │ ├── BZip2Crc.h │ │ ├── BZip2Decoder.cpp │ │ ├── BZip2Decoder.h │ │ ├── BZip2Encoder.cpp │ │ ├── BZip2Encoder.h │ │ ├── BZip2Register.cpp │ │ ├── Bcj2Coder.cpp │ │ ├── Bcj2Coder.h │ │ ├── Bcj2Register.cpp │ │ ├── BcjCoder.cpp │ │ ├── BcjCoder.h │ │ ├── BcjRegister.cpp │ │ ├── BitlDecoder.cpp │ │ ├── BitlDecoder.h │ │ ├── BitlEncoder.h │ │ ├── BitmDecoder.h │ │ ├── BitmEncoder.h │ │ ├── BranchMisc.cpp │ │ ├── BranchMisc.h │ │ ├── BranchRegister.cpp │ │ ├── ByteSwap.cpp │ │ ├── CodecExports.cpp │ │ ├── CopyCoder.cpp │ │ ├── CopyCoder.h │ │ ├── CopyRegister.cpp │ │ ├── Deflate64Register.cpp │ │ ├── DeflateConst.h │ │ ├── DeflateDecoder.cpp │ │ ├── DeflateDecoder.h │ │ ├── DeflateEncoder.cpp │ │ ├── DeflateEncoder.h │ │ ├── DeflateRegister.cpp │ │ ├── DeltaFilter.cpp │ │ ├── DllExports2Compress.cpp │ │ ├── DllExportsCompress.cpp │ │ ├── HuffmanDecoder.h │ │ ├── ImplodeDecoder.cpp │ │ ├── ImplodeDecoder.h │ │ ├── ImplodeHuffmanDecoder.cpp │ │ ├── ImplodeHuffmanDecoder.h │ │ ├── LzOutWindow.cpp │ │ ├── LzOutWindow.h │ │ ├── LzhDecoder.cpp │ │ ├── LzhDecoder.h │ │ ├── Lzham │ │ │ ├── LICENSE │ │ │ ├── LzhamRegister.cpp │ │ │ ├── README.md │ │ │ ├── include │ │ │ │ ├── lzham.h │ │ │ │ ├── lzham_dynamic_lib.h │ │ │ │ ├── lzham_exports.inc │ │ │ │ ├── lzham_static_lib.h │ │ │ │ └── zlib.h │ │ │ ├── lzhamcomp │ │ │ │ ├── CMakeLists.txt │ │ │ │ ├── lzham_comp.h │ │ │ │ ├── lzham_lzbase.cpp │ │ │ │ ├── lzham_lzbase.h │ │ │ │ ├── lzham_lzcomp.cpp │ │ │ │ ├── lzham_lzcomp_internal.cpp │ │ │ │ ├── lzham_lzcomp_internal.h │ │ │ │ ├── lzham_lzcomp_state.cpp │ │ │ │ ├── lzham_match_accel.cpp │ │ │ │ ├── lzham_match_accel.h │ │ │ │ ├── lzham_null_threading.h │ │ │ │ ├── lzham_pthreads_threading.cpp │ │ │ │ ├── lzham_pthreads_threading.h │ │ │ │ ├── lzham_threading.h │ │ │ │ ├── lzham_win32_threading.cpp │ │ │ │ ├── lzham_win32_threading.h │ │ │ │ └── lzhamcomp.vcxproj │ │ │ ├── lzhamdecomp │ │ │ │ ├── CMakeLists.txt │ │ │ │ ├── lzham_assert.cpp │ │ │ │ ├── lzham_assert.h │ │ │ │ ├── lzham_checksum.cpp │ │ │ │ ├── lzham_checksum.h │ │ │ │ ├── lzham_config.h │ │ │ │ ├── lzham_core.h │ │ │ │ ├── lzham_decomp.h │ │ │ │ ├── lzham_helpers.h │ │ │ │ ├── lzham_huffman_codes.cpp │ │ │ │ ├── lzham_huffman_codes.h │ │ │ │ ├── lzham_lzdecomp.cpp │ │ │ │ ├── lzham_lzdecompbase.cpp │ │ │ │ ├── lzham_lzdecompbase.h │ │ │ │ ├── lzham_math.h │ │ │ │ ├── lzham_mem.cpp │ │ │ │ ├── lzham_mem.h │ │ │ │ ├── lzham_platform.cpp │ │ │ │ ├── lzham_platform.h │ │ │ │ ├── lzham_prefix_coding.cpp │ │ │ │ ├── lzham_prefix_coding.h │ │ │ │ ├── lzham_symbol_codec.cpp │ │ │ │ ├── lzham_symbol_codec.h │ │ │ │ ├── lzham_timer.cpp │ │ │ │ ├── lzham_timer.h │ │ │ │ ├── lzham_traits.h │ │ │ │ ├── lzham_types.h │ │ │ │ ├── lzham_utils.h │ │ │ │ ├── lzham_vector.cpp │ │ │ │ ├── lzham_vector.h │ │ │ │ └── lzhamdecomp.vcxproj │ │ │ ├── lzhamlib │ │ │ │ ├── lzham_lib.cpp │ │ │ │ └── lzhamlib.vcxproj │ │ │ ├── makefile │ │ │ ├── makefile.depend │ │ │ └── makefile.list │ │ ├── Lzma2Decoder.cpp │ │ ├── Lzma2Decoder.h │ │ ├── Lzma2Encoder.cpp │ │ ├── Lzma2Encoder.h │ │ ├── Lzma2Register.cpp │ │ ├── LzmaDecoder.cpp │ │ ├── LzmaDecoder.h │ │ ├── LzmaEncoder.cpp │ │ ├── LzmaEncoder.h │ │ ├── LzmaRegister.cpp │ │ ├── LzmsDecoder.cpp │ │ ├── LzmsDecoder.h │ │ ├── Lzx.h │ │ ├── LzxDecoder.cpp │ │ ├── LzxDecoder.h │ │ ├── Mtf8.h │ │ ├── PpmdDecoder.cpp │ │ ├── PpmdDecoder.h │ │ ├── PpmdEncoder.cpp │ │ ├── PpmdEncoder.h │ │ ├── PpmdRegister.cpp │ │ ├── PpmdZip.cpp │ │ ├── PpmdZip.h │ │ ├── QuantumDecoder.cpp │ │ ├── QuantumDecoder.h │ │ ├── Rar │ │ │ ├── makefile │ │ │ ├── makefile.depend │ │ │ └── makefile.list │ │ ├── Rar1Decoder.cpp │ │ ├── Rar1Decoder.h │ │ ├── Rar2Decoder.cpp │ │ ├── Rar2Decoder.h │ │ ├── Rar3Decoder.cpp │ │ ├── Rar3Decoder.h │ │ ├── Rar3Vm.cpp │ │ ├── Rar3Vm.h │ │ ├── Rar5Decoder.cpp │ │ ├── Rar5Decoder.h │ │ ├── RarCodecsRegister.cpp │ │ ├── ShrinkDecoder.cpp │ │ ├── ShrinkDecoder.h │ │ ├── XpressDecoder.cpp │ │ ├── XpressDecoder.h │ │ ├── ZDecoder.cpp │ │ ├── ZDecoder.h │ │ ├── ZStd │ │ │ ├── makefile │ │ │ ├── makefile.depend │ │ │ └── makefile.list │ │ ├── ZlibDecoder.cpp │ │ ├── ZlibDecoder.h │ │ ├── ZlibEncoder.cpp │ │ ├── ZlibEncoder.h │ │ ├── ZstdDecoder.cpp │ │ ├── ZstdDecoder.h │ │ ├── ZstdEncoder.cpp │ │ ├── ZstdEncoder.h │ │ └── ZstdRegister.cpp │ ├── Crypto │ │ ├── 7zAes.cpp │ │ ├── 7zAes.h │ │ ├── 7zAesRegister.cpp │ │ ├── HmacSha1.cpp │ │ ├── HmacSha1.h │ │ ├── HmacSha256.cpp │ │ ├── HmacSha256.h │ │ ├── MyAes.cpp │ │ ├── MyAes.h │ │ ├── MyAesReg.cpp │ │ ├── Pbkdf2HmacSha1.cpp │ │ ├── Pbkdf2HmacSha1.h │ │ ├── RandGen.cpp │ │ ├── RandGen.h │ │ ├── Rar20Crypto.cpp │ │ ├── Rar20Crypto.h │ │ ├── Rar5Aes.cpp │ │ ├── Rar5Aes.h │ │ ├── RarAes.cpp │ │ ├── RarAes.h │ │ ├── Sha1Cls.h │ │ ├── WzAes.cpp │ │ ├── WzAes.h │ │ ├── ZipCrypto.cpp │ │ ├── ZipCrypto.h │ │ ├── ZipStrong.cpp │ │ └── ZipStrong.h │ ├── Guid.txt │ ├── ICoder.h │ ├── IDecl.h │ ├── IPassword.h │ ├── IProgress.h │ ├── IStream.h │ ├── MyVersion.h │ ├── PREMAKE │ │ ├── generate.sh │ │ └── premake4.lua │ ├── PropID.h │ ├── Q7Zip │ │ ├── Q7Zip │ │ │ ├── Q7SortFilerProxyModel.cpp │ │ │ ├── Q7SortFilerProxyModel.h │ │ │ ├── Q7Zip.pro │ │ │ ├── main.cpp │ │ │ ├── q7filemanager.cpp │ │ │ └── q7filemanager.h │ │ ├── all.pro │ │ └── util7zip │ │ │ ├── util7zip.cpp │ │ │ └── util7zip.pro │ ├── QMAKE │ │ ├── 7z_ │ │ │ └── 7z_.pro │ │ ├── 7za │ │ │ └── 7za.pro │ │ ├── 7zr │ │ │ └── 7zr.pro │ │ ├── Format7zFree │ │ │ └── Format7zFree.pro │ │ ├── Lzham │ │ │ └── Lzham.pro │ │ ├── Rar │ │ │ └── Rar.pro │ │ ├── all.pro │ │ └── test_lib │ │ │ └── test_lib.pro │ ├── TEST │ │ └── TestUI │ │ │ ├── TestUI.cpp │ │ │ ├── makefile │ │ │ ├── makefile.depend │ │ │ └── makefile.list │ └── UI │ │ ├── Agent │ │ ├── Agent.cpp │ │ ├── Agent.h │ │ ├── AgentOut.cpp │ │ ├── AgentProxy.cpp │ │ ├── AgentProxy.h │ │ ├── ArchiveFolder.cpp │ │ ├── ArchiveFolderOpen.cpp │ │ ├── ArchiveFolderOut.cpp │ │ ├── IFolderArchive.h │ │ ├── UpdateCallbackAgent.cpp │ │ └── UpdateCallbackAgent.h │ │ ├── Client7z │ │ ├── Client7z.cpp │ │ ├── makefile │ │ ├── makefile.depend │ │ └── makefile.list │ │ ├── ClientCodec │ │ ├── ClientCodec.cpp │ │ ├── makefile │ │ ├── makefile.depend │ │ └── makefile.list │ │ ├── Common │ │ ├── ArchiveCommandLine.cpp │ │ ├── ArchiveCommandLine.h │ │ ├── ArchiveExtractCallback.cpp │ │ ├── ArchiveExtractCallback.h │ │ ├── ArchiveName.cpp │ │ ├── ArchiveName.h │ │ ├── ArchiveOpenCallback.cpp │ │ ├── ArchiveOpenCallback.h │ │ ├── Bench.cpp │ │ ├── Bench.h │ │ ├── CompressCall.cpp │ │ ├── CompressCall.h │ │ ├── DefaultName.cpp │ │ ├── DefaultName.h │ │ ├── DirItem.h │ │ ├── EnumDirItems.cpp │ │ ├── EnumDirItems.h │ │ ├── ExitCode.h │ │ ├── Extract.cpp │ │ ├── Extract.h │ │ ├── ExtractMode.h │ │ ├── ExtractingFilePath.cpp │ │ ├── ExtractingFilePath.h │ │ ├── HashCalc.cpp │ │ ├── HashCalc.h │ │ ├── IFileExtractCallback.h │ │ ├── LoadCodecs.cpp │ │ ├── LoadCodecs.h │ │ ├── OpenArchive.cpp │ │ ├── OpenArchive.h │ │ ├── PropIDUtils.cpp │ │ ├── PropIDUtils.h │ │ ├── Property.h │ │ ├── SetProperties.cpp │ │ ├── SetProperties.h │ │ ├── SortUtils.cpp │ │ ├── SortUtils.h │ │ ├── TempFiles.cpp │ │ ├── TempFiles.h │ │ ├── Update.cpp │ │ ├── Update.h │ │ ├── UpdateAction.cpp │ │ ├── UpdateAction.h │ │ ├── UpdateCallback.cpp │ │ ├── UpdateCallback.h │ │ ├── UpdatePair.cpp │ │ ├── UpdatePair.h │ │ ├── UpdateProduce.cpp │ │ ├── UpdateProduce.h │ │ ├── WorkDir.cpp │ │ ├── WorkDir.h │ │ ├── ZipRegistry.cpp │ │ └── ZipRegistry.h │ │ ├── Console │ │ ├── BenchCon.cpp │ │ ├── BenchCon.h │ │ ├── ConsoleClose.cpp │ │ ├── ConsoleClose.h │ │ ├── ExtractCallbackConsole.cpp │ │ ├── ExtractCallbackConsole.h │ │ ├── HashCon.cpp │ │ ├── HashCon.h │ │ ├── List.cpp │ │ ├── List.h │ │ ├── Main.cpp │ │ ├── MainAr.cpp │ │ ├── OpenCallbackConsole.cpp │ │ ├── OpenCallbackConsole.h │ │ ├── PercentPrinter.cpp │ │ ├── PercentPrinter.h │ │ ├── UpdateCallbackConsole.cpp │ │ ├── UpdateCallbackConsole.h │ │ ├── UserInputUtils.cpp │ │ ├── UserInputUtils.h │ │ ├── makefile │ │ ├── makefile.depend │ │ └── makefile.list │ │ ├── Explorer │ │ ├── ContextMenu.h │ │ ├── MyMessages.cpp │ │ └── MyMessages.h │ │ ├── FileManager │ │ ├── App.cpp │ │ ├── App.h │ │ ├── AppState.h │ │ ├── BrowseDialog.h │ │ ├── ClassDefs.cpp │ │ ├── ComboDialog.cpp │ │ ├── ComboDialog.h │ │ ├── ComboDialogRes.h │ │ ├── ComboDialog_rc.cpp │ │ ├── CopyDialog.cpp │ │ ├── CopyDialog.h │ │ ├── CopyDialogRes.h │ │ ├── CopyDialog_rc.cpp │ │ ├── DialogSize.h │ │ ├── ExtractCallback.cpp │ │ ├── ExtractCallback.h │ │ ├── FM.cpp │ │ ├── FM_rc.cpp │ │ ├── FSDrives.cpp │ │ ├── FSDrives.h │ │ ├── FSFolder.cpp │ │ ├── FSFolder.h │ │ ├── FSFolderCopy.cpp │ │ ├── FileFolderPluginOpen.cpp │ │ ├── FileFolderPluginOpen.h │ │ ├── FormatUtils.cpp │ │ ├── FormatUtils.h │ │ ├── HelpUtils.h │ │ ├── IFolder.h │ │ ├── LangUtils.cpp │ │ ├── LangUtils.h │ │ ├── ListViewDialog.cpp │ │ ├── ListViewDialog.h │ │ ├── ListViewDialogRes.h │ │ ├── ListViewDialog_rc.cpp │ │ ├── MessagesDialog.cpp │ │ ├── MessagesDialog.h │ │ ├── MessagesDialogRes.h │ │ ├── MessagesDialog_rc.cpp │ │ ├── MyLoadMenu.cpp │ │ ├── MyLoadMenu.h │ │ ├── MyWindowsNew.h │ │ ├── OpenCallback.cpp │ │ ├── OpenCallback.h │ │ ├── OverwriteDialog.cpp │ │ ├── OverwriteDialog.h │ │ ├── OverwriteDialogRes.h │ │ ├── OverwriteDialog_rc.cpp │ │ ├── Panel.cpp │ │ ├── Panel.h │ │ ├── PanelCopy.cpp │ │ ├── PanelCrc.cpp │ │ ├── PanelFolderChange.cpp │ │ ├── PanelItemOpen.cpp │ │ ├── PanelItems.cpp │ │ ├── PanelListNotify.cpp │ │ ├── PanelMenu.cpp │ │ ├── PanelOperations.cpp │ │ ├── PanelSelect.cpp │ │ ├── PanelSort.cpp │ │ ├── PanelSplitFile.cpp │ │ ├── PasswordDialog.cpp │ │ ├── PasswordDialog.h │ │ ├── PasswordDialogRes.h │ │ ├── PasswordDialog_rc.cpp │ │ ├── PluginInterface.h │ │ ├── PluginLoader.h │ │ ├── ProgramLocation.cpp │ │ ├── ProgramLocation.h │ │ ├── ProgressDialog2.cpp │ │ ├── ProgressDialog2.h │ │ ├── ProgressDialog2Res.h │ │ ├── ProgressDialog2_rc.cpp │ │ ├── ProgressDialogRes.h │ │ ├── PropertyName.cpp │ │ ├── PropertyName.h │ │ ├── PropertyNameRes.h │ │ ├── RegistryAssociations.cpp │ │ ├── RegistryAssociations.h │ │ ├── RegistryPlugins.h │ │ ├── RegistryUtils.cpp │ │ ├── RegistryUtils.h │ │ ├── RootFolder.cpp │ │ ├── RootFolder.h │ │ ├── SplitDialog.cpp │ │ ├── SplitDialog.h │ │ ├── SplitDialogRes.h │ │ ├── SplitDialog_rc.cpp │ │ ├── SplitUtils.cpp │ │ ├── SplitUtils.h │ │ ├── StringUtils.cpp │ │ ├── StringUtils.h │ │ ├── SysIconUtils.cpp │ │ ├── SysIconUtils.h │ │ ├── TextPairs.cpp │ │ ├── TextPairs.h │ │ ├── UpdateCallback100.cpp │ │ ├── UpdateCallback100.h │ │ ├── ViewSettings.cpp │ │ ├── ViewSettings.h │ │ ├── makefile │ │ ├── makefile.depend │ │ ├── makefile.list │ │ ├── res │ │ │ ├── Add2PNG.h │ │ │ ├── AddPNG.h │ │ │ ├── Copy2PNG.h │ │ │ ├── CopyPNG.h │ │ │ ├── Delete2PNG.h │ │ │ ├── DeletePNG.h │ │ │ ├── Extract2PNG.h │ │ │ ├── ExtractPNG.h │ │ │ ├── Info2PNG.h │ │ │ ├── InfoPNG.h │ │ │ ├── Move2PNG.h │ │ │ ├── MovePNG.h │ │ │ ├── ParentFolder.h │ │ │ ├── Test2PNG.h │ │ │ └── TestPNG.h │ │ ├── resource.h │ │ ├── resourceGui.h │ │ └── wxFM.cpp │ │ ├── GUI │ │ ├── BenchmarkDialog.cpp │ │ ├── BenchmarkDialog.h │ │ ├── BenchmarkDialogRes.h │ │ ├── BenchmarkDialog_rc.cpp │ │ ├── CompressDialog.cpp │ │ ├── CompressDialog.h │ │ ├── CompressDialogRes.h │ │ ├── CompressDialog_rc.cpp │ │ ├── ExtractDialog.cpp │ │ ├── ExtractDialog.h │ │ ├── ExtractDialogRes.h │ │ ├── ExtractDialog_rc.cpp │ │ ├── ExtractGUI.cpp │ │ ├── ExtractGUI.h │ │ ├── ExtractRes.h │ │ ├── GUI.cpp │ │ ├── HashGUI.cpp │ │ ├── HashGUI.h │ │ ├── UpdateCallbackGUI.cpp │ │ ├── UpdateCallbackGUI.h │ │ ├── UpdateCallbackGUI2.cpp │ │ ├── UpdateCallbackGUI2.h │ │ ├── UpdateGUI.cpp │ │ ├── UpdateGUI.h │ │ ├── makefile │ │ ├── makefile.depend │ │ ├── makefile.list │ │ ├── resource2.h │ │ ├── resource3.h │ │ └── wxGUI.cpp │ │ └── P7ZIP │ │ ├── makefile │ │ ├── makefile.depend │ │ ├── makefile.list │ │ └── wxP7ZIP.cpp ├── ANDROID │ ├── 7z │ │ ├── jni │ │ │ ├── Android.mk │ │ │ └── Application.mk │ │ └── makefile │ ├── 7za │ │ ├── jni │ │ │ ├── Android.mk │ │ │ └── Application.mk │ │ └── makefile │ ├── 7zr │ │ ├── jni │ │ │ ├── Android.mk │ │ │ └── Application.mk │ │ └── makefile │ ├── Format7zFree │ │ ├── jni │ │ │ ├── Android.mk │ │ │ └── Application.mk │ │ └── makefile │ ├── Lzham │ │ ├── jni │ │ │ ├── Android.mk │ │ │ └── Application.mk │ │ ├── makefile │ │ └── obj │ │ │ └── local │ │ │ └── armeabi │ │ │ └── objs │ │ │ └── Lzham │ │ │ └── __ │ │ │ └── __ │ │ │ └── __ │ │ │ └── __ │ │ │ └── CPP │ │ │ └── 7zip │ │ │ ├── Common │ │ │ ├── StreamUtils.o │ │ │ └── StreamUtils.o.d │ │ │ └── Compress │ │ │ ├── CodecExports.o │ │ │ ├── CodecExports.o.d │ │ │ ├── DllExportsCompress.o │ │ │ └── DllExportsCompress.o.d │ ├── MemLat │ │ ├── jni │ │ │ ├── Android.mk │ │ │ └── Application.mk │ │ └── makefile │ ├── PipeLen │ │ ├── jni │ │ │ ├── Android.mk │ │ │ └── Application.mk │ │ └── makefile │ ├── makefile │ ├── makefile.inc │ ├── readme.txt │ └── test_lib │ │ ├── jni │ │ ├── Android.mk │ │ └── Application.mk │ │ └── makefile ├── Common │ ├── AutoPtr.h │ ├── CRC.cpp │ ├── C_FileIO.cpp │ ├── C_FileIO.h │ ├── ComTry.h │ ├── CommandLineParser.cpp │ ├── CommandLineParser.h │ ├── Common.h │ ├── CrcReg.cpp │ ├── Defs.h │ ├── DynLimBuf.cpp │ ├── DynLimBuf.h │ ├── DynamicBuffer.h │ ├── IntToString.cpp │ ├── IntToString.h │ ├── Lang.cpp │ ├── Lang.h │ ├── ListFileUtils.cpp │ ├── ListFileUtils.h │ ├── MyBuffer.h │ ├── MyCom.h │ ├── MyException.h │ ├── MyGuidDef.h │ ├── MyInitGuid.h │ ├── MyLinux.h │ ├── MyMap.cpp │ ├── MyMap.h │ ├── MyString.cpp │ ├── MyString.h │ ├── MyTypes.h │ ├── MyUnknown.h │ ├── MyVector.cpp │ ├── MyVector.h │ ├── MyWindows.cpp │ ├── MyWindows.h │ ├── MyXml.cpp │ ├── MyXml.h │ ├── NewHandler.cpp │ ├── NewHandler.h │ ├── Random.h │ ├── Sha1Reg.cpp │ ├── Sha256Reg.cpp │ ├── StdInStream.cpp │ ├── StdInStream.h │ ├── StdOutStream.cpp │ ├── StdOutStream.h │ ├── StringConvert.cpp │ ├── StringConvert.h │ ├── StringToInt.cpp │ ├── StringToInt.h │ ├── TextConfig.cpp │ ├── TextConfig.h │ ├── UTFConvert.cpp │ ├── UTFConvert.h │ ├── Wildcard.cpp │ ├── Wildcard.h │ └── XzCrc64Reg.cpp ├── Windows │ ├── COM.cpp │ ├── COM.h │ ├── Clipboard.cpp │ ├── Clipboard.h │ ├── CommonDialog.h │ ├── Control │ │ ├── ComboBox.h │ │ ├── Controls.cpp │ │ ├── Dialog.cpp │ │ ├── Dialog.h │ │ ├── DialogImpl.h │ │ ├── Edit.h │ │ ├── ListView.h │ │ ├── ProgressBar.h │ │ ├── Static.h │ │ ├── StatusBar.h │ │ ├── Window2.cpp │ │ └── Window2.h │ ├── DLL.cpp │ ├── DLL.h │ ├── Defs.h │ ├── ErrorMsg.cpp │ ├── ErrorMsg.h │ ├── FileDir.cpp │ ├── FileDir.h │ ├── FileFind.cpp │ ├── FileFind.h │ ├── FileIO.cpp │ ├── FileIO.h │ ├── FileName.cpp │ ├── FileName.h │ ├── Menu.h │ ├── NtCheck.h │ ├── PropVariant.cpp │ ├── PropVariant.h │ ├── PropVariantConv.cpp │ ├── PropVariantConv.h │ ├── PropVariantUtils.cpp │ ├── PropVariantUtils.h │ ├── Registry.cpp │ ├── Registry.h │ ├── ResourceString.h │ ├── Shell.h │ ├── Synchronization.cpp │ ├── Synchronization.h │ ├── Synchronization2.h │ ├── System.cpp │ ├── System.cpp.back │ ├── System.h │ ├── Thread.h │ ├── TimeUtils.cpp │ ├── TimeUtils.h │ ├── Window.cpp │ └── Window.h ├── include_windows │ ├── basetyps.h │ ├── tchar.h │ └── windows.h └── myWindows │ ├── StdAfx.h │ ├── config.h │ ├── initguid.h │ ├── makefile │ ├── makefile.depend │ ├── makefile.list │ ├── myAddExeFlag.cpp │ ├── myPrivate.h │ ├── mySplitCommandLine.cpp │ ├── test_lib.cpp │ ├── wine_GetXXXDefaultLangID.cpp │ └── wine_date_and_time.cpp ├── ChangeLog ├── DOC ├── 7zC.txt ├── 7zFormat.txt ├── License.txt ├── MANUAL │ ├── cmdline │ │ ├── commands │ │ │ ├── add.htm │ │ │ ├── bench.htm │ │ │ ├── delete.htm │ │ │ ├── extract.htm │ │ │ ├── extract_full.htm │ │ │ ├── hash.htm │ │ │ ├── index.htm │ │ │ ├── list.htm │ │ │ ├── rename.htm │ │ │ ├── style.css │ │ │ ├── test.htm │ │ │ └── update.htm │ │ ├── exit_codes.htm │ │ ├── index.htm │ │ ├── style.css │ │ ├── switches │ │ │ ├── ar_exclude.htm │ │ │ ├── ar_include.htm │ │ │ ├── ar_no.htm │ │ │ ├── bb.htm │ │ │ ├── bs.htm │ │ │ ├── charset.htm │ │ │ ├── exclude.htm │ │ │ ├── include.htm │ │ │ ├── index.htm │ │ │ ├── large_pages.htm │ │ │ ├── list_tech.htm │ │ │ ├── method.htm │ │ │ ├── output_dir.htm │ │ │ ├── overwrite.htm │ │ │ ├── password.htm │ │ │ ├── recurse.htm │ │ │ ├── sa.htm │ │ │ ├── scc.htm │ │ │ ├── scrc.htm │ │ │ ├── sdel.htm │ │ │ ├── sfx.htm │ │ │ ├── shared.htm │ │ │ ├── sni.htm │ │ │ ├── sns.htm │ │ │ ├── spf.htm │ │ │ ├── ssc.htm │ │ │ ├── stdin.htm │ │ │ ├── stdout.htm │ │ │ ├── stl.htm │ │ │ ├── stop_switch.htm │ │ │ ├── stx.htm │ │ │ ├── style.css │ │ │ ├── type.htm │ │ │ ├── update.htm │ │ │ ├── volume.htm │ │ │ ├── working_dir.htm │ │ │ └── yes.htm │ │ └── syntax.htm │ ├── fm │ │ ├── about.htm │ │ ├── benchmark.htm │ │ ├── index.htm │ │ ├── menu.htm │ │ ├── options.htm │ │ ├── plugins │ │ │ ├── 7-zip │ │ │ │ ├── add.htm │ │ │ │ ├── extract.htm │ │ │ │ ├── index.htm │ │ │ │ └── style.css │ │ │ ├── index.htm │ │ │ └── style.css │ │ └── style.css │ ├── general │ │ ├── 7z.htm │ │ ├── faq.htm │ │ ├── formats.htm │ │ ├── index.htm │ │ ├── license.htm │ │ ├── performance.htm │ │ ├── style.css │ │ └── thanks.htm │ ├── start.htm │ └── style.css ├── Methods.txt ├── copying.txt ├── lzma.txt ├── readme.txt ├── src-history.txt └── unRarLicense.txt ├── GUI ├── Contents │ ├── Info.plist │ ├── PkgInfo │ └── Resources │ │ └── p7zip.icns ├── Lang │ ├── af.txt │ ├── an.txt │ ├── ar.txt │ ├── ast.txt │ ├── az.txt │ ├── ba.txt │ ├── be.txt │ ├── bg.txt │ ├── bn.txt │ ├── br.txt │ ├── ca.txt │ ├── co.txt │ ├── cs.txt │ ├── cy.txt │ ├── da.txt │ ├── de.txt │ ├── el.txt │ ├── en.ttt │ ├── eo.txt │ ├── es.txt │ ├── et.txt │ ├── eu.txt │ ├── ext.txt │ ├── fa.txt │ ├── fi.txt │ ├── fr.txt │ ├── fur.txt │ ├── fy.txt │ ├── ga.txt │ ├── gl.txt │ ├── gu.txt │ ├── he.txt │ ├── hi.txt │ ├── hr.txt │ ├── hu.txt │ ├── hy.txt │ ├── id.txt │ ├── io.txt │ ├── is.txt │ ├── it.txt │ ├── ja.txt │ ├── ka.txt │ ├── kaa.txt │ ├── kk.txt │ ├── ko.txt │ ├── ku-ckb.txt │ ├── ku.txt │ ├── ky.txt │ ├── lij.txt │ ├── lt.txt │ ├── lv.txt │ ├── mk.txt │ ├── mn.txt │ ├── mng.txt │ ├── mng2.txt │ ├── mr.txt │ ├── ms.txt │ ├── nb.txt │ ├── ne.txt │ ├── nl.txt │ ├── nn.txt │ ├── pa-in.txt │ ├── pl.txt │ ├── ps.txt │ ├── pt-br.txt │ ├── pt.txt │ ├── ro.txt │ ├── ru.txt │ ├── sa.txt │ ├── si.txt │ ├── sk.txt │ ├── sl.txt │ ├── sq.txt │ ├── sr-spc.txt │ ├── sr-spl.txt │ ├── sv.txt │ ├── ta.txt │ ├── th.txt │ ├── tr.txt │ ├── tt.txt │ ├── ug.txt │ ├── uk.txt │ ├── uz.txt │ ├── va.txt │ ├── vi.txt │ ├── yo.txt │ ├── zh-cn.txt │ └── zh-tw.txt ├── kde3 │ ├── p7zip_compress.desktop │ ├── p7zip_compress2.desktop │ ├── p7zip_extract.desktop │ ├── p7zip_extract_subdir.desktop │ ├── p7zip_extract_to.desktop │ ├── p7zip_test.desktop │ └── readme.txt ├── kde4 │ ├── p7zip_compress.desktop │ ├── p7zip_compress2.desktop │ ├── p7zip_extract.desktop │ ├── p7zip_extract_subdir.desktop │ ├── p7zip_extract_to.desktop │ ├── p7zip_test.desktop │ └── readme.txt ├── p7zipForFilemanager ├── p7zip_16.icns ├── p7zip_16.png ├── p7zip_16_ok.png ├── p7zip_32.png └── p7zip_32.xpm ├── README ├── TODO ├── Utils ├── CPUTest │ ├── Benchmark.h │ ├── MemLat │ │ ├── MemLat.cpp │ │ ├── Walk.c │ │ ├── Walk.h │ │ ├── Walk32.asm │ │ ├── Walk64.asm │ │ ├── makefile │ │ ├── makefile.depend │ │ └── makefile.list │ ├── MyVersion.h │ └── PipeLen │ │ ├── MemLat │ │ ├── PipeLen.cpp │ │ ├── makefile │ │ ├── makefile.depend │ │ ├── makefile.list │ │ └── pl32.asm ├── bin_to_sources.py ├── file_7z.py ├── file_7zCon_sfx.py ├── file_7zFM.py ├── file_7zG.py ├── file_7z_so.py ├── file_7za.py ├── file_7zr.py ├── file_Client7z.py ├── file_Codecs_Lzham_so.py ├── file_Codecs_Rar_so.py ├── file_Codecs_ZStd_so.py ├── file_LzmaCon.py ├── file_P7ZIP.py ├── file_TestUI.py └── generate.py ├── check ├── check.sh ├── check_7zr.sh ├── check_Client7z.sh ├── check_install.sh ├── clean_all.sh └── test │ ├── 7za.exe.lzma │ ├── 7za.exe.lzma86 │ ├── 7za.exe.lzma_eos │ ├── 7za.exe.xz │ ├── 7za433_7zip_bzip2.7z │ ├── 7za433_7zip_lzma.7z │ ├── 7za433_7zip_lzma2.7z │ ├── 7za433_7zip_lzma2_bcj2.7z │ ├── 7za433_7zip_lzma2_crypto.7z │ ├── 7za433_7zip_lzma_bcj2.7z │ ├── 7za433_7zip_lzma_crypto.7z │ ├── 7za433_7zip_ppmd.7z │ ├── 7za433_7zip_ppmd_bcj2.7z │ └── 7za433_tar.tar ├── contrib ├── VirtualFileSystemForMidnightCommander │ ├── ChangeLog │ ├── readme │ ├── readme.u7z │ └── u7z ├── gzip-like_CLI_wrapper_for_7z │ ├── README │ ├── check │ │ ├── check.sh │ │ └── files.tar │ ├── man1 │ │ └── p7zip.1 │ └── p7zip └── qnx630sp3 │ ├── qnx630sp3-shared │ └── qnx630sp3-static ├── install.sh ├── install_local_context_menu.sh ├── last_error ├── makefile ├── makefile.afl ├── makefile.aix_gcc ├── makefile.android_arm ├── makefile.beos ├── makefile.common ├── makefile.crc32 ├── makefile.cygwin ├── makefile.cygwin64 ├── makefile.cygwin64_asm ├── makefile.cygwin_asm ├── makefile.cygwin_clang ├── makefile.cygwin_clang_asm ├── makefile.djgpp ├── makefile.djgpp_watt ├── makefile.freebsd5 ├── makefile.freebsd6+ ├── makefile.glb ├── makefile.gprof ├── makefile.haiku ├── makefile.hpux-acc ├── makefile.hpux-acc_64 ├── makefile.hpux-gcc ├── makefile.linux_amd64 ├── makefile.linux_amd64_asm ├── makefile.linux_amd64_asm_icc ├── makefile.linux_amd64_sanitizer ├── makefile.linux_any_cpu ├── makefile.linux_any_cpu_gcc_4.X ├── makefile.linux_clang_amd64_asm ├── makefile.linux_clang_amd64_asm_sanitize ├── makefile.linux_cross_aarch64 ├── makefile.linux_cross_arm ├── makefile.linux_cross_djgpp ├── makefile.linux_cross_m68k ├── makefile.linux_cross_mipsel ├── makefile.linux_cross_ppc ├── makefile.linux_cross_ppc64 ├── makefile.linux_cross_ppc64le ├── makefile.linux_cross_s390x ├── makefile.linux_cross_sparc64 ├── makefile.linux_gcc6_sanitize ├── makefile.linux_gcc_2.95_no_need_for_libstdc ├── makefile.linux_other ├── makefile.linux_s390x ├── makefile.linux_scan-build ├── makefile.linux_valgrind ├── makefile.linux_x32 ├── makefile.linux_x86_asm_gcc_4.X ├── makefile.linux_x86_asm_gcc_4.X_fltk ├── makefile.linux_x86_asm_gcc_mudflap_4.X ├── makefile.linux_x86_asm_icc ├── makefile.linux_x86_icc ├── makefile.machine ├── makefile.macosx_gcc_32bits ├── makefile.macosx_gcc_32bits_asm ├── makefile.macosx_gcc_32bits_ppc ├── makefile.macosx_gcc_64bits ├── makefile.macosx_llvm_64bits ├── makefile.netbsd ├── makefile.netware_asm_gcc_3.X ├── makefile.oldmake ├── makefile.openbsd ├── makefile.openbsd_no_port ├── makefile.qnx_shared.bin ├── makefile.qnx_shared.so ├── makefile.qnx_static ├── makefile.solaris_sparc_CC_32 ├── makefile.solaris_sparc_CC_64 ├── makefile.solaris_sparc_gcc ├── makefile.solaris_x86 ├── makefile.tru64 └── man1 ├── 7z.1 ├── 7za.1 └── 7zr.1 /.gitignore: -------------------------------------------------------------------------------- 1 | *.o 2 | *.pyc 3 | *.orig 4 | *.rej 5 | *.desktop 6 | -------------------------------------------------------------------------------- /p7zip_16.02/C/7zBuf.h: -------------------------------------------------------------------------------- 1 | /* 7zBuf.h -- Byte Buffer 2 | 2013-01-18 : Igor Pavlov : Public domain */ 3 | 4 | #ifndef __7Z_BUF_H 5 | #define __7Z_BUF_H 6 | 7 | #include "7zTypes.h" 8 | 9 | EXTERN_C_BEGIN 10 | 11 | typedef struct 12 | { 13 | Byte *data; 14 | size_t size; 15 | } CBuf; 16 | 17 | void Buf_Init(CBuf *p); 18 | int Buf_Create(CBuf *p, size_t size, ISzAlloc *alloc); 19 | void Buf_Free(CBuf *p, ISzAlloc *alloc); 20 | 21 | typedef struct 22 | { 23 | Byte *data; 24 | size_t size; 25 | size_t pos; 26 | } CDynBuf; 27 | 28 | void DynBuf_Construct(CDynBuf *p); 29 | void DynBuf_SeekToBeg(CDynBuf *p); 30 | int DynBuf_Write(CDynBuf *p, const Byte *buf, size_t size, ISzAlloc *alloc); 31 | void DynBuf_Free(CDynBuf *p, ISzAlloc *alloc); 32 | 33 | EXTERN_C_END 34 | 35 | #endif 36 | -------------------------------------------------------------------------------- /p7zip_16.02/C/7zCrc.h: -------------------------------------------------------------------------------- 1 | /* 7zCrc.h -- CRC32 calculation 2 | 2013-01-18 : Igor Pavlov : Public domain */ 3 | 4 | #ifndef __7Z_CRC_H 5 | #define __7Z_CRC_H 6 | 7 | #include "7zTypes.h" 8 | 9 | EXTERN_C_BEGIN 10 | 11 | extern UInt32 g_CrcTable[]; 12 | 13 | /* Call CrcGenerateTable one time before other CRC functions */ 14 | void MY_FAST_CALL CrcGenerateTable(void); 15 | 16 | #define CRC_INIT_VAL 0xFFFFFFFF 17 | #define CRC_GET_DIGEST(crc) ((crc) ^ CRC_INIT_VAL) 18 | #define CRC_UPDATE_BYTE(crc, b) (g_CrcTable[((crc) ^ (b)) & 0xFF] ^ ((crc) >> 8)) 19 | 20 | UInt32 MY_FAST_CALL CrcUpdate(UInt32 crc, const void *data, size_t size); 21 | UInt32 MY_FAST_CALL CrcCalc(const void *data, size_t size); 22 | 23 | EXTERN_C_END 24 | 25 | #endif 26 | -------------------------------------------------------------------------------- /p7zip_16.02/C/7zVersion.h: -------------------------------------------------------------------------------- 1 | #define MY_VER_MAJOR 16 2 | #define MY_VER_MINOR 02 3 | #define MY_VER_BUILD 0 4 | #define MY_VERSION_NUMBERS "16.02" 5 | #define MY_VERSION "16.02" 6 | #define MY_DATE "2017-03-27" 7 | #undef MY_COPYRIGHT 8 | #undef MY_VERSION_COPYRIGHT_DATE 9 | #define MY_AUTHOR_NAME "Igor Pavlov" 10 | #define MY_COPYRIGHT_PD "Igor Pavlov : Public domain" 11 | #define MY_COPYRIGHT_CR "Copyright (c) 1999-2016 Igor Pavlov" 12 | 13 | #define OTHER_CONTRIBUTORS ", p7zip, Yann Collet, Tino Reichardt, Antonio Diaz Diaz, Tehmul Ghyara" 14 | 15 | #ifdef USE_COPYRIGHT_CR 16 | #define MY_COPYRIGHT MY_COPYRIGHT_CR OTHER_CONTRIBUTORS 17 | #else 18 | #define MY_COPYRIGHT MY_COPYRIGHT_PD 19 | #endif 20 | 21 | #define MY_VERSION_COPYRIGHT_DATE MY_VERSION " : " MY_COPYRIGHT " : " MY_DATE 22 | 23 | #define P7ZIP_VERSION "16.02" 24 | 25 | -------------------------------------------------------------------------------- /p7zip_16.02/C/Alloc.h: -------------------------------------------------------------------------------- 1 | /* Alloc.h -- Memory allocation functions 2 | 2009-02-07 : Igor Pavlov : Public domain */ 3 | 4 | #ifndef __COMMON_ALLOC_H 5 | #define __COMMON_ALLOC_H 6 | 7 | #include "7zTypes.h" 8 | 9 | EXTERN_C_BEGIN 10 | 11 | void *MyAlloc(size_t size); 12 | void MyFree(void *address); 13 | 14 | void SetLargePageSize(); 15 | 16 | void *MidAlloc(size_t size); 17 | void MidFree(void *address); 18 | void *BigAlloc(size_t size); 19 | void BigFree(void *address); 20 | 21 | extern ISzAlloc g_Alloc; 22 | extern ISzAlloc g_BigAlloc; 23 | 24 | EXTERN_C_END 25 | 26 | #endif 27 | -------------------------------------------------------------------------------- /p7zip_16.02/C/BwtSort.h: -------------------------------------------------------------------------------- 1 | /* BwtSort.h -- BWT block sorting 2 | 2013-01-18 : Igor Pavlov : Public domain */ 3 | 4 | #ifndef __BWT_SORT_H 5 | #define __BWT_SORT_H 6 | 7 | #include "7zTypes.h" 8 | 9 | EXTERN_C_BEGIN 10 | 11 | /* use BLOCK_SORT_EXTERNAL_FLAGS if blockSize can be > 1M */ 12 | /* #define BLOCK_SORT_EXTERNAL_FLAGS */ 13 | 14 | #ifdef BLOCK_SORT_EXTERNAL_FLAGS 15 | #define BLOCK_SORT_EXTERNAL_SIZE(blockSize) ((((blockSize) + 31) >> 5)) 16 | #else 17 | #define BLOCK_SORT_EXTERNAL_SIZE(blockSize) 0 18 | #endif 19 | 20 | #define BLOCK_SORT_BUF_SIZE(blockSize) ((blockSize) * 2 + BLOCK_SORT_EXTERNAL_SIZE(blockSize) + (1 << 16)) 21 | 22 | UInt32 BlockSort(UInt32 *indices, const Byte *data, UInt32 blockSize); 23 | 24 | EXTERN_C_END 25 | 26 | #endif 27 | -------------------------------------------------------------------------------- /p7zip_16.02/C/Delta.h: -------------------------------------------------------------------------------- 1 | /* Delta.h -- Delta converter 2 | 2013-01-18 : Igor Pavlov : Public domain */ 3 | 4 | #ifndef __DELTA_H 5 | #define __DELTA_H 6 | 7 | #include "7zTypes.h" 8 | 9 | EXTERN_C_BEGIN 10 | 11 | #define DELTA_STATE_SIZE 256 12 | 13 | void Delta_Init(Byte *state); 14 | void Delta_Encode(Byte *state, unsigned delta, Byte *data, SizeT size); 15 | void Delta_Decode(Byte *state, unsigned delta, Byte *data, SizeT size); 16 | 17 | EXTERN_C_END 18 | 19 | #endif 20 | -------------------------------------------------------------------------------- /p7zip_16.02/C/HuffEnc.h: -------------------------------------------------------------------------------- 1 | /* HuffEnc.h -- Huffman encoding 2 | 2013-01-18 : Igor Pavlov : Public domain */ 3 | 4 | #ifndef __HUFF_ENC_H 5 | #define __HUFF_ENC_H 6 | 7 | #include "7zTypes.h" 8 | 9 | EXTERN_C_BEGIN 10 | 11 | /* 12 | Conditions: 13 | num <= 1024 = 2 ^ NUM_BITS 14 | Sum(freqs) < 4M = 2 ^ (32 - NUM_BITS) 15 | maxLen <= 16 = kMaxLen 16 | Num_Items(p) >= HUFFMAN_TEMP_SIZE(num) 17 | */ 18 | 19 | void Huffman_Generate(const UInt32 *freqs, UInt32 *p, Byte *lens, UInt32 num, UInt32 maxLen); 20 | 21 | EXTERN_C_END 22 | 23 | #endif 24 | -------------------------------------------------------------------------------- /p7zip_16.02/C/Precomp.h: -------------------------------------------------------------------------------- 1 | /* Precomp.h -- StdAfx 2 | 2013-11-12 : Igor Pavlov : Public domain */ 3 | 4 | #ifndef __7Z_PRECOMP_H 5 | #define __7Z_PRECOMP_H 6 | 7 | #include "Compiler.h" 8 | /* #include "7zTypes.h" */ 9 | 10 | #endif 11 | -------------------------------------------------------------------------------- /p7zip_16.02/C/RotateDefs.h: -------------------------------------------------------------------------------- 1 | /* RotateDefs.h -- Rotate functions 2 | 2015-03-25 : Igor Pavlov : Public domain */ 3 | 4 | #ifndef __ROTATE_DEFS_H 5 | #define __ROTATE_DEFS_H 6 | 7 | #ifdef _MSC_VER 8 | 9 | #include 10 | 11 | /* don't use _rotl with MINGW. It can insert slow call to function. */ 12 | 13 | /* #if (_MSC_VER >= 1200) */ 14 | #pragma intrinsic(_rotl) 15 | #pragma intrinsic(_rotr) 16 | /* #endif */ 17 | 18 | #define rotlFixed(x, n) _rotl((x), (n)) 19 | #define rotrFixed(x, n) _rotr((x), (n)) 20 | 21 | #else 22 | 23 | /* new compilers can translate these macros to fast commands. */ 24 | 25 | #define rotlFixed(x, n) (((x) << (n)) | ((x) >> (32 - (n)))) 26 | #define rotrFixed(x, n) (((x) >> (n)) | ((x) << (32 - (n)))) 27 | 28 | #endif 29 | 30 | #endif 31 | -------------------------------------------------------------------------------- /p7zip_16.02/C/Sha256.h: -------------------------------------------------------------------------------- 1 | /* Sha256.h -- SHA-256 Hash 2 | 2013-01-18 : Igor Pavlov : Public domain */ 3 | 4 | #ifndef __CRYPTO_SHA256_H 5 | #define __CRYPTO_SHA256_H 6 | 7 | #include "7zTypes.h" 8 | 9 | EXTERN_C_BEGIN 10 | 11 | #define SHA256_DIGEST_SIZE 32 12 | 13 | typedef struct 14 | { 15 | UInt32 state[8]; 16 | UInt64 count; 17 | Byte buffer[64]; 18 | } CSha256; 19 | 20 | void Sha256_Init(CSha256 *p); 21 | void Sha256_Update(CSha256 *p, const Byte *data, size_t size); 22 | void Sha256_Final(CSha256 *p, Byte *digest); 23 | 24 | EXTERN_C_END 25 | 26 | #endif 27 | -------------------------------------------------------------------------------- /p7zip_16.02/C/Sort.h: -------------------------------------------------------------------------------- 1 | /* Sort.h -- Sort functions 2 | 2014-04-05 : Igor Pavlov : Public domain */ 3 | 4 | #ifndef __7Z_SORT_H 5 | #define __7Z_SORT_H 6 | 7 | #include "7zTypes.h" 8 | 9 | EXTERN_C_BEGIN 10 | 11 | void HeapSort(UInt32 *p, size_t size); 12 | void HeapSort64(UInt64 *p, size_t size); 13 | 14 | /* void HeapSortRef(UInt32 *p, UInt32 *vals, size_t size); */ 15 | 16 | EXTERN_C_END 17 | 18 | #endif 19 | -------------------------------------------------------------------------------- /p7zip_16.02/C/XzCrc64.h: -------------------------------------------------------------------------------- 1 | /* XzCrc64.h -- CRC64 calculation 2 | 2013-01-18 : Igor Pavlov : Public domain */ 3 | 4 | #ifndef __XZ_CRC64_H 5 | #define __XZ_CRC64_H 6 | 7 | #include 8 | 9 | #include "7zTypes.h" 10 | 11 | EXTERN_C_BEGIN 12 | 13 | extern UInt64 g_Crc64Table[]; 14 | 15 | void MY_FAST_CALL Crc64GenerateTable(void); 16 | 17 | #define CRC64_INIT_VAL UINT64_CONST(0xFFFFFFFFFFFFFFFF) 18 | #define CRC64_GET_DIGEST(crc) ((crc) ^ CRC64_INIT_VAL) 19 | #define CRC64_UPDATE_BYTE(crc, b) (g_Crc64Table[((crc) ^ (b)) & 0xFF] ^ ((crc) >> 8)) 20 | 21 | UInt64 MY_FAST_CALL Crc64Update(UInt64 crc, const void *data, size_t size); 22 | UInt64 MY_FAST_CALL Crc64Calc(const void *data, size_t size); 23 | 24 | EXTERN_C_END 25 | 26 | #endif 27 | -------------------------------------------------------------------------------- /p7zip_16.02/C/XzEnc.h: -------------------------------------------------------------------------------- 1 | /* XzEnc.h -- Xz Encode 2 | 2011-02-07 : Igor Pavlov : Public domain */ 3 | 4 | #ifndef __XZ_ENC_H 5 | #define __XZ_ENC_H 6 | 7 | #include "Lzma2Enc.h" 8 | 9 | #include "Xz.h" 10 | 11 | EXTERN_C_BEGIN 12 | 13 | typedef struct 14 | { 15 | UInt32 id; 16 | UInt32 delta; 17 | UInt32 ip; 18 | int ipDefined; 19 | } CXzFilterProps; 20 | 21 | void XzFilterProps_Init(CXzFilterProps *p); 22 | 23 | typedef struct 24 | { 25 | const CLzma2EncProps *lzma2Props; 26 | const CXzFilterProps *filterProps; 27 | unsigned checkId; 28 | } CXzProps; 29 | 30 | void XzProps_Init(CXzProps *p); 31 | 32 | SRes Xz_Encode(ISeqOutStream *outStream, ISeqInStream *inStream, 33 | const CXzProps *props, ICompressProgress *progress); 34 | 35 | SRes Xz_EncodeEmpty(ISeqOutStream *outStream); 36 | 37 | EXTERN_C_END 38 | 39 | #endif 40 | -------------------------------------------------------------------------------- /p7zip_16.02/CPP/7zip/Archive/7z/7zCompressionMode.cpp: -------------------------------------------------------------------------------- 1 | // CompressionMethod.cpp 2 | 3 | #include "StdAfx.h" 4 | -------------------------------------------------------------------------------- /p7zip_16.02/CPP/7zip/Archive/7z/7zHeader.cpp: -------------------------------------------------------------------------------- 1 | // 7zHeader.cpp 2 | 3 | #include "StdAfx.h" 4 | 5 | #include "7zHeader.h" 6 | 7 | namespace NArchive { 8 | namespace N7z { 9 | 10 | Byte kSignature[kSignatureSize] = {'7', 'z', 0xBC, 0xAF, 0x27, 0x1C}; 11 | #ifdef _7Z_VOL 12 | Byte kFinishSignature[kSignatureSize] = {'7', 'z', 0xBC, 0xAF, 0x27, 0x1C + 1}; 13 | #endif 14 | 15 | // We can change signature. So file doesn't contain correct signature. 16 | // struct SignatureInitializer { SignatureInitializer() { kSignature[0]--; } }; 17 | // static SignatureInitializer g_SignatureInitializer; 18 | 19 | }} 20 | -------------------------------------------------------------------------------- /p7zip_16.02/CPP/7zip/Archive/7z/7zProperties.h: -------------------------------------------------------------------------------- 1 | // 7zProperties.h 2 | 3 | #ifndef __7Z_PROPERTIES_H 4 | #define __7Z_PROPERTIES_H 5 | 6 | #include "../../PropID.h" 7 | 8 | namespace NArchive { 9 | namespace N7z { 10 | 11 | enum 12 | { 13 | kpidPackedSize0 = kpidUserDefined, 14 | kpidPackedSize1, 15 | kpidPackedSize2, 16 | kpidPackedSize3, 17 | kpidPackedSize4 18 | }; 19 | 20 | }} 21 | 22 | #endif 23 | -------------------------------------------------------------------------------- /p7zip_16.02/CPP/7zip/Archive/7z/7zRegister.cpp: -------------------------------------------------------------------------------- 1 | // 7zRegister.cpp 2 | 3 | #include "StdAfx.h" 4 | 5 | #include "../../Common/RegisterArc.h" 6 | 7 | #include "7zHandler.h" 8 | 9 | namespace NArchive { 10 | namespace N7z { 11 | 12 | static Byte k_Signature_Dec[kSignatureSize] = {'7' + 1, 'z', 0xBC, 0xAF, 0x27, 0x1C}; 13 | 14 | REGISTER_ARC_IO_DECREMENT_SIG( 15 | "7z", "7z", NULL, 7, 16 | k_Signature_Dec, 17 | 0, 18 | NArcInfoFlags::kFindSignature, 19 | NULL); 20 | 21 | }} 22 | -------------------------------------------------------------------------------- /p7zip_16.02/CPP/7zip/Archive/7z/7zSpecStream.cpp: -------------------------------------------------------------------------------- 1 | // 7zSpecStream.cpp 2 | 3 | #include "StdAfx.h" 4 | 5 | #include "7zSpecStream.h" 6 | 7 | STDMETHODIMP CSequentialInStreamSizeCount2::Read(void *data, UInt32 size, UInt32 *processedSize) 8 | { 9 | UInt32 realProcessedSize; 10 | HRESULT result = _stream->Read(data, size, &realProcessedSize); 11 | _size += realProcessedSize; 12 | if (processedSize) 13 | *processedSize = realProcessedSize; 14 | return result; 15 | } 16 | 17 | STDMETHODIMP CSequentialInStreamSizeCount2::GetSubStreamSize(UInt64 subStream, UInt64 *value) 18 | { 19 | if (!_getSubStreamSize) 20 | return E_NOTIMPL; 21 | return _getSubStreamSize->GetSubStreamSize(subStream, value); 22 | } 23 | -------------------------------------------------------------------------------- /p7zip_16.02/CPP/7zip/Archive/Cab/CabHandler.h: -------------------------------------------------------------------------------- 1 | // CabHandler.h 2 | 3 | #ifndef __CAB_HANDLER_H 4 | #define __CAB_HANDLER_H 5 | 6 | #include "../../../Common/MyCom.h" 7 | 8 | #include "../IArchive.h" 9 | 10 | #include "CabIn.h" 11 | 12 | namespace NArchive { 13 | namespace NCab { 14 | 15 | class CHandler: 16 | public IInArchive, 17 | public CMyUnknownImp 18 | { 19 | public: 20 | MY_UNKNOWN_IMP1(IInArchive) 21 | 22 | INTERFACE_IInArchive(;) 23 | 24 | private: 25 | CMvDatabaseEx m_Database; 26 | UString _errorMessage; 27 | bool _isArc; 28 | bool _errorInHeaders; 29 | bool _unexpectedEnd; 30 | // int _mainVolIndex; 31 | UInt32 _phySize; 32 | UInt64 _offset; 33 | }; 34 | 35 | }} 36 | 37 | #endif 38 | -------------------------------------------------------------------------------- /p7zip_16.02/CPP/7zip/Archive/Cab/CabHeader.cpp: -------------------------------------------------------------------------------- 1 | // CabHeader.cpp 2 | 3 | #include "StdAfx.h" 4 | 5 | #include "CabHeader.h" 6 | 7 | namespace NArchive { 8 | namespace NCab { 9 | namespace NHeader { 10 | 11 | const Byte kMarker[kMarkerSize] = {'M', 'S', 'C', 'F', 0, 0, 0, 0 }; 12 | 13 | // struct CSignatureInitializer { CSignatureInitializer() { kMarker[0]--; } } g_SignatureInitializer; 14 | 15 | }}} 16 | -------------------------------------------------------------------------------- /p7zip_16.02/CPP/7zip/Archive/Cab/CabHeader.h: -------------------------------------------------------------------------------- 1 | // Archive/CabHeader.h 2 | 3 | #ifndef __ARCHIVE_CAB_HEADER_H 4 | #define __ARCHIVE_CAB_HEADER_H 5 | 6 | #include "../../../Common/MyTypes.h" 7 | 8 | namespace NArchive { 9 | namespace NCab { 10 | namespace NHeader { 11 | 12 | const unsigned kMarkerSize = 8; 13 | extern const Byte kMarker[kMarkerSize]; 14 | 15 | namespace NArcFlags 16 | { 17 | const unsigned kPrevCabinet = 1; 18 | const unsigned kNextCabinet = 2; 19 | const unsigned kReservePresent = 4; 20 | } 21 | 22 | namespace NMethod 23 | { 24 | const Byte kNone = 0; 25 | const Byte kMSZip = 1; 26 | const Byte kQuantum = 2; 27 | const Byte kLZX = 3; 28 | } 29 | 30 | const unsigned kFileNameIsUtf8_Mask = 0x80; 31 | 32 | namespace NFolderIndex 33 | { 34 | const unsigned kContinuedFromPrev = 0xFFFD; 35 | const unsigned kContinuedToNext = 0xFFFE; 36 | const unsigned kContinuedPrevAndNext = 0xFFFF; 37 | } 38 | 39 | }}} 40 | 41 | #endif 42 | -------------------------------------------------------------------------------- /p7zip_16.02/CPP/7zip/Archive/Cab/CabRegister.cpp: -------------------------------------------------------------------------------- 1 | // CabRegister.cpp 2 | 3 | #include "StdAfx.h" 4 | 5 | #include "../../Common/RegisterArc.h" 6 | 7 | #include "CabHandler.h" 8 | 9 | namespace NArchive { 10 | namespace NCab { 11 | 12 | REGISTER_ARC_I( 13 | "Cab", "cab", 0, 8, 14 | NHeader::kMarker, 15 | 0, 16 | NArcInfoFlags::kFindSignature, 17 | NULL) 18 | 19 | }} 20 | -------------------------------------------------------------------------------- /p7zip_16.02/CPP/7zip/Archive/Chm/ChmHandler.h: -------------------------------------------------------------------------------- 1 | // ChmHandler.h 2 | 3 | #ifndef __ARCHIVE_CHM_HANDLER_H 4 | #define __ARCHIVE_CHM_HANDLER_H 5 | 6 | #include "../../../Common/MyCom.h" 7 | 8 | #include "../IArchive.h" 9 | 10 | #include "ChmIn.h" 11 | 12 | namespace NArchive { 13 | namespace NChm { 14 | 15 | class CHandler: 16 | public IInArchive, 17 | public CMyUnknownImp 18 | { 19 | public: 20 | MY_UNKNOWN_IMP1(IInArchive) 21 | 22 | INTERFACE_IInArchive(;) 23 | 24 | bool _help2; 25 | CHandler(bool help2): _help2(help2) {} 26 | 27 | private: 28 | CFilesDatabase m_Database; 29 | CMyComPtr m_Stream; 30 | UInt32 m_ErrorFlags; 31 | }; 32 | 33 | }} 34 | 35 | #endif 36 | -------------------------------------------------------------------------------- /p7zip_16.02/CPP/7zip/Archive/Common/DummyOutStream.cpp: -------------------------------------------------------------------------------- 1 | // DummyOutStream.cpp 2 | 3 | #include "StdAfx.h" 4 | 5 | #include "DummyOutStream.h" 6 | 7 | STDMETHODIMP CDummyOutStream::Write(const void *data, UInt32 size, UInt32 *processedSize) 8 | { 9 | UInt32 realProcessedSize = size; 10 | HRESULT res = S_OK; 11 | if (_stream) 12 | res = _stream->Write(data, size, &realProcessedSize); 13 | _size += realProcessedSize; 14 | if (processedSize) 15 | *processedSize = realProcessedSize; 16 | return res; 17 | } 18 | -------------------------------------------------------------------------------- /p7zip_16.02/CPP/7zip/Archive/Common/DummyOutStream.h: -------------------------------------------------------------------------------- 1 | // DummyOutStream.h 2 | 3 | #ifndef __DUMMY_OUT_STREAM_H 4 | #define __DUMMY_OUT_STREAM_H 5 | 6 | #include "../../../Common/MyCom.h" 7 | 8 | #include "../../IStream.h" 9 | 10 | class CDummyOutStream: 11 | public ISequentialOutStream, 12 | public CMyUnknownImp 13 | { 14 | CMyComPtr _stream; 15 | UInt64 _size; 16 | public: 17 | void SetStream(ISequentialOutStream *outStream) { _stream = outStream; } 18 | void ReleaseStream() { _stream.Release(); } 19 | void Init() { _size = 0; } 20 | MY_UNKNOWN_IMP 21 | STDMETHOD(Write)(const void *data, UInt32 size, UInt32 *processedSize); 22 | UInt64 GetSize() const { return _size; } 23 | }; 24 | 25 | #endif 26 | -------------------------------------------------------------------------------- /p7zip_16.02/CPP/7zip/Archive/Common/FindSignature.h: -------------------------------------------------------------------------------- 1 | // FindSignature.h 2 | 3 | #ifndef __FIND_SIGNATURE_H 4 | #define __FIND_SIGNATURE_H 5 | 6 | #include "../../IStream.h" 7 | 8 | HRESULT FindSignatureInStream(ISequentialInStream *stream, 9 | const Byte *signature, unsigned signatureSize, 10 | const UInt64 *limit, UInt64 &resPos); 11 | 12 | #endif 13 | -------------------------------------------------------------------------------- /p7zip_16.02/CPP/7zip/Archive/Common/ItemNameUtils.h: -------------------------------------------------------------------------------- 1 | // Archive/Common/ItemNameUtils.h 2 | 3 | #ifndef __ARCHIVE_ITEM_NAME_UTILS_H 4 | #define __ARCHIVE_ITEM_NAME_UTILS_H 5 | 6 | #include "../../../Common/MyString.h" 7 | 8 | namespace NArchive { 9 | namespace NItemName { 10 | 11 | void ReplaceToOsPathSeparator(wchar_t *s); 12 | 13 | UString MakeLegalName(const UString &name); 14 | UString GetOSName(const UString &name); 15 | UString GetOSName2(const UString &name); 16 | void ConvertToOSName2(UString &name); 17 | bool HasTailSlash(const AString &name, UINT codePage); 18 | 19 | #ifdef _WIN32 20 | inline UString WinNameToOSName(const UString &name) { return name; } 21 | #else 22 | UString WinNameToOSName(const UString &name); 23 | #endif 24 | 25 | }} 26 | 27 | #endif 28 | -------------------------------------------------------------------------------- /p7zip_16.02/CPP/7zip/Archive/Common/OutStreamWithCRC.cpp: -------------------------------------------------------------------------------- 1 | // OutStreamWithCRC.cpp 2 | 3 | #include "StdAfx.h" 4 | 5 | #include "OutStreamWithCRC.h" 6 | 7 | STDMETHODIMP COutStreamWithCRC::Write(const void *data, UInt32 size, UInt32 *processedSize) 8 | { 9 | HRESULT result = S_OK; 10 | if (_stream) 11 | result = _stream->Write(data, size, &size); 12 | if (_calculate) 13 | _crc = CrcUpdate(_crc, data, size); 14 | _size += size; 15 | if (processedSize != NULL) 16 | *processedSize = size; 17 | return result; 18 | } 19 | -------------------------------------------------------------------------------- /p7zip_16.02/CPP/7zip/Archive/Common/OutStreamWithSha1.cpp: -------------------------------------------------------------------------------- 1 | // OutStreamWithSha1.cpp 2 | 3 | #include "StdAfx.h" 4 | 5 | #include "OutStreamWithSha1.h" 6 | 7 | STDMETHODIMP COutStreamWithSha1::Write(const void *data, UInt32 size, UInt32 *processedSize) 8 | { 9 | HRESULT result = S_OK; 10 | if (_stream) 11 | result = _stream->Write(data, size, &size); 12 | if (_calculate) 13 | Sha1_Update(&_sha, (const Byte *)data, size); 14 | _size += size; 15 | if (processedSize) 16 | *processedSize = size; 17 | return result; 18 | } 19 | -------------------------------------------------------------------------------- /p7zip_16.02/CPP/7zip/Archive/Common/ParseProperties.cpp: -------------------------------------------------------------------------------- 1 | // ParseProperties.cpp 2 | 3 | #include "StdAfx.h" 4 | -------------------------------------------------------------------------------- /p7zip_16.02/CPP/7zip/Archive/Common/ParseProperties.h: -------------------------------------------------------------------------------- 1 | // ParseProperties.h 2 | 3 | #ifndef __PARSE_PROPERTIES_H 4 | #define __PARSE_PROPERTIES_H 5 | 6 | #endif 7 | -------------------------------------------------------------------------------- /p7zip_16.02/CPP/7zip/Archive/DeflateProps.cpp: -------------------------------------------------------------------------------- 1 | // DeflateProps.cpp 2 | 3 | #include "StdAfx.h" 4 | -------------------------------------------------------------------------------- /p7zip_16.02/CPP/7zip/Archive/DeflateProps.h: -------------------------------------------------------------------------------- 1 | // DeflateProps.h 2 | 3 | #ifndef __DEFLATE_PROPS_H 4 | #define __DEFLATE_PROPS_H 5 | 6 | #endif 7 | -------------------------------------------------------------------------------- /p7zip_16.02/CPP/7zip/Archive/Iso/IsoHandler.h: -------------------------------------------------------------------------------- 1 | // IsoHandler.h 2 | 3 | #ifndef __ISO_HANDLER_H 4 | #define __ISO_HANDLER_H 5 | 6 | #include "../../../Common/MyCom.h" 7 | 8 | #include "../IArchive.h" 9 | 10 | #include "IsoIn.h" 11 | #include "IsoItem.h" 12 | 13 | namespace NArchive { 14 | namespace NIso { 15 | 16 | class CHandler: 17 | public IInArchive, 18 | public IInArchiveGetStream, 19 | public CMyUnknownImp 20 | { 21 | CMyComPtr _stream; 22 | CInArchive _archive; 23 | public: 24 | MY_UNKNOWN_IMP2(IInArchive, IInArchiveGetStream) 25 | INTERFACE_IInArchive(;) 26 | STDMETHOD(GetStream)(UInt32 index, ISequentialInStream **stream); 27 | }; 28 | 29 | }} 30 | 31 | #endif 32 | -------------------------------------------------------------------------------- /p7zip_16.02/CPP/7zip/Archive/Iso/IsoHeader.cpp: -------------------------------------------------------------------------------- 1 | // Archive/Iso/Header.h 2 | 3 | #include "StdAfx.h" 4 | 5 | #include "IsoHeader.h" 6 | 7 | namespace NArchive { 8 | namespace NIso { 9 | 10 | const char *kElToritoSpec = "EL TORITO SPECIFICATION\0\0\0\0\0\0\0\0\0"; 11 | 12 | }} 13 | -------------------------------------------------------------------------------- /p7zip_16.02/CPP/7zip/Archive/Iso/IsoRegister.cpp: -------------------------------------------------------------------------------- 1 | // IsoRegister.cpp 2 | 3 | #include "StdAfx.h" 4 | 5 | #include "../../Common/RegisterArc.h" 6 | 7 | #include "IsoHandler.h" 8 | 9 | namespace NArchive { 10 | namespace NIso { 11 | 12 | static const Byte k_Signature[] = { 'C', 'D', '0', '0', '1' }; 13 | 14 | REGISTER_ARC_I( 15 | "Iso", "iso img", 0, 0xE7, 16 | k_Signature, 17 | NArchive::NIso::kStartPos + 1, 18 | 0, 19 | NULL) 20 | 21 | }} 22 | -------------------------------------------------------------------------------- /p7zip_16.02/CPP/7zip/Archive/Nsis/NsisHandler.h: -------------------------------------------------------------------------------- 1 | // NSisHandler.h 2 | 3 | #ifndef __NSIS_HANDLER_H 4 | #define __NSIS_HANDLER_H 5 | 6 | #include "../../../Common/MyCom.h" 7 | 8 | #include "../../Common/CreateCoder.h" 9 | 10 | #include "../IArchive.h" 11 | 12 | #include "NsisIn.h" 13 | 14 | namespace NArchive { 15 | namespace NNsis { 16 | 17 | class CHandler: 18 | public IInArchive, 19 | public CMyUnknownImp 20 | { 21 | CInArchive _archive; 22 | AString _methodString; 23 | 24 | bool GetUncompressedSize(unsigned index, UInt32 &size) const; 25 | bool GetCompressedSize(unsigned index, UInt32 &size) const; 26 | 27 | // AString GetMethod(NMethodType::EEnum method, bool useItemFilter, UInt32 dictionary) const; 28 | public: 29 | MY_UNKNOWN_IMP1(IInArchive) 30 | 31 | INTERFACE_IInArchive(;) 32 | }; 33 | 34 | }} 35 | 36 | #endif 37 | -------------------------------------------------------------------------------- /p7zip_16.02/CPP/7zip/Archive/Nsis/NsisRegister.cpp: -------------------------------------------------------------------------------- 1 | // NsisRegister.cpp 2 | 3 | #include "StdAfx.h" 4 | 5 | #include "../../Common/RegisterArc.h" 6 | 7 | #include "NsisHandler.h" 8 | 9 | namespace NArchive { 10 | namespace NNsis { 11 | 12 | REGISTER_ARC_I( 13 | "Nsis", "nsis", 0, 0x9, 14 | kSignature, 15 | 4, 16 | NArcInfoFlags::kFindSignature | 17 | NArcInfoFlags::kUseGlobalOffset, 18 | NULL) 19 | 20 | }} 21 | -------------------------------------------------------------------------------- /p7zip_16.02/CPP/7zip/Archive/Tar/TarHeader.cpp: -------------------------------------------------------------------------------- 1 | // Archive/TarHeader.cpp 2 | 3 | #include "StdAfx.h" 4 | 5 | #include "TarHeader.h" 6 | 7 | namespace NArchive { 8 | namespace NTar { 9 | namespace NFileHeader { 10 | 11 | const char *kLongLink = "././@LongLink"; 12 | const char *kLongLink2 = "@LongLink"; 13 | 14 | // The magic field is filled with this if uname and gname are valid. 15 | namespace NMagic 16 | { 17 | // const char *kUsTar = "ustar"; // 5 chars 18 | // const char *kGNUTar = "GNUtar "; // 7 chars and a null 19 | // const char *kEmpty = "\0\0\0\0\0\0\0\0"; 20 | const char kUsTar_00[8] = { 'u', 's', 't', 'a', 'r', 0, '0', '0' } ; 21 | } 22 | 23 | }}} 24 | -------------------------------------------------------------------------------- /p7zip_16.02/CPP/7zip/Archive/Tar/TarIn.h: -------------------------------------------------------------------------------- 1 | // TarIn.h 2 | 3 | #ifndef __ARCHIVE_TAR_IN_H 4 | #define __ARCHIVE_TAR_IN_H 5 | 6 | #include "../../IStream.h" 7 | 8 | #include "TarItem.h" 9 | 10 | namespace NArchive { 11 | namespace NTar { 12 | 13 | enum EErrorType 14 | { 15 | k_ErrorType_OK, 16 | k_ErrorType_Corrupted, 17 | k_ErrorType_UnexpectedEnd, 18 | }; 19 | 20 | HRESULT ReadItem(ISequentialInStream *stream, bool &filled, CItemEx &itemInfo, EErrorType &error); 21 | 22 | API_FUNC_IsArc IsArc_Tar(const Byte *p, size_t size); 23 | 24 | }} 25 | 26 | #endif 27 | -------------------------------------------------------------------------------- /p7zip_16.02/CPP/7zip/Archive/Tar/TarOut.h: -------------------------------------------------------------------------------- 1 | // Archive/TarOut.h 2 | 3 | #ifndef __ARCHIVE_TAR_OUT_H 4 | #define __ARCHIVE_TAR_OUT_H 5 | 6 | #include "../../../Common/MyCom.h" 7 | 8 | #include "../../IStream.h" 9 | 10 | #include "TarItem.h" 11 | 12 | namespace NArchive { 13 | namespace NTar { 14 | 15 | class COutArchive 16 | { 17 | CMyComPtr m_Stream; 18 | 19 | HRESULT WriteBytes(const void *data, unsigned size); 20 | HRESULT WriteHeaderReal(const CItem &item); 21 | public: 22 | UInt64 Pos; 23 | 24 | void Create(ISequentialOutStream *outStream) 25 | { 26 | m_Stream = outStream; 27 | } 28 | 29 | HRESULT WriteHeader(const CItem &item); 30 | HRESULT FillDataResidual(UInt64 dataSize); 31 | HRESULT WriteFinishHeader(); 32 | }; 33 | 34 | }} 35 | 36 | #endif 37 | -------------------------------------------------------------------------------- /p7zip_16.02/CPP/7zip/Archive/Tar/TarRegister.cpp: -------------------------------------------------------------------------------- 1 | // TarRegister.cpp 2 | 3 | #include "StdAfx.h" 4 | 5 | #include "../../Common/RegisterArc.h" 6 | 7 | #include "TarHandler.h" 8 | 9 | namespace NArchive { 10 | namespace NTar { 11 | 12 | static const Byte k_Signature[] = { 'u', 's', 't', 'a', 'r' }; 13 | 14 | REGISTER_ARC_IO( 15 | "tar", "tar ova", 0, 0xEE, 16 | k_Signature, 17 | NFileHeader::kUstarMagic_Offset, 18 | NArcInfoFlags::kStartOpen | 19 | NArcInfoFlags::kSymLinks | 20 | NArcInfoFlags::kHardLinks, 21 | IsArc_Tar) 22 | 23 | }} 24 | -------------------------------------------------------------------------------- /p7zip_16.02/CPP/7zip/Archive/Tar/TarUpdate.h: -------------------------------------------------------------------------------- 1 | // TarUpdate.h 2 | 3 | #ifndef __TAR_UPDATE_H 4 | #define __TAR_UPDATE_H 5 | 6 | #include "../IArchive.h" 7 | 8 | #include "TarItem.h" 9 | 10 | namespace NArchive { 11 | namespace NTar { 12 | 13 | struct CUpdateItem 14 | { 15 | int IndexInArc; 16 | int IndexInClient; 17 | UInt64 Size; 18 | Int64 MTime; 19 | UInt32 Mode; 20 | bool NewData; 21 | bool NewProps; 22 | bool IsDir; 23 | AString Name; 24 | AString User; 25 | AString Group; 26 | 27 | CUpdateItem(): Size(0), IsDir(false) {} 28 | }; 29 | 30 | HRESULT UpdateArchive(IInStream *inStream, ISequentialOutStream *outStream, 31 | const CObjectVector &inputItems, 32 | const CObjectVector &updateItems, 33 | UINT codePage, 34 | IArchiveUpdateCallback *updateCallback); 35 | 36 | }} 37 | 38 | #endif 39 | -------------------------------------------------------------------------------- /p7zip_16.02/CPP/7zip/Archive/Udf/UdfHandler.h: -------------------------------------------------------------------------------- 1 | // UdfHandler.h 2 | 3 | #ifndef __UDF_HANDLER_H 4 | #define __UDF_HANDLER_H 5 | 6 | #include "../../../Common/MyCom.h" 7 | 8 | #include "../IArchive.h" 9 | 10 | #include "UdfIn.h" 11 | 12 | namespace NArchive { 13 | namespace NUdf { 14 | 15 | struct CRef2 16 | { 17 | unsigned Vol; 18 | unsigned Fs; 19 | unsigned Ref; 20 | }; 21 | 22 | class CHandler: 23 | public IInArchive, 24 | public IInArchiveGetStream, 25 | public CMyUnknownImp 26 | { 27 | CMyComPtr _inStream; 28 | CInArchive _archive; 29 | CRecordVector _refs2; 30 | public: 31 | MY_UNKNOWN_IMP2(IInArchive, IInArchiveGetStream) 32 | INTERFACE_IInArchive(;) 33 | STDMETHOD(GetStream)(UInt32 index, ISequentialInStream **stream); 34 | }; 35 | 36 | }} 37 | 38 | #endif 39 | -------------------------------------------------------------------------------- /p7zip_16.02/CPP/7zip/Archive/Wim/WimRegister.cpp: -------------------------------------------------------------------------------- 1 | // WimRegister.cpp 2 | 3 | #include "StdAfx.h" 4 | 5 | #include "../../Common/RegisterArc.h" 6 | 7 | #include "WimHandler.h" 8 | 9 | namespace NArchive { 10 | namespace NWim { 11 | 12 | REGISTER_ARC_IO( 13 | "wim", "wim swm esd", 0, 0xE6, 14 | kSignature, 15 | 0, 16 | NArcInfoFlags::kAltStreams | 17 | NArcInfoFlags::kNtSecure | 18 | NArcInfoFlags::kSymLinks | 19 | NArcInfoFlags::kHardLinks 20 | , NULL) 21 | 22 | }} 23 | -------------------------------------------------------------------------------- /p7zip_16.02/CPP/7zip/Archive/Zip/ZipRegister.cpp: -------------------------------------------------------------------------------- 1 | // ZipRegister.cpp 2 | 3 | #include "StdAfx.h" 4 | 5 | #include "../../Common/RegisterArc.h" 6 | 7 | #include "ZipHandler.h" 8 | 9 | namespace NArchive { 10 | namespace NZip { 11 | 12 | static const Byte k_Signature[] = { 13 | 4, 0x50, 0x4B, 0x03, 0x04, 14 | 4, 0x50, 0x4B, 0x05, 0x06, 15 | 6, 0x50, 0x4B, 0x07, 0x08, 0x50, 0x4B, 16 | 6, 0x50, 0x4B, 0x30, 0x30, 0x50, 0x4B }; 17 | 18 | REGISTER_ARC_IO( 19 | "zip", "zip z01 zipx jar xpi odt ods docx xlsx epub", 0, 1, 20 | k_Signature, 21 | 0, 22 | NArcInfoFlags::kFindSignature | 23 | NArcInfoFlags::kMultiSignature | 24 | NArcInfoFlags::kUseGlobalOffset, 25 | IsArc_Zip) 26 | 27 | }} 28 | -------------------------------------------------------------------------------- /p7zip_16.02/CPP/7zip/Bundles/Alone/makefile: -------------------------------------------------------------------------------- 1 | 2 | include ../../../../makefile.crc32 3 | include ../../../../makefile.machine 4 | 5 | TARGET_FLAGS=$(CC_EXE) 6 | LOCAL_LINK=$(LINK_EXE) 7 | LIBS=$(LOCAL_LIBS) 8 | 9 | include ../../../../makefile.glb 10 | -------------------------------------------------------------------------------- /p7zip_16.02/CPP/7zip/Bundles/Alone/makefile.depend: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tehmul/p7zip-zstd/e72c479f922f22f79c7adcc91b03fa4f37861372/p7zip_16.02/CPP/7zip/Bundles/Alone/makefile.depend -------------------------------------------------------------------------------- /p7zip_16.02/CPP/7zip/Bundles/Alone7z/makefile: -------------------------------------------------------------------------------- 1 | 2 | include ../../../../makefile.crc32 3 | include ../../../../makefile.machine 4 | 5 | TARGET_FLAGS=$(CC_EXE) 6 | LOCAL_LINK=$(LINK_EXE) 7 | LIBS=$(LOCAL_LIBS) 8 | 9 | include ../../../../makefile.glb 10 | -------------------------------------------------------------------------------- /p7zip_16.02/CPP/7zip/Bundles/Alone7z/makefile.depend: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tehmul/p7zip-zstd/e72c479f922f22f79c7adcc91b03fa4f37861372/p7zip_16.02/CPP/7zip/Bundles/Alone7z/makefile.depend -------------------------------------------------------------------------------- /p7zip_16.02/CPP/7zip/Bundles/Format7zFree/makefile: -------------------------------------------------------------------------------- 1 | 2 | TARGET_FLAGS=$(CC_SHARED) -DRegisterArc=DllRegisterArc -DRegisterCodec=DllRegisterCodec 3 | 4 | include ../../../../makefile.crc32 5 | include ../../../../makefile.machine 6 | 7 | LOCAL_LINK=$(LINK_SHARED) 8 | LIBS=$(LOCAL_LIBS_DLL) 9 | 10 | include ../../../../makefile.glb 11 | 12 | -------------------------------------------------------------------------------- /p7zip_16.02/CPP/7zip/Bundles/Format7zFree/makefile.depend: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tehmul/p7zip-zstd/e72c479f922f22f79c7adcc91b03fa4f37861372/p7zip_16.02/CPP/7zip/Bundles/Format7zFree/makefile.depend -------------------------------------------------------------------------------- /p7zip_16.02/CPP/7zip/Bundles/LzmaCon/makefile: -------------------------------------------------------------------------------- 1 | 2 | # TARGET_FLAGS=-D_7ZIP_ST 3 | 4 | include ../../../../makefile.crc32 5 | include ../../../../makefile.machine 6 | 7 | TARGET_FLAGS=$(CC_EXE) 8 | LOCAL_LINK=$(LINK_EXE) 9 | LIBS=$(LOCAL_LIBS) 10 | 11 | include ../../../../makefile.glb 12 | 13 | test: $(PROG) 14 | echo TOOLS=$(TOOLS) 15 | cp LzmaAlone.cpp testfile 16 | $(TOOLS) ./$(PROG) e testfile testfile.lzma 17 | $(TOOLS) ./$(PROG) d testfile.lzma testfile.lzma.d 18 | diff -s testfile testfile.lzma.d 19 | $(TOOLS) ./$(PROG) e testfile testfile.lzma 20 | $(TOOLS) ./$(PROG) d testfile.lzma testfile.lzma.d 21 | diff -s testfile testfile.lzma.d 22 | $(TOOLS) ./$(PROG) e -si -so < testfile > testfile.lzma.2 23 | $(TOOLS) ./$(PROG) d -si -so < testfile.lzma.2 > testfile.lzma.2.d 24 | diff -s testfile testfile.lzma.2.d 25 | @echo ========= 26 | @echo All Done 27 | @echo ========= 28 | 29 | 30 | clean2: clean 31 | rm -f testfile* 32 | 33 | -------------------------------------------------------------------------------- /p7zip_16.02/CPP/7zip/Bundles/LzmaCon/makefile.depend: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tehmul/p7zip-zstd/e72c479f922f22f79c7adcc91b03fa4f37861372/p7zip_16.02/CPP/7zip/Bundles/LzmaCon/makefile.depend -------------------------------------------------------------------------------- /p7zip_16.02/CPP/7zip/Bundles/SFXCon/makefile: -------------------------------------------------------------------------------- 1 | 2 | include ../../../../makefile.crc32 3 | include ../../../../makefile.machine 4 | 5 | TARGET_FLAGS=$(CC_EXE) 6 | LOCAL_LINK=$(LINK_EXE) 7 | LIBS=$(LOCAL_LIBS) 8 | 9 | include ../../../../makefile.glb 10 | 11 | -------------------------------------------------------------------------------- /p7zip_16.02/CPP/7zip/Bundles/SFXCon/makefile.depend: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tehmul/p7zip-zstd/e72c479f922f22f79c7adcc91b03fa4f37861372/p7zip_16.02/CPP/7zip/Bundles/SFXCon/makefile.depend -------------------------------------------------------------------------------- /p7zip_16.02/CPP/7zip/CMAKE/generate.sh: -------------------------------------------------------------------------------- 1 | 2 | doit() 3 | { 4 | cd .. 5 | rm -fr "P7ZIP.$1" 6 | mkdir "P7ZIP.$1" 7 | cd "P7ZIP.$1" 8 | 9 | cmake -G "$2" -DCMAKE_BUILD_TYPE=Debug ../CMAKE/ 10 | #cmake -G "$2" -DCMAKE_BUILD_TYPE=Release ../CMAKE/ 11 | } 12 | 13 | CURDIR=$PWD 14 | 15 | cd $CURDIR 16 | doit "Unix" "Unix Makefiles" 17 | 18 | cd $CURDIR 19 | doit "codeblocks" "CodeBlocks - Unix Makefiles" 20 | 21 | #cd $CURDIR 22 | #doit "KDevelop3" "KDevelop3" 23 | 24 | cd $CURDIR 25 | doit "EclipseCDT4" "Eclipse CDT4 - Unix Makefiles" 26 | 27 | cd $CURDIR 28 | doit "ninja" "Ninja" 29 | 30 | -------------------------------------------------------------------------------- /p7zip_16.02/CPP/7zip/CMAKE/generate_xcode.sh: -------------------------------------------------------------------------------- 1 | 2 | doit() 3 | { 4 | cd .. 5 | rm -fr "P7ZIP.$1" 6 | mkdir "P7ZIP.$1" 7 | cd "P7ZIP.$1" 8 | 9 | cmake -G "$2" -DCMAKE_BUILD_TYPE=Debug ../CMAKE/ 10 | #cmake -G "$2" -DCMAKE_BUILD_TYPE=Release ../CMAKE/ 11 | } 12 | 13 | CURDIR=$PWD 14 | 15 | cd $CURDIR 16 | CMAKE_OSX_ARCHITECTURES=i386 17 | export CMAKE_OSX_ARCHITECTURES 18 | doit "Xcode" "Xcode" 19 | 20 | -------------------------------------------------------------------------------- /p7zip_16.02/CPP/7zip/Common/FilePathAutoRename.h: -------------------------------------------------------------------------------- 1 | // FilePathAutoRename.h 2 | 3 | #ifndef __FILE_PATH_AUTO_RENAME_H 4 | #define __FILE_PATH_AUTO_RENAME_H 5 | 6 | #include "../../Common/MyString.h" 7 | 8 | bool AutoRenamePath(FString &fullProcessedPath); 9 | 10 | #endif 11 | -------------------------------------------------------------------------------- /p7zip_16.02/CPP/7zip/Common/MethodId.cpp: -------------------------------------------------------------------------------- 1 | // MethodId.cpp 2 | 3 | #include "StdAfx.h" 4 | -------------------------------------------------------------------------------- /p7zip_16.02/CPP/7zip/Common/MethodId.h: -------------------------------------------------------------------------------- 1 | // MethodId.h 2 | 3 | #ifndef __7Z_METHOD_ID_H 4 | #define __7Z_METHOD_ID_H 5 | 6 | #include "../../Common/MyTypes.h" 7 | 8 | typedef UInt64 CMethodId; 9 | 10 | #endif 11 | -------------------------------------------------------------------------------- /p7zip_16.02/CPP/7zip/Common/OffsetStream.h: -------------------------------------------------------------------------------- 1 | // OffsetStream.h 2 | 3 | #ifndef __OFFSET_STREAM_H 4 | #define __OFFSET_STREAM_H 5 | 6 | #include "../../Common/MyCom.h" 7 | 8 | #include "../IStream.h" 9 | 10 | class COffsetOutStream: 11 | public IOutStream, 12 | public CMyUnknownImp 13 | { 14 | UInt64 _offset; 15 | CMyComPtr _stream; 16 | public: 17 | HRESULT Init(IOutStream *stream, UInt64 offset); 18 | 19 | MY_UNKNOWN_IMP 20 | 21 | STDMETHOD(Write)(const void *data, UInt32 size, UInt32 *processedSize); 22 | STDMETHOD(Seek)(Int64 offset, UInt32 seekOrigin, UInt64 *newPosition); 23 | STDMETHOD(SetSize)(UInt64 newSize); 24 | }; 25 | 26 | #endif 27 | -------------------------------------------------------------------------------- /p7zip_16.02/CPP/7zip/Common/ProgressUtils.h: -------------------------------------------------------------------------------- 1 | // ProgressUtils.h 2 | 3 | #ifndef __PROGRESS_UTILS_H 4 | #define __PROGRESS_UTILS_H 5 | 6 | #include "../../Common/MyCom.h" 7 | 8 | #include "../ICoder.h" 9 | #include "../IProgress.h" 10 | 11 | class CLocalProgress: 12 | public ICompressProgressInfo, 13 | public CMyUnknownImp 14 | { 15 | CMyComPtr _progress; 16 | CMyComPtr _ratioProgress; 17 | bool _inSizeIsMain; 18 | public: 19 | UInt64 ProgressOffset; 20 | UInt64 InSize; 21 | UInt64 OutSize; 22 | bool SendRatio; 23 | bool SendProgress; 24 | 25 | CLocalProgress(); 26 | 27 | void Init(IProgress *progress, bool inSizeIsMain); 28 | HRESULT SetCur(); 29 | 30 | MY_UNKNOWN_IMP1(ICompressProgressInfo) 31 | 32 | STDMETHOD(SetRatioInfo)(const UInt64 *inSize, const UInt64 *outSize); 33 | }; 34 | 35 | #endif 36 | -------------------------------------------------------------------------------- /p7zip_16.02/CPP/7zip/Common/StreamUtils.h: -------------------------------------------------------------------------------- 1 | // StreamUtils.h 2 | 3 | #ifndef __STREAM_UTILS_H 4 | #define __STREAM_UTILS_H 5 | 6 | #include "../IStream.h" 7 | 8 | HRESULT ReadStream(ISequentialInStream *stream, void *data, size_t *size) throw(); 9 | HRESULT ReadStream_FALSE(ISequentialInStream *stream, void *data, size_t size) throw(); 10 | HRESULT ReadStream_FAIL(ISequentialInStream *stream, void *data, size_t size) throw(); 11 | HRESULT WriteStream(ISequentialOutStream *stream, const void *data, size_t size) throw(); 12 | 13 | #endif 14 | -------------------------------------------------------------------------------- /p7zip_16.02/CPP/7zip/Common/UniqBlocks.h: -------------------------------------------------------------------------------- 1 | // UniqBlocks.h 2 | 3 | #ifndef __UNIQ_BLOCKS_H 4 | #define __UNIQ_BLOCKS_H 5 | 6 | #include "../../Common/MyTypes.h" 7 | #include "../../Common/MyBuffer.h" 8 | #include "../../Common/MyVector.h" 9 | 10 | struct CUniqBlocks 11 | { 12 | CObjectVector Bufs; 13 | CUIntVector Sorted; 14 | CUIntVector BufIndexToSortedIndex; 15 | 16 | unsigned AddUniq(const Byte *data, size_t size); 17 | UInt64 GetTotalSizeInBytes() const; 18 | void GetReverseMap(); 19 | 20 | bool IsOnlyEmpty() const 21 | { 22 | return (Bufs.Size() == 0 || Bufs.Size() == 1 && Bufs[0].Size() == 0); 23 | } 24 | }; 25 | 26 | #endif 27 | -------------------------------------------------------------------------------- /p7zip_16.02/CPP/7zip/Common/VirtThread.h: -------------------------------------------------------------------------------- 1 | // VirtThread.h 2 | 3 | #ifndef __VIRT_THREAD_H 4 | #define __VIRT_THREAD_H 5 | 6 | #include "../../Windows/Synchronization.h" 7 | #include "../../Windows/Thread.h" 8 | 9 | struct CVirtThread 10 | { 11 | NWindows::NSynchronization::CAutoResetEvent StartEvent; 12 | NWindows::NSynchronization::CAutoResetEvent FinishedEvent; 13 | NWindows::CThread Thread; 14 | bool Exit; 15 | 16 | ~CVirtThread() { WaitThreadFinish(); } 17 | void WaitThreadFinish(); // call it in destructor of child class ! 18 | WRes Create(); 19 | void Start(); 20 | virtual void Execute() = 0; 21 | void WaitExecuteFinish() { FinishedEvent.Lock(); } 22 | }; 23 | 24 | #endif 25 | -------------------------------------------------------------------------------- /p7zip_16.02/CPP/7zip/Compress/BZip2Crc.cpp: -------------------------------------------------------------------------------- 1 | // BZip2Crc.cpp 2 | 3 | #include "StdAfx.h" 4 | 5 | #include "BZip2Crc.h" 6 | 7 | UInt32 CBZip2Crc::Table[256]; 8 | 9 | static const UInt32 kBZip2CrcPoly = 0x04c11db7; /* AUTODIN II, Ethernet, & FDDI */ 10 | 11 | void CBZip2Crc::InitTable() 12 | { 13 | for (UInt32 i = 0; i < 256; i++) 14 | { 15 | UInt32 r = (i << 24); 16 | for (int j = 8; j > 0; j--) 17 | r = (r & 0x80000000) ? ((r << 1) ^ kBZip2CrcPoly) : (r << 1); 18 | Table[i] = r; 19 | } 20 | } 21 | 22 | class CBZip2CrcTableInit 23 | { 24 | public: 25 | CBZip2CrcTableInit() { CBZip2Crc::InitTable(); } 26 | } g_BZip2CrcTableInit; 27 | -------------------------------------------------------------------------------- /p7zip_16.02/CPP/7zip/Compress/BZip2Crc.h: -------------------------------------------------------------------------------- 1 | // BZip2Crc.h 2 | 3 | #ifndef __BZIP2_CRC_H 4 | #define __BZIP2_CRC_H 5 | 6 | #include "../../Common/MyTypes.h" 7 | 8 | class CBZip2Crc 9 | { 10 | UInt32 _value; 11 | static UInt32 Table[256]; 12 | public: 13 | static void InitTable(); 14 | CBZip2Crc(): _value(0xFFFFFFFF) {}; 15 | void Init() { _value = 0xFFFFFFFF; } 16 | void UpdateByte(Byte b) { _value = Table[(_value >> 24) ^ b] ^ (_value << 8); } 17 | void UpdateByte(unsigned int b) { _value = Table[(_value >> 24) ^ b] ^ (_value << 8); } 18 | UInt32 GetDigest() const { return _value ^ 0xFFFFFFFF; } 19 | }; 20 | 21 | class CBZip2CombinedCrc 22 | { 23 | UInt32 _value; 24 | public: 25 | CBZip2CombinedCrc(): _value(0){}; 26 | void Init() { _value = 0; } 27 | void Update(UInt32 v) { _value = ((_value << 1) | (_value >> 31)) ^ v; } 28 | UInt32 GetDigest() const { return _value ; } 29 | }; 30 | 31 | #endif 32 | -------------------------------------------------------------------------------- /p7zip_16.02/CPP/7zip/Compress/BZip2Register.cpp: -------------------------------------------------------------------------------- 1 | // BZip2Register.cpp 2 | 3 | #include "StdAfx.h" 4 | 5 | #include "../Common/RegisterCodec.h" 6 | 7 | #include "BZip2Decoder.h" 8 | #if !defined(EXTRACT_ONLY) && !defined(BZIP2_EXTRACT_ONLY) 9 | #include "BZip2Encoder.h" 10 | #endif 11 | 12 | namespace NCompress { 13 | namespace NBZip2 { 14 | 15 | REGISTER_CODEC_CREATE(CreateDec, CDecoder) 16 | 17 | #if !defined(EXTRACT_ONLY) && !defined(BZIP2_EXTRACT_ONLY) 18 | REGISTER_CODEC_CREATE(CreateEnc, CEncoder) 19 | #else 20 | #define CreateEnc NULL 21 | #endif 22 | 23 | REGISTER_CODEC_2(BZip2, CreateDec, CreateEnc, 0x40202, "BZip2") 24 | 25 | }} 26 | -------------------------------------------------------------------------------- /p7zip_16.02/CPP/7zip/Compress/Bcj2Register.cpp: -------------------------------------------------------------------------------- 1 | // Bcj2Register.cpp 2 | 3 | #include "StdAfx.h" 4 | 5 | #include "../Common/RegisterCodec.h" 6 | 7 | #include "Bcj2Coder.h" 8 | 9 | namespace NCompress { 10 | namespace NBcj2 { 11 | 12 | REGISTER_CODEC_CREATE_2(CreateCodec, CDecoder(), ICompressCoder2) 13 | #ifndef EXTRACT_ONLY 14 | REGISTER_CODEC_CREATE_2(CreateCodecOut, CEncoder(), ICompressCoder2) 15 | #else 16 | #define CreateCodecOut NULL 17 | #endif 18 | 19 | REGISTER_CODEC_VAR 20 | { CreateCodec, CreateCodecOut, 0x303011B, "BCJ2", 4, false }; 21 | 22 | REGISTER_CODEC(BCJ2) 23 | 24 | }} 25 | -------------------------------------------------------------------------------- /p7zip_16.02/CPP/7zip/Compress/BcjCoder.cpp: -------------------------------------------------------------------------------- 1 | // BcjCoder.cpp 2 | 3 | #include "StdAfx.h" 4 | 5 | #include "BcjCoder.h" 6 | 7 | namespace NCompress { 8 | namespace NBcj { 9 | 10 | STDMETHODIMP CCoder::Init() 11 | { 12 | _bufferPos = 0; 13 | x86_Convert_Init(_prevMask); 14 | return S_OK; 15 | } 16 | 17 | STDMETHODIMP_(UInt32) CCoder::Filter(Byte *data, UInt32 size) 18 | { 19 | UInt32 processed = (UInt32)::x86_Convert(data, size, _bufferPos, &_prevMask, _encode); 20 | _bufferPos += processed; 21 | return processed; 22 | } 23 | 24 | }} 25 | -------------------------------------------------------------------------------- /p7zip_16.02/CPP/7zip/Compress/BcjCoder.h: -------------------------------------------------------------------------------- 1 | // BcjCoder.h 2 | 3 | #ifndef __COMPRESS_BCJ_CODER_H 4 | #define __COMPRESS_BCJ_CODER_H 5 | 6 | #include "../../../C/Bra.h" 7 | 8 | #include "../../Common/MyCom.h" 9 | 10 | #include "../ICoder.h" 11 | 12 | namespace NCompress { 13 | namespace NBcj { 14 | 15 | class CCoder: 16 | public ICompressFilter, 17 | public CMyUnknownImp 18 | { 19 | UInt32 _bufferPos; 20 | UInt32 _prevMask; 21 | int _encode; 22 | public: 23 | MY_UNKNOWN_IMP1(ICompressFilter); 24 | INTERFACE_ICompressFilter(;) 25 | 26 | CCoder(int encode): _bufferPos(0), _encode(encode) { x86_Convert_Init(_prevMask); } 27 | }; 28 | 29 | }} 30 | 31 | #endif 32 | -------------------------------------------------------------------------------- /p7zip_16.02/CPP/7zip/Compress/BcjRegister.cpp: -------------------------------------------------------------------------------- 1 | // BcjRegister.cpp 2 | 3 | #include "StdAfx.h" 4 | 5 | #include "../Common/RegisterCodec.h" 6 | 7 | #include "BcjCoder.h" 8 | 9 | namespace NCompress { 10 | namespace NBcj { 11 | 12 | REGISTER_FILTER_E(BCJ, 13 | CCoder(false), 14 | CCoder(true), 15 | 0x3030103, "BCJ") 16 | 17 | }} 18 | -------------------------------------------------------------------------------- /p7zip_16.02/CPP/7zip/Compress/BitlDecoder.cpp: -------------------------------------------------------------------------------- 1 | // BitlDecoder.cpp 2 | 3 | #include "StdAfx.h" 4 | 5 | #include "BitlDecoder.h" 6 | 7 | namespace NBitl { 8 | 9 | Byte kInvertTable[256]; 10 | 11 | struct CInverterTableInitializer 12 | { 13 | CInverterTableInitializer() 14 | { 15 | for (unsigned i = 0; i < 256; i++) 16 | { 17 | unsigned x = ((i & 0x55) << 1) | ((i & 0xAA) >> 1); 18 | x = ((x & 0x33) << 2) | ((x & 0xCC) >> 2); 19 | kInvertTable[i] = (Byte)(((x & 0x0F) << 4) | ((x & 0xF0) >> 4)); 20 | } 21 | } 22 | } g_InverterTableInitializer; 23 | 24 | } 25 | -------------------------------------------------------------------------------- /p7zip_16.02/CPP/7zip/Compress/BranchMisc.cpp: -------------------------------------------------------------------------------- 1 | // BranchMisc.cpp 2 | 3 | #include "StdAfx.h" 4 | 5 | #include "BranchMisc.h" 6 | 7 | namespace NCompress { 8 | namespace NBranch { 9 | 10 | STDMETHODIMP CCoder::Init() 11 | { 12 | _bufferPos = 0; 13 | return S_OK; 14 | } 15 | 16 | STDMETHODIMP_(UInt32) CCoder::Filter(Byte *data, UInt32 size) 17 | { 18 | UInt32 processed = (UInt32)BraFunc(data, size, _bufferPos, _encode); 19 | _bufferPos += processed; 20 | return processed; 21 | } 22 | 23 | }} 24 | -------------------------------------------------------------------------------- /p7zip_16.02/CPP/7zip/Compress/BranchMisc.h: -------------------------------------------------------------------------------- 1 | // BranchMisc.h 2 | 3 | #ifndef __COMPRESS_BRANCH_MISC_H 4 | #define __COMPRESS_BRANCH_MISC_H 5 | 6 | #include "../../Common/MyCom.h" 7 | 8 | #include "../ICoder.h" 9 | 10 | EXTERN_C_BEGIN 11 | 12 | typedef SizeT (*Func_Bra)(Byte *data, SizeT size, UInt32 ip, int encoding); 13 | 14 | EXTERN_C_END 15 | 16 | namespace NCompress { 17 | namespace NBranch { 18 | 19 | class CCoder: 20 | public ICompressFilter, 21 | public CMyUnknownImp 22 | { 23 | UInt32 _bufferPos; 24 | int _encode; 25 | Func_Bra BraFunc; 26 | public: 27 | MY_UNKNOWN_IMP1(ICompressFilter); 28 | INTERFACE_ICompressFilter(;) 29 | 30 | CCoder(Func_Bra bra, int encode): _bufferPos(0), _encode(encode), BraFunc(bra) {} 31 | }; 32 | 33 | }} 34 | 35 | #endif 36 | -------------------------------------------------------------------------------- /p7zip_16.02/CPP/7zip/Compress/CopyRegister.cpp: -------------------------------------------------------------------------------- 1 | // CopyRegister.cpp 2 | 3 | #include "StdAfx.h" 4 | 5 | #include "../Common/RegisterCodec.h" 6 | 7 | #include "CopyCoder.h" 8 | 9 | namespace NCompress { 10 | 11 | REGISTER_CODEC_CREATE(CreateCodec, CCopyCoder()) 12 | 13 | REGISTER_CODEC_2(Copy, CreateCodec, CreateCodec, 0, "Copy") 14 | 15 | } 16 | -------------------------------------------------------------------------------- /p7zip_16.02/CPP/7zip/Compress/Deflate64Register.cpp: -------------------------------------------------------------------------------- 1 | // Deflate64Register.cpp 2 | 3 | #include "StdAfx.h" 4 | 5 | #include "../Common/RegisterCodec.h" 6 | 7 | #include "DeflateDecoder.h" 8 | 9 | #if !defined(EXTRACT_ONLY) && !defined(DEFLATE_EXTRACT_ONLY) 10 | #include "DeflateEncoder.h" 11 | #endif 12 | 13 | namespace NCompress { 14 | namespace NDeflate { 15 | 16 | REGISTER_CODEC_CREATE(CreateDec, NDecoder::CCOMCoder64()) 17 | 18 | #if !defined(EXTRACT_ONLY) && !defined(DEFLATE_EXTRACT_ONLY) 19 | REGISTER_CODEC_CREATE(CreateEnc, NEncoder::CCOMCoder64()) 20 | #else 21 | #define CreateEnc NULL 22 | #endif 23 | 24 | REGISTER_CODEC_2(Deflate64, CreateDec, CreateEnc, 0x40109, "Deflate64") 25 | 26 | }} 27 | -------------------------------------------------------------------------------- /p7zip_16.02/CPP/7zip/Compress/DeflateRegister.cpp: -------------------------------------------------------------------------------- 1 | // DeflateRegister.cpp 2 | 3 | #include "StdAfx.h" 4 | 5 | #include "../Common/RegisterCodec.h" 6 | 7 | #include "DeflateDecoder.h" 8 | #if !defined(EXTRACT_ONLY) && !defined(DEFLATE_EXTRACT_ONLY) 9 | #include "DeflateEncoder.h" 10 | #endif 11 | 12 | namespace NCompress { 13 | namespace NDeflate { 14 | 15 | REGISTER_CODEC_CREATE(CreateDec, NDecoder::CCOMCoder) 16 | 17 | #if !defined(EXTRACT_ONLY) && !defined(DEFLATE_EXTRACT_ONLY) 18 | REGISTER_CODEC_CREATE(CreateEnc, NEncoder::CCOMCoder) 19 | #else 20 | #define CreateEnc NULL 21 | #endif 22 | 23 | REGISTER_CODEC_2(Deflate, CreateDec, CreateEnc, 0x40108, "Deflate") 24 | 25 | }} 26 | -------------------------------------------------------------------------------- /p7zip_16.02/CPP/7zip/Compress/DllExports2Compress.cpp: -------------------------------------------------------------------------------- 1 | // DllExports2Compress.cpp 2 | 3 | #include "StdAfx.h" 4 | 5 | #include "../../Common/MyInitGuid.h" 6 | 7 | #include "../ICoder.h" 8 | 9 | #include "../Common/RegisterCodec.h" 10 | 11 | extern "C" 12 | BOOL WINAPI DllMain( 13 | #ifdef UNDER_CE 14 | HANDLE 15 | #else 16 | HINSTANCE 17 | #endif 18 | /* hInstance */, DWORD /* dwReason */, LPVOID /*lpReserved*/) 19 | { 20 | return TRUE; 21 | } 22 | 23 | STDAPI CreateCoder(const GUID *clsid, const GUID *iid, void **outObject); 24 | 25 | STDAPI CreateObject(const GUID *clsid, const GUID *iid, void **outObject) 26 | { 27 | return CreateCoder(clsid, iid, outObject); 28 | } 29 | -------------------------------------------------------------------------------- /p7zip_16.02/CPP/7zip/Compress/LzOutWindow.cpp: -------------------------------------------------------------------------------- 1 | // LzOutWindow.cpp 2 | 3 | #include "StdAfx.h" 4 | 5 | #include "LzOutWindow.h" 6 | 7 | void CLzOutWindow::Init(bool solid) throw() 8 | { 9 | if (!solid) 10 | COutBuffer::Init(); 11 | #ifdef _NO_EXCEPTIONS 12 | ErrorCode = S_OK; 13 | #endif 14 | } 15 | -------------------------------------------------------------------------------- /p7zip_16.02/CPP/7zip/Compress/Lzham/include/zlib.h: -------------------------------------------------------------------------------- 1 | #define LZHAM_DEFINE_ZLIB_API 2 | #include "lzham.h" -------------------------------------------------------------------------------- /p7zip_16.02/CPP/7zip/Compress/Lzham/lzhamcomp/lzham_threading.h: -------------------------------------------------------------------------------- 1 | // File: lzham_threading.h 2 | // See Copyright Notice and license at the end of include/lzham.h 3 | 4 | #if LZHAM_USE_WIN32_API 5 | #include "lzham_win32_threading.h" 6 | #elif LZHAM_USE_PTHREADS_API 7 | #include "lzham_pthreads_threading.h" 8 | #else 9 | #include "lzham_null_threading.h" 10 | #endif 11 | 12 | 13 | -------------------------------------------------------------------------------- /p7zip_16.02/CPP/7zip/Compress/Lzham/lzhamdecomp/lzham_checksum.h: -------------------------------------------------------------------------------- 1 | // File: lzham_checksum.h 2 | // See Copyright Notice and license at the end of include/lzham.h 3 | #pragma once 4 | 5 | namespace lzham 6 | { 7 | const uint cInitAdler32 = 1U; 8 | uint adler32(const void* pBuf, size_t buflen, uint adler32 = cInitAdler32); 9 | 10 | const uint cInitCRC32 = 0U; 11 | uint crc32(uint crc, const lzham_uint8 *ptr, size_t buf_len); 12 | 13 | } // namespace lzham 14 | -------------------------------------------------------------------------------- /p7zip_16.02/CPP/7zip/Compress/Lzham/lzhamdecomp/lzham_config.h: -------------------------------------------------------------------------------- 1 | // File: lzham_config.h 2 | // See Copyright Notice and license at the end of include/lzham.h 3 | #pragma once 4 | 5 | #if defined(_DEBUG) || defined(DEBUG) 6 | #define LZHAM_BUILD_DEBUG 7 | 8 | #ifndef DEBUG 9 | #define DEBUG 10 | #endif 11 | #else 12 | #define LZHAM_BUILD_RELEASE 13 | 14 | #ifndef NDEBUG 15 | #define NDEBUG 16 | #endif 17 | 18 | #ifdef DEBUG 19 | #error DEBUG cannot be defined in LZHAM_BUILD_RELEASE 20 | #endif 21 | #endif 22 | 23 | // HACK HACK 24 | #define LZHAM_BUFFERED_PRINTF 0 25 | #define LZHAM_PERF_SECTIONS 0 -------------------------------------------------------------------------------- /p7zip_16.02/CPP/7zip/Compress/Lzham/makefile: -------------------------------------------------------------------------------- 1 | 2 | TARGET_FLAGS=$(CC_SHARED) -DRegisterCodec=DllRegisterCodec -Iinclude -Ilzhamdecomp -Ilzhamcomp -I../../../../ 3 | 4 | include ../../../../makefile.crc32 5 | include ../../../../makefile.machine 6 | 7 | LOCAL_LINK=$(LINK_SHARED) 8 | LIBS=$(LOCAL_LIBS) 9 | 10 | include ../../../../makefile.glb 11 | -------------------------------------------------------------------------------- /p7zip_16.02/CPP/7zip/Compress/Lzham/makefile.depend: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tehmul/p7zip-zstd/e72c479f922f22f79c7adcc91b03fa4f37861372/p7zip_16.02/CPP/7zip/Compress/Lzham/makefile.depend -------------------------------------------------------------------------------- /p7zip_16.02/CPP/7zip/Compress/Lzma2Register.cpp: -------------------------------------------------------------------------------- 1 | // Lzma2Register.cpp 2 | 3 | #include "StdAfx.h" 4 | 5 | #include "../Common/RegisterCodec.h" 6 | 7 | #include "Lzma2Decoder.h" 8 | 9 | #ifndef EXTRACT_ONLY 10 | #include "Lzma2Encoder.h" 11 | #endif 12 | 13 | namespace NCompress { 14 | namespace NLzma2 { 15 | 16 | REGISTER_CODEC_E(LZMA2, 17 | CDecoder(), 18 | CEncoder(), 19 | 0x21, 20 | "LZMA2") 21 | 22 | }} 23 | -------------------------------------------------------------------------------- /p7zip_16.02/CPP/7zip/Compress/LzmaRegister.cpp: -------------------------------------------------------------------------------- 1 | // LzmaRegister.cpp 2 | 3 | #include "StdAfx.h" 4 | 5 | #include "../Common/RegisterCodec.h" 6 | 7 | #include "LzmaDecoder.h" 8 | 9 | #ifndef EXTRACT_ONLY 10 | #include "LzmaEncoder.h" 11 | #endif 12 | 13 | namespace NCompress { 14 | namespace NLzma { 15 | 16 | REGISTER_CODEC_E(LZMA, 17 | CDecoder(), 18 | CEncoder(), 19 | 0x30101, 20 | "LZMA") 21 | 22 | }} 23 | -------------------------------------------------------------------------------- /p7zip_16.02/CPP/7zip/Compress/PpmdRegister.cpp: -------------------------------------------------------------------------------- 1 | // PpmdRegister.cpp 2 | 3 | #include "StdAfx.h" 4 | 5 | #include "../Common/RegisterCodec.h" 6 | 7 | #include "PpmdDecoder.h" 8 | 9 | #ifndef EXTRACT_ONLY 10 | #include "PpmdEncoder.h" 11 | #endif 12 | 13 | namespace NCompress { 14 | namespace NPpmd { 15 | 16 | REGISTER_CODEC_E(PPMD, 17 | CDecoder(), 18 | CEncoder(), 19 | 0x30401, 20 | "PPMD") 21 | 22 | }} 23 | -------------------------------------------------------------------------------- /p7zip_16.02/CPP/7zip/Compress/Rar/makefile.depend: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tehmul/p7zip-zstd/e72c479f922f22f79c7adcc91b03fa4f37861372/p7zip_16.02/CPP/7zip/Compress/Rar/makefile.depend -------------------------------------------------------------------------------- /p7zip_16.02/CPP/7zip/Compress/RarCodecsRegister.cpp: -------------------------------------------------------------------------------- 1 | // RarCodecsRegister.cpp 2 | 3 | #include "StdAfx.h" 4 | 5 | #include "../Common/RegisterCodec.h" 6 | 7 | #include "Rar1Decoder.h" 8 | #include "Rar2Decoder.h" 9 | #include "Rar3Decoder.h" 10 | #include "Rar5Decoder.h" 11 | 12 | namespace NCompress { 13 | 14 | #define CREATE_CODEC(x) REGISTER_CODEC_CREATE(CreateCodec ## x, NRar ## x::CDecoder()) 15 | 16 | CREATE_CODEC(1) 17 | CREATE_CODEC(2) 18 | CREATE_CODEC(3) 19 | CREATE_CODEC(5) 20 | 21 | #define RAR_CODEC(x, name) { CreateCodec ## x, NULL, 0x40300 + x, "Rar" name, 1, false } 22 | 23 | REGISTER_CODECS_VAR 24 | { 25 | RAR_CODEC(1, "1"), 26 | RAR_CODEC(2, "2"), 27 | RAR_CODEC(3, "3"), 28 | RAR_CODEC(5, "5"), 29 | }; 30 | 31 | REGISTER_CODECS(Rar) 32 | 33 | } 34 | -------------------------------------------------------------------------------- /p7zip_16.02/CPP/7zip/Compress/XpressDecoder.h: -------------------------------------------------------------------------------- 1 | // XpressDecoder.h 2 | 3 | #ifndef __XPRESS_DECODER_H 4 | #define __XPRESS_DECODER_H 5 | 6 | namespace NCompress { 7 | namespace NXpress { 8 | 9 | HRESULT Decode(const Byte *in, size_t inSize, Byte *out, size_t outSize); 10 | 11 | }} 12 | 13 | #endif 14 | -------------------------------------------------------------------------------- /p7zip_16.02/CPP/7zip/Compress/ZStd/makefile: -------------------------------------------------------------------------------- 1 | 2 | TARGET_FLAGS=$(CC_SHARED) -DRegisterCodec=DllRegisterCodec -Iinclude -I../../../../ 3 | 4 | include ../../../../makefile.crc32 5 | include ../../../../makefile.machine 6 | 7 | LOCAL_LINK=$(LINK_SHARED) 8 | LIBS=$(LOCAL_LIBS) 9 | 10 | include ../../../../makefile.glb 11 | -------------------------------------------------------------------------------- /p7zip_16.02/CPP/7zip/Compress/ZStd/makefile.depend: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tehmul/p7zip-zstd/e72c479f922f22f79c7adcc91b03fa4f37861372/p7zip_16.02/CPP/7zip/Compress/ZStd/makefile.depend -------------------------------------------------------------------------------- /p7zip_16.02/CPP/7zip/Compress/ZstdRegister.cpp: -------------------------------------------------------------------------------- 1 | // (C) 2016 Tino Reichardt 2 | 3 | #include "StdAfx.h" 4 | 5 | #include "../Common/RegisterCodec.h" 6 | 7 | #include "ZstdDecoder.h" 8 | 9 | #ifndef EXTRACT_ONLY 10 | #include "ZstdEncoder.h" 11 | #endif 12 | 13 | REGISTER_CODEC_E( 14 | ZSTD, 15 | NCompress::NZSTD::CDecoder(), 16 | NCompress::NZSTD::CEncoder(), 17 | 0x4F71101, "ZSTD") 18 | -------------------------------------------------------------------------------- /p7zip_16.02/CPP/7zip/Crypto/7zAesRegister.cpp: -------------------------------------------------------------------------------- 1 | // 7zAesRegister.cpp 2 | 3 | #include "StdAfx.h" 4 | 5 | #include "../Common/RegisterCodec.h" 6 | 7 | #include "7zAes.h" 8 | 9 | namespace NCrypto { 10 | namespace N7z { 11 | 12 | REGISTER_FILTER_E(7zAES, 13 | CDecoder(), 14 | CEncoder(), 15 | 0x6F10701, "7zAES") 16 | 17 | }} 18 | -------------------------------------------------------------------------------- /p7zip_16.02/CPP/7zip/Crypto/HmacSha256.h: -------------------------------------------------------------------------------- 1 | // HmacSha256.h 2 | // Implements HMAC-SHA-256 (RFC2104, FIPS-198) 3 | 4 | #ifndef __CRYPTO_HMAC_SHA256_H 5 | #define __CRYPTO_HMAC_SHA256_H 6 | 7 | #include "../../../C/Sha256.h" 8 | 9 | namespace NCrypto { 10 | namespace NSha256 { 11 | 12 | const unsigned kDigestSize = SHA256_DIGEST_SIZE; 13 | 14 | class CHmac 15 | { 16 | CSha256 _sha; 17 | CSha256 _sha2; 18 | public: 19 | void SetKey(const Byte *key, size_t keySize); 20 | void Update(const Byte *data, size_t dataSize) { Sha256_Update(&_sha, data, dataSize); } 21 | void Final(Byte *mac); 22 | // void Final(Byte *mac, size_t macSize); 23 | }; 24 | 25 | }} 26 | 27 | #endif 28 | -------------------------------------------------------------------------------- /p7zip_16.02/CPP/7zip/Crypto/MyAesReg.cpp: -------------------------------------------------------------------------------- 1 | // MyAesReg.cpp 2 | 3 | #include "StdAfx.h" 4 | 5 | #include "../Common/RegisterCodec.h" 6 | 7 | #include "MyAes.h" 8 | 9 | namespace NCrypto { 10 | 11 | REGISTER_FILTER_E(AES256CBC, 12 | CAesCbcDecoder(32), 13 | CAesCbcEncoder(32), 14 | 0x6F00181, "AES256CBC") 15 | 16 | } 17 | -------------------------------------------------------------------------------- /p7zip_16.02/CPP/7zip/Crypto/Pbkdf2HmacSha1.h: -------------------------------------------------------------------------------- 1 | // Pbkdf2HmacSha1.h 2 | // Password-Based Key Derivation Function (RFC 2898, PKCS #5) based on HMAC-SHA-1 3 | 4 | #ifndef __CRYPTO_PBKDF2_HMAC_SHA1_H 5 | #define __CRYPTO_PBKDF2_HMAC_SHA1_H 6 | 7 | #include 8 | 9 | #include "../../Common/MyTypes.h" 10 | 11 | namespace NCrypto { 12 | namespace NSha1 { 13 | 14 | void Pbkdf2Hmac(const Byte *pwd, size_t pwdSize, const Byte *salt, size_t saltSize, 15 | UInt32 numIterations, Byte *key, size_t keySize); 16 | 17 | void Pbkdf2Hmac32(const Byte *pwd, size_t pwdSize, const UInt32 *salt, size_t saltSize, 18 | UInt32 numIterations, UInt32 *key, size_t keySize); 19 | 20 | }} 21 | 22 | #endif 23 | -------------------------------------------------------------------------------- /p7zip_16.02/CPP/7zip/Crypto/RandGen.h: -------------------------------------------------------------------------------- 1 | // RandGen.h 2 | 3 | #ifndef __CRYPTO_RAND_GEN_H 4 | #define __CRYPTO_RAND_GEN_H 5 | 6 | #include "../../../C/Sha256.h" 7 | 8 | class CRandomGenerator 9 | { 10 | Byte _buff[SHA256_DIGEST_SIZE]; 11 | bool _needInit; 12 | 13 | void Init(); 14 | public: 15 | CRandomGenerator(): _needInit(true) {}; 16 | void Generate(Byte *data, unsigned size); 17 | }; 18 | 19 | extern CRandomGenerator g_RandomGenerator; 20 | 21 | #endif 22 | -------------------------------------------------------------------------------- /p7zip_16.02/CPP/7zip/IDecl.h: -------------------------------------------------------------------------------- 1 | // IDecl.h 2 | 3 | #ifndef __IDECL_H 4 | #define __IDECL_H 5 | 6 | #include "../Common/MyUnknown.h" 7 | 8 | #define k_7zip_GUID_Data1 0x23170F69 9 | #define k_7zip_GUID_Data2 0x40C1 10 | 11 | #define k_7zip_GUID_Data3_Common 0x278A 12 | 13 | #define k_7zip_GUID_Data3_Decoder 0x2790 14 | #define k_7zip_GUID_Data3_Encoder 0x2791 15 | #define k_7zip_GUID_Data3_Hasher 0x2792 16 | 17 | 18 | #define DECL_INTERFACE_SUB(i, base, groupId, subId) \ 19 | DEFINE_GUID(IID_ ## i, \ 20 | k_7zip_GUID_Data1, \ 21 | k_7zip_GUID_Data2, \ 22 | k_7zip_GUID_Data3_Common, \ 23 | 0, 0, 0, (groupId), 0, (subId), 0, 0); \ 24 | struct i: public base 25 | 26 | #define DECL_INTERFACE(i, groupId, subId) DECL_INTERFACE_SUB(i, IUnknown, groupId, subId) 27 | 28 | #endif 29 | -------------------------------------------------------------------------------- /p7zip_16.02/CPP/7zip/IPassword.h: -------------------------------------------------------------------------------- 1 | // IPassword.h 2 | 3 | #ifndef __IPASSWORD_H 4 | #define __IPASSWORD_H 5 | 6 | #include "../Common/MyTypes.h" 7 | #include "../Common/MyUnknown.h" 8 | 9 | #include "IDecl.h" 10 | 11 | #define PASSWORD_INTERFACE(i, x) DECL_INTERFACE(i, 5, x) 12 | 13 | PASSWORD_INTERFACE(ICryptoGetTextPassword, 0x10) 14 | { 15 | STDMETHOD(CryptoGetTextPassword)(BSTR *password) PURE; 16 | }; 17 | 18 | PASSWORD_INTERFACE(ICryptoGetTextPassword2, 0x11) 19 | { 20 | STDMETHOD(CryptoGetTextPassword2)(Int32 *passwordIsDefined, BSTR *password) PURE; 21 | }; 22 | 23 | #endif 24 | -------------------------------------------------------------------------------- /p7zip_16.02/CPP/7zip/IProgress.h: -------------------------------------------------------------------------------- 1 | // IProgress.h 2 | 3 | #ifndef __IPROGRESS_H 4 | #define __IPROGRESS_H 5 | 6 | #include "../Common/MyTypes.h" 7 | 8 | #include "IDecl.h" 9 | 10 | #define INTERFACE_IProgress(x) \ 11 | STDMETHOD(SetTotal)(UInt64 total) x; \ 12 | STDMETHOD(SetCompleted)(const UInt64 *completeValue) x; \ 13 | 14 | DECL_INTERFACE(IProgress, 0, 5) 15 | { 16 | INTERFACE_IProgress(PURE) 17 | }; 18 | 19 | #endif 20 | -------------------------------------------------------------------------------- /p7zip_16.02/CPP/7zip/MyVersion.h: -------------------------------------------------------------------------------- 1 | #define USE_COPYRIGHT_CR 2 | #include "../../C/7zVersion.h" 3 | -------------------------------------------------------------------------------- /p7zip_16.02/CPP/7zip/PREMAKE/generate.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | set -x 4 | 5 | doit() 6 | { 7 | rm -fr P7ZIP.$1 8 | mkdir P7ZIP.$1 9 | cd P7ZIP.$1 10 | cp ../premake4.lua premake4.lua 11 | premake4 $1 12 | cd .. 13 | } 14 | 15 | doit codeblocks 16 | doit codelite 17 | doit gmake 18 | 19 | -------------------------------------------------------------------------------- /p7zip_16.02/CPP/7zip/Q7Zip/Q7Zip/Q7SortFilerProxyModel.h: -------------------------------------------------------------------------------- 1 | #ifndef Q7SORTFILTERPROXYMODEL_H 2 | #define Q7SORTFILTERPROXYMODEL_H 3 | 4 | #include 5 | #include 6 | 7 | class Q7SortFilerProxyModel : public QSortFilterProxyModel 8 | { 9 | Q_OBJECT 10 | 11 | public: 12 | Q7SortFilerProxyModel(QObject *parent = 0); 13 | 14 | /* 15 | QDate filterMinimumDate() const { return minDate; } 16 | void setFilterMinimumDate(const QDate &date); 17 | 18 | QDate filterMaximumDate() const { return maxDate; } 19 | void setFilterMaximumDate(const QDate &date); 20 | */ 21 | protected: 22 | bool filterAcceptsRow(int sourceRow, const QModelIndex &sourceParent) const; 23 | // bool lessThan(const QModelIndex &left, const QModelIndex &right) const; 24 | 25 | private: 26 | /* 27 | bool dateInRange(const QDate &date) const; 28 | 29 | QDate minDate; 30 | QDate maxDate; 31 | */ 32 | }; 33 | 34 | #endif 35 | -------------------------------------------------------------------------------- /p7zip_16.02/CPP/7zip/Q7Zip/all.pro: -------------------------------------------------------------------------------- 1 | TEMPLATE = subdirs 2 | SUBDIRS = util7zip Q7Zip 3 | Q7Zip.depends = util7zip 4 | -------------------------------------------------------------------------------- /p7zip_16.02/CPP/7zip/QMAKE/all.pro: -------------------------------------------------------------------------------- 1 | 2 | TEMPLATE = subdirs 3 | SUBDIRS = 7za \ 4 | 7zr \ 5 | 7z_ \ 6 | Format7zFree \ 7 | Rar \ 8 | Lzham \ 9 | test_lib 10 | 11 | -------------------------------------------------------------------------------- /p7zip_16.02/CPP/7zip/QMAKE/test_lib/test_lib.pro: -------------------------------------------------------------------------------- 1 | 2 | QT -= core \ 3 | gui 4 | TARGET = test_lib 5 | CONFIG += console 6 | CONFIG -= app_bundle 7 | TEMPLATE = app 8 | 9 | SOURCES += \ 10 | ../../../myWindows/wine_date_and_time.cpp \ 11 | ../../../myWindows/myAddExeFlag.cpp \ 12 | ../../../myWindows/mySplitCommandLine.cpp \ 13 | ../../../myWindows/wine_GetXXXDefaultLangID.cpp \ 14 | ../../../myWindows/test_lib.cpp \ 15 | ../../../Common/MyString.cpp \ 16 | ../../../Common/MyWindows.cpp \ 17 | ../../../Common/MyVector.cpp \ 18 | ../../../../C/CpuArch.c \ 19 | ../../../../C/7zCrc.c \ 20 | ../../../../C/7zCrcOpt.c 21 | 22 | 23 | INCLUDEPATH = ../../../myWindows \ 24 | ../../../ \ 25 | ../../../include_windows 26 | 27 | DEFINES += _FILE_OFFSET_BITS=64 _LARGEFILE_SOURCE _REENTRANT ENV_UNIX BREAK_HANDLER UNICODE _UNICODE 28 | 29 | macx: LIBS += -framework CoreFoundation 30 | 31 | -------------------------------------------------------------------------------- /p7zip_16.02/CPP/7zip/TEST/TestUI/makefile: -------------------------------------------------------------------------------- 1 | 2 | TARGET_FLAGS=\ 3 | -I. \ 4 | `wx-config --unicode=yes --cxxflags` 5 | 6 | include ../../../../makefile.crc32 7 | include ../../../../makefile.machine 8 | 9 | LIBS=`wx-config --unicode=yes --libs` $(LOCAL_LIBS_DLL) 10 | 11 | include ../../../../makefile.glb 12 | 13 | -------------------------------------------------------------------------------- /p7zip_16.02/CPP/7zip/TEST/TestUI/makefile.depend: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tehmul/p7zip-zstd/e72c479f922f22f79c7adcc91b03fa4f37861372/p7zip_16.02/CPP/7zip/TEST/TestUI/makefile.depend -------------------------------------------------------------------------------- /p7zip_16.02/CPP/7zip/UI/Agent/UpdateCallbackAgent.h: -------------------------------------------------------------------------------- 1 | // UpdateCallbackAgent.h 2 | 3 | #ifndef __UPDATE_CALLBACK_AGENT_H 4 | #define __UPDATE_CALLBACK_AGENT_H 5 | 6 | #include "../Common/UpdateCallback.h" 7 | 8 | #include "IFolderArchive.h" 9 | 10 | class CUpdateCallbackAgent: public IUpdateCallbackUI 11 | { 12 | INTERFACE_IUpdateCallbackUI(;) 13 | 14 | CMyComPtr _cryptoGetTextPassword; 15 | CMyComPtr Callback; 16 | CMyComPtr Callback2; 17 | CMyComPtr _compressProgress; 18 | public: 19 | void SetCallback(IFolderArchiveUpdateCallback *callback); 20 | }; 21 | 22 | #endif 23 | -------------------------------------------------------------------------------- /p7zip_16.02/CPP/7zip/UI/Client7z/makefile: -------------------------------------------------------------------------------- 1 | 2 | include ../../../../makefile.crc32 3 | include ../../../../makefile.machine 4 | 5 | TARGET_FLAGS=$(CC_EXE) 6 | LOCAL_LINK=$(LINK_EXE) 7 | LIBS=$(LOCAL_LIBS_DLL) 8 | 9 | include ../../../../makefile.glb 10 | -------------------------------------------------------------------------------- /p7zip_16.02/CPP/7zip/UI/Client7z/makefile.depend: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tehmul/p7zip-zstd/e72c479f922f22f79c7adcc91b03fa4f37861372/p7zip_16.02/CPP/7zip/UI/Client7z/makefile.depend -------------------------------------------------------------------------------- /p7zip_16.02/CPP/7zip/UI/ClientCodec/makefile.depend: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tehmul/p7zip-zstd/e72c479f922f22f79c7adcc91b03fa4f37861372/p7zip_16.02/CPP/7zip/UI/ClientCodec/makefile.depend -------------------------------------------------------------------------------- /p7zip_16.02/CPP/7zip/UI/Common/ArchiveName.h: -------------------------------------------------------------------------------- 1 | // ArchiveName.h 2 | 3 | #ifndef __ARCHIVE_NAME_H 4 | #define __ARCHIVE_NAME_H 5 | 6 | #include "../../../Common/MyString.h" 7 | 8 | #include "../../../Windows/FileFind.h" 9 | 10 | UString CreateArchiveName(const UString &path, bool fromPrev, bool keepName); 11 | UString CreateArchiveName(const NWindows::NFile::NFind::CFileInfo &fileInfo, bool keepName); 12 | 13 | #endif 14 | -------------------------------------------------------------------------------- /p7zip_16.02/CPP/7zip/UI/Common/CompressCall.h: -------------------------------------------------------------------------------- 1 | // CompressCall.h 2 | 3 | #ifndef __COMPRESS_CALL_H 4 | #define __COMPRESS_CALL_H 5 | 6 | #include "../../../Common/MyString.h" 7 | 8 | UString GetQuotedString(const UString &s); 9 | 10 | HRESULT CompressFiles( 11 | const UString &arcPathPrefix, 12 | const UString &arcName, 13 | const UString &arcType, 14 | bool addExtension, 15 | const UStringVector &names, 16 | bool email, bool showDialog, bool waitFinish); 17 | 18 | void ExtractArchives(const UStringVector &arcPaths, const UString &outFolder, bool showDialog, bool elimDup); 19 | void TestArchives(const UStringVector &arcPaths); 20 | void CalcChecksum(const UStringVector &paths, const UString &methodName); 21 | void Benchmark(bool totalMode); 22 | 23 | #endif 24 | -------------------------------------------------------------------------------- /p7zip_16.02/CPP/7zip/UI/Common/DefaultName.h: -------------------------------------------------------------------------------- 1 | // DefaultName.h 2 | 3 | #ifndef __DEFAULT_NAME_H 4 | #define __DEFAULT_NAME_H 5 | 6 | #include "../../../Common/MyString.h" 7 | 8 | UString GetDefaultName2(const UString &fileName, 9 | const UString &extension, const UString &addSubExtension); 10 | 11 | #endif 12 | -------------------------------------------------------------------------------- /p7zip_16.02/CPP/7zip/UI/Common/EnumDirItems.h: -------------------------------------------------------------------------------- 1 | // EnumDirItems.h 2 | 3 | #ifndef __ENUM_DIR_ITEMS_H 4 | #define __ENUM_DIR_ITEMS_H 5 | 6 | #include "../../../Common/Wildcard.h" 7 | 8 | #include "../../../Windows/FileFind.h" 9 | 10 | #include "DirItem.h" 11 | 12 | void AddDirFileInfo(int phyParent, int logParent, int secureIndex, 13 | const NWindows::NFile::NFind::CFileInfo &fi, CObjectVector &dirItems); 14 | 15 | HRESULT EnumerateItems( 16 | const NWildcard::CCensor &censor, 17 | NWildcard::ECensorPathMode pathMode, 18 | const UString &addPathPrefix, 19 | CDirItems &dirItems); 20 | 21 | #endif 22 | -------------------------------------------------------------------------------- /p7zip_16.02/CPP/7zip/UI/Common/ExitCode.h: -------------------------------------------------------------------------------- 1 | // ExitCode.h 2 | 3 | #ifndef __EXIT_CODE_H 4 | #define __EXIT_CODE_H 5 | 6 | namespace NExitCode { 7 | 8 | enum EEnum { 9 | 10 | kSuccess = 0, // Successful operation 11 | kWarning = 1, // Non fatal error(s) occurred 12 | kFatalError = 2, // A fatal error occurred 13 | // kCRCError = 3, // A CRC error occurred when unpacking 14 | // kLockedArchive = 4, // Attempt to modify an archive previously locked 15 | // kWriteError = 5, // Write to disk error 16 | // kOpenError = 6, // Open file error 17 | kUserError = 7, // Command line option error 18 | kMemoryError = 8, // Not enough memory for operation 19 | // kCreateFileError = 9, // Create file error 20 | 21 | kUserBreak = 255 // User stopped the process 22 | 23 | }; 24 | 25 | } 26 | 27 | #endif 28 | -------------------------------------------------------------------------------- /p7zip_16.02/CPP/7zip/UI/Common/ExtractMode.h: -------------------------------------------------------------------------------- 1 | // ExtractMode.h 2 | 3 | #ifndef __EXTRACT_MODE_H 4 | #define __EXTRACT_MODE_H 5 | 6 | namespace NExtract { 7 | 8 | namespace NPathMode 9 | { 10 | enum EEnum 11 | { 12 | kFullPaths, 13 | kCurPaths, 14 | kNoPaths, 15 | kAbsPaths, 16 | kNoPathsAlt // alt streams must be extracted without name of base file 17 | }; 18 | } 19 | 20 | namespace NOverwriteMode 21 | { 22 | enum EEnum 23 | { 24 | kAsk, 25 | kOverwrite, 26 | kSkip, 27 | kRename, 28 | kRenameExisting 29 | }; 30 | } 31 | 32 | } 33 | 34 | #endif 35 | -------------------------------------------------------------------------------- /p7zip_16.02/CPP/7zip/UI/Common/ExtractingFilePath.h: -------------------------------------------------------------------------------- 1 | // ExtractingFilePath.h 2 | 3 | #ifndef __EXTRACTING_FILE_PATH_H 4 | #define __EXTRACTING_FILE_PATH_H 5 | 6 | #include "../../../Common/MyString.h" 7 | 8 | // #ifdef _WIN32 9 | void Correct_AltStream_Name(UString &s); 10 | // #endif 11 | 12 | // replaces unsuported characters, and replaces "." , ".." and "" to "[]" 13 | UString Get_Correct_FsFile_Name(const UString &name); 14 | 15 | void Correct_FsPath(bool absIsAllowed, UStringVector &parts, bool isDir); 16 | 17 | UString MakePathFromParts(const UStringVector &parts); 18 | 19 | #endif 20 | -------------------------------------------------------------------------------- /p7zip_16.02/CPP/7zip/UI/Common/PropIDUtils.h: -------------------------------------------------------------------------------- 1 | // PropIDUtils.h 2 | 3 | #ifndef __PROPID_UTILS_H 4 | #define __PROPID_UTILS_H 5 | 6 | #include "../../../Common/MyString.h" 7 | 8 | // provide at least 64 bytes for buffer including zero-end 9 | void ConvertPropertyToShortString(char *dest, const PROPVARIANT &propVariant, PROPID propID, bool full = true) throw(); 10 | void ConvertPropertyToString(UString &dest, const PROPVARIANT &propVariant, PROPID propID, bool full = true); 11 | 12 | bool ConvertNtReparseToString(const Byte *data, UInt32 size, UString &s); 13 | void ConvertNtSecureToString(const Byte *data, UInt32 size, AString &s); 14 | bool CheckNtSecure(const Byte *data, UInt32 size) throw();; 15 | 16 | void ConvertWinAttribToString(char *s, UInt32 wa) throw(); 17 | 18 | #endif 19 | -------------------------------------------------------------------------------- /p7zip_16.02/CPP/7zip/UI/Common/Property.h: -------------------------------------------------------------------------------- 1 | // Property.h 2 | 3 | #ifndef __7Z_PROPERTY_H 4 | #define __7Z_PROPERTY_H 5 | 6 | #include "../../../Common/MyString.h" 7 | 8 | struct CProperty 9 | { 10 | UString Name; 11 | UString Value; 12 | }; 13 | 14 | #endif 15 | -------------------------------------------------------------------------------- /p7zip_16.02/CPP/7zip/UI/Common/SetProperties.h: -------------------------------------------------------------------------------- 1 | // SetProperties.h 2 | 3 | #ifndef __SETPROPERTIES_H 4 | #define __SETPROPERTIES_H 5 | 6 | #include "Property.h" 7 | 8 | HRESULT SetProperties(IUnknown *unknown, const CObjectVector &properties); 9 | 10 | #endif 11 | -------------------------------------------------------------------------------- /p7zip_16.02/CPP/7zip/UI/Common/SortUtils.cpp: -------------------------------------------------------------------------------- 1 | // SortUtils.cpp 2 | 3 | #include "StdAfx.h" 4 | 5 | #include "../../../Common/Wildcard.h" 6 | 7 | #include "SortUtils.h" 8 | 9 | static int CompareStrings(const unsigned *p1, const unsigned *p2, void *param) 10 | { 11 | const UStringVector &strings = *(const UStringVector *)param; 12 | return CompareFileNames(strings[*p1], strings[*p2]); 13 | } 14 | 15 | void SortFileNames(const UStringVector &strings, CUIntVector &indices) 16 | { 17 | const unsigned numItems = strings.Size(); 18 | indices.ClearAndSetSize(numItems); 19 | if (numItems == 0) 20 | return; 21 | unsigned *vals = &indices[0]; 22 | for (unsigned i = 0; i < numItems; i++) 23 | vals[i] = i; 24 | indices.Sort(CompareStrings, (void *)&strings); 25 | } 26 | -------------------------------------------------------------------------------- /p7zip_16.02/CPP/7zip/UI/Common/SortUtils.h: -------------------------------------------------------------------------------- 1 | // SortUtils.h 2 | 3 | #ifndef __SORT_UTLS_H 4 | #define __SORT_UTLS_H 5 | 6 | #include "../../../Common/MyString.h" 7 | 8 | void SortFileNames(const UStringVector &strings, CUIntVector &indices); 9 | 10 | #endif 11 | -------------------------------------------------------------------------------- /p7zip_16.02/CPP/7zip/UI/Common/TempFiles.cpp: -------------------------------------------------------------------------------- 1 | // TempFiles.cpp 2 | 3 | #include "StdAfx.h" 4 | 5 | #include "../../../Windows/FileDir.h" 6 | 7 | #include "TempFiles.h" 8 | 9 | using namespace NWindows; 10 | using namespace NFile; 11 | 12 | void CTempFiles::Clear() 13 | { 14 | while (!Paths.IsEmpty()) 15 | { 16 | NDir::DeleteFileAlways(Paths.Back()); 17 | Paths.DeleteBack(); 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /p7zip_16.02/CPP/7zip/UI/Common/TempFiles.h: -------------------------------------------------------------------------------- 1 | // TempFiles.h 2 | 3 | #ifndef __TEMP_FILES_H 4 | #define __TEMP_FILES_H 5 | 6 | #include "../../../Common/MyString.h" 7 | 8 | class CTempFiles 9 | { 10 | void Clear(); 11 | public: 12 | FStringVector Paths; 13 | ~CTempFiles() { Clear(); } 14 | }; 15 | 16 | #endif 17 | -------------------------------------------------------------------------------- /p7zip_16.02/CPP/7zip/UI/Common/UpdatePair.h: -------------------------------------------------------------------------------- 1 | // UpdatePair.h 2 | 3 | #ifndef __UPDATE_PAIR_H 4 | #define __UPDATE_PAIR_H 5 | 6 | #include "DirItem.h" 7 | #include "UpdateAction.h" 8 | 9 | #include "../../Archive/IArchive.h" 10 | 11 | struct CUpdatePair 12 | { 13 | NUpdateArchive::NPairState::EEnum State; 14 | int ArcIndex; 15 | int DirIndex; 16 | int HostIndex; // >= 0 for alt streams only, contains index of host pair 17 | 18 | CUpdatePair(): ArcIndex(-1), DirIndex(-1), HostIndex(-1) {} 19 | }; 20 | 21 | void GetUpdatePairInfoList( 22 | const CDirItems &dirItems, 23 | const CObjectVector &arcItems, 24 | NFileTimeType::EEnum fileTimeType, 25 | CRecordVector &updatePairs); 26 | 27 | #endif 28 | -------------------------------------------------------------------------------- /p7zip_16.02/CPP/7zip/UI/Common/WorkDir.h: -------------------------------------------------------------------------------- 1 | // WorkDir.h 2 | 3 | #ifndef __WORK_DIR_H 4 | #define __WORK_DIR_H 5 | 6 | #include "../../../Windows/FileDir.h" 7 | 8 | #include "../../Common/FileStreams.h" 9 | 10 | #include "ZipRegistry.h" 11 | 12 | FString GetWorkDir(const NWorkDir::CInfo &workDirInfo, const FString &path, FString &fileName); 13 | 14 | class CWorkDirTempFile 15 | { 16 | FString _originalPath; 17 | NWindows::NFile::NDir::CTempFile _tempFile; 18 | COutFileStream *_outStreamSpec; 19 | public: 20 | CMyComPtr OutStream; 21 | 22 | HRESULT CreateTempFile(const FString &originalPath); 23 | HRESULT MoveToOriginal(bool deleteOriginal); 24 | }; 25 | 26 | #endif 27 | -------------------------------------------------------------------------------- /p7zip_16.02/CPP/7zip/UI/Console/BenchCon.h: -------------------------------------------------------------------------------- 1 | // BenchCon.h 2 | 3 | #ifndef __BENCH_CON_H 4 | #define __BENCH_CON_H 5 | 6 | #include 7 | 8 | #include "../../Common/CreateCoder.h" 9 | #include "../../UI/Common/Property.h" 10 | 11 | HRESULT BenchCon(DECL_EXTERNAL_CODECS_LOC_VARS 12 | const CObjectVector &props, UInt32 numIterations, FILE *f); 13 | 14 | #endif 15 | -------------------------------------------------------------------------------- /p7zip_16.02/CPP/7zip/UI/Console/ConsoleClose.h: -------------------------------------------------------------------------------- 1 | // ConsoleCloseUtils.h 2 | 3 | #ifndef __CONSOLECLOSEUTILS_H 4 | #define __CONSOLECLOSEUTILS_H 5 | 6 | namespace NConsoleClose { 7 | 8 | bool TestBreakSignal(); 9 | 10 | class CCtrlHandlerSetter 11 | { 12 | void (*memo_sig_int)(int); 13 | void (*memo_sig_term)(int); 14 | public: 15 | CCtrlHandlerSetter(); 16 | virtual ~CCtrlHandlerSetter(); 17 | }; 18 | 19 | class CCtrlBreakException 20 | {}; 21 | 22 | void CheckCtrlBreak(); 23 | 24 | } 25 | 26 | #endif 27 | -------------------------------------------------------------------------------- /p7zip_16.02/CPP/7zip/UI/Console/List.h: -------------------------------------------------------------------------------- 1 | // List.h 2 | 3 | #ifndef __LIST_H 4 | #define __LIST_H 5 | 6 | #include "../../../Common/Wildcard.h" 7 | 8 | #include "../Common/LoadCodecs.h" 9 | 10 | HRESULT ListArchives(CCodecs *codecs, 11 | const CObjectVector &types, 12 | const CIntVector &excludedFormats, 13 | bool stdInMode, 14 | UStringVector &archivePaths, UStringVector &archivePathsFull, 15 | bool processAltStreams, bool showAltStreams, 16 | const NWildcard::CCensorNode &wildcardCensor, 17 | bool enableHeaders, bool techMode, 18 | #ifndef _NO_CRYPTO 19 | bool &passwordEnabled, UString &password, 20 | #endif 21 | #ifndef _SFX 22 | const CObjectVector *props, 23 | #endif 24 | UInt64 &errors, 25 | UInt64 &numWarnings); 26 | 27 | #endif 28 | -------------------------------------------------------------------------------- /p7zip_16.02/CPP/7zip/UI/Console/UserInputUtils.h: -------------------------------------------------------------------------------- 1 | // UserInputUtils.h 2 | 3 | #ifndef __USER_INPUT_UTILS_H 4 | #define __USER_INPUT_UTILS_H 5 | 6 | #include "../../../Common/StdOutStream.h" 7 | 8 | namespace NUserAnswerMode { 9 | 10 | enum EEnum 11 | { 12 | kYes, 13 | kNo, 14 | kYesAll, 15 | kNoAll, 16 | kAutoRenameAll, 17 | kQuit 18 | }; 19 | } 20 | 21 | NUserAnswerMode::EEnum ScanUserYesNoAllQuit(CStdOutStream *outStream); 22 | UString GetPassword(CStdOutStream *outStream,bool verify = false); 23 | 24 | #endif 25 | -------------------------------------------------------------------------------- /p7zip_16.02/CPP/7zip/UI/Console/makefile: -------------------------------------------------------------------------------- 1 | 2 | include ../../../../makefile.crc32 3 | include ../../../../makefile.machine 4 | 5 | TARGET_FLAGS=$(CC_EXE) 6 | LOCAL_LINK=$(LINK_EXE) 7 | LIBS=$(LOCAL_LIBS_DLL) 8 | 9 | include ../../../../makefile.glb 10 | 11 | -------------------------------------------------------------------------------- /p7zip_16.02/CPP/7zip/UI/Console/makefile.depend: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tehmul/p7zip-zstd/e72c479f922f22f79c7adcc91b03fa4f37861372/p7zip_16.02/CPP/7zip/UI/Console/makefile.depend -------------------------------------------------------------------------------- /p7zip_16.02/CPP/7zip/UI/Explorer/ContextMenu.h: -------------------------------------------------------------------------------- 1 | 2 | 3 | /* TODO */ 4 | 5 | 6 | -------------------------------------------------------------------------------- /p7zip_16.02/CPP/7zip/UI/Explorer/MyMessages.cpp: -------------------------------------------------------------------------------- 1 | // MyMessages.cpp 2 | 3 | #include "StdAfx.h" 4 | 5 | #include "MyMessages.h" 6 | 7 | #include "../../../Windows/ErrorMsg.h" 8 | #include "../../../Windows/ResourceString.h" 9 | 10 | #include "../FileManager/LangUtils.h" 11 | 12 | using namespace NWindows; 13 | 14 | void ShowErrorMessage(HWND window, LPCWSTR message) 15 | { 16 | ::MessageBoxW(window, message, L"7-Zip", MB_OK | MB_ICONSTOP); 17 | } 18 | 19 | void ShowErrorMessageHwndRes(HWND window, UINT resID) 20 | { 21 | ShowErrorMessage(window, LangString(resID)); 22 | } 23 | 24 | void ShowErrorMessageRes(UINT resID) 25 | { 26 | ShowErrorMessageHwndRes(0, resID); 27 | } 28 | 29 | void ShowErrorMessageDWORD(HWND window, DWORD errorCode) 30 | { 31 | ShowErrorMessage(window, NError::MyFormatMessage(errorCode)); 32 | } 33 | 34 | void ShowLastErrorMessage(HWND window) 35 | { 36 | ShowErrorMessageDWORD(window, ::GetLastError()); 37 | } 38 | -------------------------------------------------------------------------------- /p7zip_16.02/CPP/7zip/UI/Explorer/MyMessages.h: -------------------------------------------------------------------------------- 1 | // MyMessages.h 2 | 3 | #ifndef __MY_MESSAGES_H 4 | #define __MY_MESSAGES_H 5 | 6 | #include "../../../Common/MyString.h" 7 | 8 | void ShowErrorMessage(HWND window, LPCWSTR message); 9 | inline void ShowErrorMessage(LPCWSTR message) { ShowErrorMessage(0, message); } 10 | 11 | void ShowErrorMessageHwndRes(HWND window, UInt32 langID); 12 | void ShowErrorMessageRes(UInt32 langID); 13 | 14 | void ShowLastErrorMessage(HWND window = 0); 15 | 16 | #endif 17 | -------------------------------------------------------------------------------- /p7zip_16.02/CPP/7zip/UI/FileManager/ClassDefs.cpp: -------------------------------------------------------------------------------- 1 | // ClassDefs.cpp 2 | 3 | #include "StdAfx.h" 4 | 5 | #include "../../../Common/MyWindows.h" 6 | 7 | #include "../../../Common/MyInitGuid.h" 8 | 9 | #include "../Agent/Agent.h" 10 | 11 | #include "MyWindowsNew.h" 12 | -------------------------------------------------------------------------------- /p7zip_16.02/CPP/7zip/UI/FileManager/ComboDialog.h: -------------------------------------------------------------------------------- 1 | // ComboDialog.h 2 | 3 | #ifndef __COMBO_DIALOG_H 4 | #define __COMBO_DIALOG_H 5 | 6 | #include "../../../Windows/Control/ComboBox.h" 7 | #include "../../../Windows/Control/Dialog.h" 8 | 9 | #include "ComboDialogRes.h" 10 | 11 | class CComboDialog: public NWindows::NControl::CModalDialog 12 | { 13 | NWindows::NControl::CComboBox _comboBox; 14 | virtual void OnOK(); 15 | virtual bool OnInit(); 16 | virtual bool OnSize(WPARAM wParam, int xSize, int ySize); 17 | public: 18 | // bool Sorted; 19 | UString Title; 20 | UString Static; 21 | UString Value; 22 | UStringVector Strings; 23 | 24 | // CComboDialog(): Sorted(false) {}; 25 | INT_PTR Create(HWND parentWindow = 0) { return CModalDialog::Create(IDD_COMBO, parentWindow); } 26 | }; 27 | 28 | #endif 29 | -------------------------------------------------------------------------------- /p7zip_16.02/CPP/7zip/UI/FileManager/ComboDialogRes.h: -------------------------------------------------------------------------------- 1 | #define IDD_COMBO 98 2 | 3 | #define IDT_COMBO 100 4 | #define IDC_COMBO 101 5 | -------------------------------------------------------------------------------- /p7zip_16.02/CPP/7zip/UI/FileManager/CopyDialog.h: -------------------------------------------------------------------------------- 1 | // CopyDialog.h 2 | 3 | #ifndef __COPY_DIALOG_H 4 | #define __COPY_DIALOG_H 5 | 6 | #include "../../../Windows/Control/ComboBox.h" 7 | #include "../../../Windows/Control/Dialog.h" 8 | 9 | #include "CopyDialogRes.h" 10 | 11 | const int kCopyDialog_NumInfoLines = 11; 12 | 13 | class CCopyDialog: public NWindows::NControl::CModalDialog 14 | { 15 | NWindows::NControl::CComboBox _path; 16 | virtual void OnOK(); 17 | virtual bool OnInit(); 18 | virtual bool OnSize(WPARAM wParam, int xSize, int ySize); 19 | void OnButtonSetPath(); 20 | bool OnButtonClicked(int buttonID, HWND buttonHWND); 21 | public: 22 | UString Title; 23 | UString Static; 24 | UString Value; 25 | UString Info; 26 | UStringVector Strings; 27 | 28 | INT_PTR Create(HWND parentWindow = 0) { return CModalDialog::Create(IDD_COPY, parentWindow); } 29 | }; 30 | 31 | #endif 32 | -------------------------------------------------------------------------------- /p7zip_16.02/CPP/7zip/UI/FileManager/CopyDialogRes.h: -------------------------------------------------------------------------------- 1 | #define IDD_COPY 96 2 | 3 | #define IDT_COPY 100 4 | #define IDC_COPY 101 5 | #define IDB_COPY_SET_PATH 102 6 | #define IDT_COPY_INFO 103 7 | 8 | #define IDS_SET_FOLDER 6007 9 | -------------------------------------------------------------------------------- /p7zip_16.02/CPP/7zip/UI/FileManager/DialogSize.h: -------------------------------------------------------------------------------- 1 | // DialogSize.h 2 | 3 | #ifndef __DIALOG_SIZE_H 4 | #define __DIALOG_SIZE_H 5 | 6 | #include "../../../Windows/Control/Dialog.h" 7 | 8 | #ifdef UNDER_CE 9 | #define BIG_DIALOG_SIZE(x, y) bool isBig = NWindows::NControl::IsDialogSizeOK(x, y); 10 | #define SIZED_DIALOG(big) (isBig ? big : big ## _2) 11 | #else 12 | #define BIG_DIALOG_SIZE(x, y) 13 | #define SIZED_DIALOG(big) big 14 | #endif 15 | 16 | #endif 17 | -------------------------------------------------------------------------------- /p7zip_16.02/CPP/7zip/UI/FileManager/FileFolderPluginOpen.h: -------------------------------------------------------------------------------- 1 | // FileFolderPluginOpen.h 2 | 3 | #ifndef __FILE_FOLDER_PLUGIN_OPEN_H 4 | #define __FILE_FOLDER_PLUGIN_OPEN_H 5 | 6 | HRESULT OpenFileFolderPlugin(IInStream *inStream, const FString &path, const UString &arcFormat, 7 | HMODULE *module, IFolderFolder **resultFolder, HWND parentWindow, bool &encrypted, UString &password); 8 | 9 | #endif 10 | -------------------------------------------------------------------------------- /p7zip_16.02/CPP/7zip/UI/FileManager/FormatUtils.cpp: -------------------------------------------------------------------------------- 1 | // FormatUtils.cpp 2 | 3 | #include "StdAfx.h" 4 | 5 | #include "../../../Common/IntToString.h" 6 | 7 | #include "FormatUtils.h" 8 | 9 | #include "LangUtils.h" 10 | 11 | UString NumberToString(UInt64 number) 12 | { 13 | wchar_t numberString[32]; 14 | ConvertUInt64ToString(number, numberString); 15 | return numberString; 16 | } 17 | 18 | UString MyFormatNew(const UString &format, const UString &argument) 19 | { 20 | UString result = format; 21 | result.Replace(L"{0}", argument); 22 | return result; 23 | } 24 | 25 | UString MyFormatNew(UINT resourceID, const UString &argument) 26 | { 27 | return MyFormatNew(LangString(resourceID), argument); 28 | } 29 | -------------------------------------------------------------------------------- /p7zip_16.02/CPP/7zip/UI/FileManager/FormatUtils.h: -------------------------------------------------------------------------------- 1 | // FormatUtils.h 2 | 3 | #ifndef __FORMAT_UTILS_H 4 | #define __FORMAT_UTILS_H 5 | 6 | #include "../../../Common/MyTypes.h" 7 | #include "../../../Common/MyString.h" 8 | 9 | UString NumberToString(UInt64 number); 10 | 11 | UString MyFormatNew(const UString &format, const UString &argument); 12 | UString MyFormatNew(UINT resourceID, const UString &argument); 13 | 14 | #endif 15 | -------------------------------------------------------------------------------- /p7zip_16.02/CPP/7zip/UI/FileManager/HelpUtils.h: -------------------------------------------------------------------------------- 1 | // HelpUtils.h 2 | 3 | #ifndef __HELP_UTILS_H 4 | #define __HELP_UTILS_H 5 | 6 | #include "../../../Common/MyString.h" 7 | 8 | void ShowHelpWindow(HWND hwnd, LPCWSTR topicFile); 9 | 10 | #endif 11 | -------------------------------------------------------------------------------- /p7zip_16.02/CPP/7zip/UI/FileManager/ListViewDialog.h: -------------------------------------------------------------------------------- 1 | // ListViewDialog.h 2 | 3 | #ifndef __LISTVIEW_DIALOG_H 4 | #define __LISTVIEW_DIALOG_H 5 | 6 | #include "../../../Windows/Control/Dialog.h" 7 | #include "../../../Windows/Control/ListView.h" 8 | 9 | #include "ListViewDialogRes.h" 10 | 11 | class CListViewDialog: public NWindows::NControl::CModalDialog 12 | { 13 | NWindows::NControl::CListView _listView; 14 | virtual void OnOK(); 15 | virtual bool OnInit(); 16 | virtual bool OnSize(WPARAM wParam, int xSize, int ySize); 17 | virtual bool OnNotify(UINT controlID, LPNMHDR header); 18 | public: 19 | UString Title; 20 | bool DeleteIsAllowed; 21 | bool StringsWereChanged; 22 | UStringVector Strings; 23 | int FocusedItemIndex; 24 | 25 | INT_PTR Create(HWND wndParent = 0) { return CModalDialog::Create(IDD_LISTVIEW, wndParent); } 26 | 27 | CListViewDialog(): DeleteIsAllowed(false) {} 28 | }; 29 | 30 | #endif 31 | -------------------------------------------------------------------------------- /p7zip_16.02/CPP/7zip/UI/FileManager/ListViewDialogRes.h: -------------------------------------------------------------------------------- 1 | #define IDD_LISTVIEW 99 2 | #define IDL_LISTVIEW 100 3 | -------------------------------------------------------------------------------- /p7zip_16.02/CPP/7zip/UI/FileManager/MessagesDialog.h: -------------------------------------------------------------------------------- 1 | // MessagesDialog.h 2 | 3 | #ifndef __MESSAGES_DIALOG_H 4 | #define __MESSAGES_DIALOG_H 5 | 6 | #include "../../../Windows/Control/Dialog.h" 7 | #include "../../../Windows/Control/ListView.h" 8 | 9 | #include "MessagesDialogRes.h" 10 | 11 | class CMessagesDialog: public NWindows::NControl::CModalDialog 12 | { 13 | NWindows::NControl::CListView _messageList; 14 | 15 | void AddMessageDirect(LPCWSTR message); 16 | void AddMessage(LPCWSTR message); 17 | virtual bool OnInit(); 18 | virtual bool OnSize(WPARAM wParam, int xSize, int ySize); 19 | public: 20 | const UStringVector *Messages; 21 | 22 | INT_PTR Create(HWND parent = 0) { return CModalDialog::Create(IDD_MESSAGES, parent); } 23 | }; 24 | 25 | #endif 26 | -------------------------------------------------------------------------------- /p7zip_16.02/CPP/7zip/UI/FileManager/MessagesDialogRes.h: -------------------------------------------------------------------------------- 1 | #define IDD_MESSAGES 6602 2 | #define IDS_MESSAGE 6603 3 | #define IDL_MESSAGE 100 4 | -------------------------------------------------------------------------------- /p7zip_16.02/CPP/7zip/UI/FileManager/OverwriteDialogRes.h: -------------------------------------------------------------------------------- 1 | #define IDD_OVERWRITE 3500 2 | #define IDD_OVERWRITE_2 13500 3 | 4 | #define IDT_OVERWRITE_HEADER 3501 5 | #define IDT_OVERWRITE_QUESTION_BEGIN 3502 6 | #define IDT_OVERWRITE_QUESTION_END 3503 7 | #define IDS_FILE_SIZE 3504 8 | 9 | #define IDB_AUTO_RENAME 3505 10 | #define IDB_YES_TO_ALL 440 11 | #define IDB_NO_TO_ALL 441 12 | 13 | #define IDI_OVERWRITE_OLD_FILE 100 14 | #define IDI_OVERWRITE_NEW_FILE 101 15 | 16 | #define IDT_OVERWRITE_OLD_FILE_SIZE_TIME 102 17 | #define IDT_OVERWRITE_NEW_FILE_SIZE_TIME 103 18 | -------------------------------------------------------------------------------- /p7zip_16.02/CPP/7zip/UI/FileManager/PasswordDialog.h: -------------------------------------------------------------------------------- 1 | // PasswordDialog.h 2 | 3 | #ifndef __PASSWORD_DIALOG_H 4 | #define __PASSWORD_DIALOG_H 5 | 6 | #include "../../../Windows/Control/Dialog.h" 7 | #include "../../../Windows/Control/Edit.h" 8 | 9 | #include "PasswordDialogRes.h" 10 | 11 | class CPasswordDialog: public NWindows::NControl::CModalDialog 12 | { 13 | NWindows::NControl::CEdit _passwordEdit; 14 | 15 | virtual void OnOK(); 16 | virtual bool OnInit(); 17 | virtual bool OnButtonClicked(int buttonID, HWND buttonHWND); 18 | void SetTextSpec(); 19 | void ReadControls(); 20 | public: 21 | UString Password; 22 | bool ShowPassword; 23 | 24 | CPasswordDialog(): ShowPassword(false) {} 25 | INT_PTR Create(HWND parentWindow = 0) { return CModalDialog::Create(IDD_PASSWORD, parentWindow); } 26 | }; 27 | 28 | #endif 29 | -------------------------------------------------------------------------------- /p7zip_16.02/CPP/7zip/UI/FileManager/PasswordDialogRes.h: -------------------------------------------------------------------------------- 1 | #define IDD_PASSWORD 3800 2 | #define IDT_PASSWORD_ENTER 3801 3 | #define IDX_PASSWORD_SHOW 3803 4 | 5 | #define IDE_PASSWORD_PASSWORD 120 6 | -------------------------------------------------------------------------------- /p7zip_16.02/CPP/7zip/UI/FileManager/PluginInterface.h: -------------------------------------------------------------------------------- 1 | // PluginInterface.h 2 | 3 | #ifndef __PLUGIN_INTERFACE_H 4 | #define __PLUGIN_INTERFACE_H 5 | 6 | /* 7 | #include "../../../Common/Types.h" 8 | #include "../../IDecl.h" 9 | 10 | #define PLUGIN_INTERFACE(i, x) DECL_INTERFACE(i, 0x0A, x) 11 | 12 | PLUGIN_INTERFACE(IInitContextMenu, 0x00) 13 | { 14 | STDMETHOD(InitContextMenu)(const wchar_t *folder, const wchar_t * const *names, UInt32 numFiles) PURE; 15 | }; 16 | 17 | PLUGIN_INTERFACE(IPluginOptionsCallback, 0x01) 18 | { 19 | STDMETHOD(GetProgramFolderPath)(BSTR *value) PURE; 20 | STDMETHOD(GetProgramPath)(BSTR *value) PURE; 21 | STDMETHOD(GetRegistryCUPath)(BSTR *value) PURE; 22 | }; 23 | 24 | PLUGIN_INTERFACE(IPluginOptions, 0x02) 25 | { 26 | STDMETHOD(PluginOptions)(HWND hWnd, IPluginOptionsCallback *callback) PURE; 27 | // STDMETHOD(GetFileExtensions)(BSTR *extensions) PURE; 28 | }; 29 | */ 30 | 31 | #endif 32 | -------------------------------------------------------------------------------- /p7zip_16.02/CPP/7zip/UI/FileManager/PluginLoader.h: -------------------------------------------------------------------------------- 1 | // PluginLoader.h 2 | 3 | #ifndef __PLUGIN_LOADER_H 4 | #define __PLUGIN_LOADER_H 5 | 6 | #include "../../../Windows/DLL.h" 7 | 8 | #include "IFolder.h" 9 | 10 | class CPluginLibrary: public NWindows::NDLL::CLibrary 11 | { 12 | public: 13 | HRESULT CreateManager(REFGUID clsID, IFolderManager **manager) 14 | { 15 | Func_CreateObject createObject = (Func_CreateObject)GetProc("CreateObject"); 16 | if (!createObject) 17 | return GetLastError(); 18 | return createObject(&clsID, &IID_IFolderManager, (void **)manager); 19 | } 20 | HRESULT LoadAndCreateManager(CFSTR filePath, REFGUID clsID, IFolderManager **manager) 21 | { 22 | if (!Load(filePath)) 23 | return GetLastError(); 24 | return CreateManager(clsID, manager); 25 | } 26 | }; 27 | 28 | #endif 29 | -------------------------------------------------------------------------------- /p7zip_16.02/CPP/7zip/UI/FileManager/ProgramLocation.cpp: -------------------------------------------------------------------------------- 1 | // ProgramLocation.cpp 2 | 3 | #include "StdAfx.h" 4 | -------------------------------------------------------------------------------- /p7zip_16.02/CPP/7zip/UI/FileManager/ProgramLocation.h: -------------------------------------------------------------------------------- 1 | // ProgramLocation.h 2 | 3 | #ifndef __PROGRAM_LOCATION_H 4 | #define __PROGRAM_LOCATION_H 5 | 6 | #endif 7 | -------------------------------------------------------------------------------- /p7zip_16.02/CPP/7zip/UI/FileManager/ProgressDialogRes.h: -------------------------------------------------------------------------------- 1 | #define IDD_PROGRESS 97 2 | 3 | #define IDC_PROGRESS1 100 4 | -------------------------------------------------------------------------------- /p7zip_16.02/CPP/7zip/UI/FileManager/PropertyName.cpp: -------------------------------------------------------------------------------- 1 | // PropertyName.cpp 2 | 3 | #include "StdAfx.h" 4 | 5 | #include "../../../Common/IntToString.h" 6 | 7 | #include "LangUtils.h" 8 | #include "PropertyName.h" 9 | 10 | UString GetNameOfProperty(PROPID propID, const wchar_t *name) 11 | { 12 | if (propID < 1000) 13 | { 14 | UString s = LangString(1000 + propID); 15 | if (!s.IsEmpty()) 16 | return s; 17 | } 18 | if (name) 19 | return name; 20 | wchar_t temp[16]; 21 | ConvertUInt32ToString(propID, temp); 22 | return temp; 23 | } 24 | -------------------------------------------------------------------------------- /p7zip_16.02/CPP/7zip/UI/FileManager/PropertyName.h: -------------------------------------------------------------------------------- 1 | // PropertyName.h 2 | 3 | #ifndef __PROPERTY_NAME_H 4 | #define __PROPERTY_NAME_H 5 | 6 | #include "../../../Common/MyString.h" 7 | 8 | UString GetNameOfProperty(PROPID propID, const wchar_t *name); 9 | 10 | #endif 11 | -------------------------------------------------------------------------------- /p7zip_16.02/CPP/7zip/UI/FileManager/RegistryPlugins.h: -------------------------------------------------------------------------------- 1 | // RegistryPlugins.h 2 | 3 | #ifndef __REGISTRY_PLUGINS_H 4 | #define __REGISTRY_PLUGINS_H 5 | 6 | #include "../../../Common/MyString.h" 7 | 8 | enum EPluginType 9 | { 10 | kPluginTypeFF = 0 11 | }; 12 | 13 | struct CPluginInfo 14 | { 15 | FString FilePath; 16 | EPluginType Type; 17 | UString Name; 18 | CLSID ClassID; 19 | CLSID OptionsClassID; 20 | bool ClassIDDefined; 21 | bool OptionsClassIDDefined; 22 | 23 | // CSysString Extension; 24 | // CSysString AddExtension; 25 | // bool UpdateEnabled; 26 | // bool KeepName; 27 | }; 28 | 29 | void ReadPluginInfoList(CObjectVector &plugins); 30 | void ReadFileFolderPluginInfoList(CObjectVector &plugins); 31 | 32 | #endif 33 | -------------------------------------------------------------------------------- /p7zip_16.02/CPP/7zip/UI/FileManager/RootFolder.h: -------------------------------------------------------------------------------- 1 | // RootFolder.h 2 | 3 | #ifndef __ROOT_FOLDER_H 4 | #define __ROOT_FOLDER_H 5 | 6 | #include "../../../Common/MyString.h" 7 | 8 | #include "IFolder.h" 9 | 10 | const unsigned kNumRootFolderItems_Max = 4; 11 | 12 | class CRootFolder: 13 | public IFolderFolder, 14 | public IFolderGetSystemIconIndex, 15 | public CMyUnknownImp 16 | { 17 | UString _names[kNumRootFolderItems_Max]; 18 | int _iconIndices[kNumRootFolderItems_Max]; 19 | 20 | public: 21 | MY_UNKNOWN_IMP1(IFolderGetSystemIconIndex) 22 | INTERFACE_FolderFolder(;) 23 | STDMETHOD(GetSystemIconIndex)(UInt32 index, Int32 *iconIndex); 24 | void Init(); 25 | }; 26 | 27 | #endif 28 | -------------------------------------------------------------------------------- /p7zip_16.02/CPP/7zip/UI/FileManager/SplitDialog.h: -------------------------------------------------------------------------------- 1 | // SplitDialog.h 2 | 3 | #ifndef __SPLIT_DIALOG_H 4 | #define __SPLIT_DIALOG_H 5 | 6 | #include "../../../Windows/Control/Dialog.h" 7 | #include "../../../Windows/Control/ComboBox.h" 8 | 9 | #include "SplitDialogRes.h" 10 | 11 | class CSplitDialog: public NWindows::NControl::CModalDialog 12 | { 13 | NWindows::NControl::CComboBox _pathCombo; 14 | NWindows::NControl::CComboBox _volumeCombo; 15 | virtual void OnOK(); 16 | virtual bool OnInit(); 17 | virtual bool OnSize(WPARAM wParam, int xSize, int ySize); 18 | virtual bool OnButtonClicked(int buttonID, HWND buttonHWND); 19 | void OnButtonSetPath(); 20 | public: 21 | UString FilePath; 22 | UString Path; 23 | CRecordVector VolumeSizes; 24 | INT_PTR Create(HWND parentWindow = 0) 25 | { return CModalDialog::Create(IDD_SPLIT, parentWindow); } 26 | }; 27 | 28 | #endif 29 | -------------------------------------------------------------------------------- /p7zip_16.02/CPP/7zip/UI/FileManager/SplitDialogRes.h: -------------------------------------------------------------------------------- 1 | #define IDD_SPLIT 7300 2 | 3 | #define IDT_SPLIT_PATH 7301 4 | #define IDT_SPLIT_VOLUME 7302 5 | 6 | #define IDC_SPLIT_PATH 100 7 | #define IDB_SPLIT_PATH 101 8 | #define IDC_SPLIT_VOLUME 102 9 | -------------------------------------------------------------------------------- /p7zip_16.02/CPP/7zip/UI/FileManager/SplitUtils.h: -------------------------------------------------------------------------------- 1 | // SplitUtils.h 2 | 3 | #ifndef __SPLIT_UTILS_H 4 | #define __SPLIT_UTILS_H 5 | 6 | #include "../../../Common/MyTypes.h" 7 | #include "../../../Common/MyString.h" 8 | 9 | #include "../../../Windows/Control/ComboBox.h" 10 | 11 | bool ParseVolumeSizes(const UString &s, CRecordVector &values); 12 | void AddVolumeItems(NWindows::NControl::CComboBox &volumeCombo); 13 | UInt64 GetNumberOfVolumes(UInt64 size, const CRecordVector &volSizes); 14 | 15 | #endif 16 | -------------------------------------------------------------------------------- /p7zip_16.02/CPP/7zip/UI/FileManager/StringUtils.h: -------------------------------------------------------------------------------- 1 | // StringUtils.h 2 | 3 | #ifndef __STRING_UTILS_H 4 | #define __STRING_UTILS_H 5 | 6 | #include "../../../Common/MyString.h" 7 | 8 | void SplitStringToTwoStrings(const UString &src, UString &dest1, UString &dest2); 9 | 10 | void SplitString(const UString &srcString, UStringVector &destStrings); 11 | UString JoinStrings(const UStringVector &srcStrings); 12 | 13 | #endif 14 | -------------------------------------------------------------------------------- /p7zip_16.02/CPP/7zip/UI/FileManager/TextPairs.h: -------------------------------------------------------------------------------- 1 | // TextPairs.h 2 | 3 | #ifndef __FM_TEXT_PAIRS_H 4 | #define __FM_TEXT_PAIRS_H 5 | 6 | #include "../../../Common/MyString.h" 7 | 8 | struct CTextPair 9 | { 10 | UString ID; 11 | UString Value; 12 | }; 13 | 14 | class CPairsStorage 15 | { 16 | CObjectVector Pairs; 17 | 18 | int FindID(const UString &id, int &insertPos) const; 19 | int FindID(const UString &id) const; 20 | void Sort(); 21 | public: 22 | void Clear() { Pairs.Clear(); } 23 | bool ReadFromString(const UString &text); 24 | void SaveToString(UString &text) const; 25 | 26 | bool GetValue(const UString &id, UString &value) const; 27 | UString GetValue(const UString &id) const; 28 | void AddPair(const CTextPair &pair); 29 | void DeletePair(const UString &id); 30 | }; 31 | 32 | #endif 33 | -------------------------------------------------------------------------------- /p7zip_16.02/CPP/7zip/UI/FileManager/makefile: -------------------------------------------------------------------------------- 1 | 2 | TARGET_FLAGS=`wx-config --unicode=yes --cxxflags` 3 | 4 | include ../../../../makefile.crc32 5 | include ../../../../makefile.machine 6 | 7 | LIBS=`wx-config --unicode=yes --libs` $(LOCAL_LIBS_DLL) 8 | 9 | include ../../../../makefile.glb 10 | 11 | -------------------------------------------------------------------------------- /p7zip_16.02/CPP/7zip/UI/FileManager/makefile.depend: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tehmul/p7zip-zstd/e72c479f922f22f79c7adcc91b03fa4f37861372/p7zip_16.02/CPP/7zip/UI/FileManager/makefile.depend -------------------------------------------------------------------------------- /p7zip_16.02/CPP/7zip/UI/FileManager/resourceGui.h: -------------------------------------------------------------------------------- 1 | #define IDI_ICON 1 2 | 3 | #define IDS_MESSAGE_NO_ERRORS 3001 4 | 5 | #define IDS_PROGRESS_TESTING 3302 6 | #define IDS_OPENNING 3303 7 | #define IDS_SCANNING 3304 8 | 9 | #define IDS_CHECKSUM_CALCULATING 7500 10 | #define IDS_CHECKSUM_INFORMATION 7501 11 | #define IDS_CHECKSUM_CRC_DATA 7502 12 | #define IDS_CHECKSUM_CRC_DATA_NAMES 7503 13 | #define IDS_CHECKSUM_CRC_STREAMS_NAMES 7504 14 | 15 | #define IDS_INCORRECT_VOLUME_SIZE 7307 16 | -------------------------------------------------------------------------------- /p7zip_16.02/CPP/7zip/UI/GUI/ExtractDialogRes.h: -------------------------------------------------------------------------------- 1 | #define IDD_EXTRACT 3400 2 | #define IDD_EXTRACT_2 13400 3 | 4 | #define IDC_EXTRACT_PATH 100 5 | #define IDB_EXTRACT_SET_PATH 101 6 | #define IDC_EXTRACT_PATH_MODE 102 7 | #define IDC_EXTRACT_OVERWRITE_MODE 103 8 | 9 | #define IDE_EXTRACT_PASSWORD 120 10 | 11 | #define IDE_EXTRACT_NAME 130 12 | #define IDX_EXTRACT_NAME_ENABLE 131 13 | 14 | 15 | #define IDT_EXTRACT_EXTRACT_TO 3401 16 | #define IDT_EXTRACT_PATH_MODE 3410 17 | #define IDT_EXTRACT_OVERWRITE_MODE 3420 18 | 19 | #define IDX_EXTRACT_ELIM_DUP 3430 20 | #define IDX_EXTRACT_NT_SECUR 3431 21 | // #define IDX_EXTRACT_ALT_STREAMS 3432 22 | 23 | #define IDX_PASSWORD_SHOW 3803 24 | #define IDG_PASSWORD 3807 25 | -------------------------------------------------------------------------------- /p7zip_16.02/CPP/7zip/UI/GUI/HashGUI.h: -------------------------------------------------------------------------------- 1 | // HashGUI.h 2 | 3 | #ifndef __HASH_GUI_H 4 | #define __HASH_GUI_H 5 | 6 | #include "../Common/HashCalc.h" 7 | 8 | HRESULT HashCalcGUI( 9 | DECL_EXTERNAL_CODECS_LOC_VARS 10 | const NWildcard::CCensor &censor, 11 | const CHashOptions &options, 12 | bool &messageWasDisplayed); 13 | 14 | void AddHashBundleRes(UString &s, const CHashBundle &hb, const UString &firstFileName); 15 | 16 | #endif 17 | -------------------------------------------------------------------------------- /p7zip_16.02/CPP/7zip/UI/GUI/UpdateCallbackGUI.h: -------------------------------------------------------------------------------- 1 | // UpdateCallbackGUI.h 2 | 3 | #ifndef __UPDATE_CALLBACK_GUI_H 4 | #define __UPDATE_CALLBACK_GUI_H 5 | 6 | #include "../Common/Update.h" 7 | #include "../Common/ArchiveOpenCallback.h" 8 | 9 | #include "UpdateCallbackGUI2.h" 10 | 11 | class CUpdateCallbackGUI: 12 | public IOpenCallbackUI, 13 | public IUpdateCallbackUI2, 14 | public CUpdateCallbackGUI2 15 | { 16 | public: 17 | // CUpdateCallbackGUI(); 18 | // ~CUpdateCallbackGUI(); 19 | 20 | bool AskPassword; 21 | 22 | void Init(); 23 | 24 | CUpdateCallbackGUI(): 25 | AskPassword(false) 26 | {} 27 | 28 | INTERFACE_IUpdateCallbackUI2(;) 29 | INTERFACE_IOpenCallbackUI(;) 30 | 31 | FStringVector FailedFiles; 32 | }; 33 | 34 | #endif 35 | -------------------------------------------------------------------------------- /p7zip_16.02/CPP/7zip/UI/GUI/UpdateCallbackGUI2.h: -------------------------------------------------------------------------------- 1 | // UpdateCallbackGUI2.h 2 | 3 | #ifndef __UPDATE_CALLBACK_GUI2_H 4 | #define __UPDATE_CALLBACK_GUI2_H 5 | 6 | #include "../FileManager/ProgressDialog2.h" 7 | 8 | class CUpdateCallbackGUI2 9 | { 10 | UStringVector _lang_Ops; 11 | UString _emptyString; 12 | public: 13 | UString Password; 14 | bool PasswordIsDefined; 15 | bool PasswordWasAsked; 16 | UInt64 NumFiles; 17 | 18 | UString _lang_Removing; 19 | 20 | CUpdateCallbackGUI2(): 21 | PasswordIsDefined(false), 22 | PasswordWasAsked(false), 23 | NumFiles(0) 24 | {} 25 | 26 | // ~CUpdateCallbackGUI2(); 27 | void Init(); 28 | 29 | CProgressDialog *ProgressDialog; 30 | 31 | HRESULT SetOperation_Base(UInt32 notifyOp, const wchar_t *name, bool isDir); 32 | HRESULT ShowAskPasswordDialog(); 33 | }; 34 | 35 | #endif 36 | -------------------------------------------------------------------------------- /p7zip_16.02/CPP/7zip/UI/GUI/makefile.depend: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tehmul/p7zip-zstd/e72c479f922f22f79c7adcc91b03fa4f37861372/p7zip_16.02/CPP/7zip/UI/GUI/makefile.depend -------------------------------------------------------------------------------- /p7zip_16.02/CPP/7zip/UI/GUI/resource2.h: -------------------------------------------------------------------------------- 1 | #define IDS_PROGRESS_COMPRESSING 3301 2 | #define IDS_ARCHIVES_COLON 3907 3 | -------------------------------------------------------------------------------- /p7zip_16.02/CPP/7zip/UI/GUI/resource3.h: -------------------------------------------------------------------------------- 1 | #define IDS_PROGRESS_REMOVE 3305 2 | 3 | #define IDS_PROGRESS_ADD 3320 4 | #define IDS_PROGRESS_UPDATE 3321 5 | #define IDS_PROGRESS_ANALYZE 3322 6 | #define IDS_PROGRESS_REPLICATE 3323 7 | #define IDS_PROGRESS_REPACK 3324 8 | 9 | #define IDS_PROGRESS_DELETE 3326 10 | #define IDS_PROGRESS_HEADER 3327 11 | -------------------------------------------------------------------------------- /p7zip_16.02/CPP/7zip/UI/P7ZIP/makefile: -------------------------------------------------------------------------------- 1 | 2 | TARGET_FLAGS=`wx-config --unicode=yes --cxxflags` 3 | 4 | include ../../../../makefile.crc32 5 | include ../../../../makefile.machine 6 | 7 | LIBS=`wx-config --unicode=yes --libs` $(LOCAL_LIBS_DLL) 8 | 9 | include ../../../../makefile.glb 10 | 11 | -------------------------------------------------------------------------------- /p7zip_16.02/CPP/7zip/UI/P7ZIP/makefile.depend: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tehmul/p7zip-zstd/e72c479f922f22f79c7adcc91b03fa4f37861372/p7zip_16.02/CPP/7zip/UI/P7ZIP/makefile.depend -------------------------------------------------------------------------------- /p7zip_16.02/CPP/ANDROID/7z/jni/Application.mk: -------------------------------------------------------------------------------- 1 | # The ARMv7 is significanly faster due to the use of the hardware FPU 2 | APP_ABI := armeabi # armeabi-v7a 3 | #APP_PLATFORM := android-8 4 | -------------------------------------------------------------------------------- /p7zip_16.02/CPP/ANDROID/7z/makefile: -------------------------------------------------------------------------------- 1 | 2 | TARGET=7z 3 | 4 | include ../makefile.inc 5 | 6 | test: install 7 | adb shell $(DEVICE_DIR)/$(TARGET) b 8 | 9 | test_all: install 10 | adb push ../../../check/test/7za433_7zip_lzma.7z $(DEVICE_DIR) 11 | adb shell $(DEVICE_DIR)/7za t $(DEVICE_DIR)/7za433_7zip_lzma.7z 12 | 13 | -------------------------------------------------------------------------------- /p7zip_16.02/CPP/ANDROID/7za/jni/Application.mk: -------------------------------------------------------------------------------- 1 | # The ARMv7 is significanly faster due to the use of the hardware FPU 2 | APP_ABI := armeabi 3 | # p7zip armeabi and armeabi-v7a run at the same speed (p7zip does not use FPU) 4 | # APP_ABI := armeabi armeabi-v7a 5 | #APP_PLATFORM := android-8 6 | -------------------------------------------------------------------------------- /p7zip_16.02/CPP/ANDROID/7zr/jni/Application.mk: -------------------------------------------------------------------------------- 1 | # The ARMv7 is significanly faster due to the use of the hardware FPU 2 | APP_ABI := armeabi 3 | # p7zip armeabi and armeabi-v7a run at the same speed (p7zip does not use FPU) 4 | # APP_ABI := armeabi armeabi-v7a 5 | #APP_PLATFORM := android-8 6 | -------------------------------------------------------------------------------- /p7zip_16.02/CPP/ANDROID/Format7zFree/jni/Application.mk: -------------------------------------------------------------------------------- 1 | # The ARMv7 is significanly faster due to the use of the hardware FPU 2 | APP_ABI := armeabi # armeabi-v7a 3 | #APP_PLATFORM := android-8 4 | -------------------------------------------------------------------------------- /p7zip_16.02/CPP/ANDROID/Format7zFree/makefile: -------------------------------------------------------------------------------- 1 | 2 | TARGET=lib7z.so 3 | 4 | all: build 5 | 6 | include ../makefile.inc 7 | 8 | install:: 9 | adb shell mv $(DEVICE_DIR)/$(TARGET) $(DEVICE_DIR)/7z.so 10 | 11 | -------------------------------------------------------------------------------- /p7zip_16.02/CPP/ANDROID/Lzham/jni/Application.mk: -------------------------------------------------------------------------------- 1 | # The ARMv7 is significanly faster due to the use of the hardware FPU 2 | APP_ABI := armeabi # armeabi-v7a 3 | #APP_PLATFORM := android-8 4 | -------------------------------------------------------------------------------- /p7zip_16.02/CPP/ANDROID/Lzham/makefile: -------------------------------------------------------------------------------- 1 | 2 | TARGET=lzham 3 | 4 | all: build 5 | 6 | include ../makefile.inc 7 | 8 | -------------------------------------------------------------------------------- /p7zip_16.02/CPP/ANDROID/Lzham/obj/local/armeabi/objs/Lzham/__/__/__/__/CPP/7zip/Common/StreamUtils.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tehmul/p7zip-zstd/e72c479f922f22f79c7adcc91b03fa4f37861372/p7zip_16.02/CPP/ANDROID/Lzham/obj/local/armeabi/objs/Lzham/__/__/__/__/CPP/7zip/Common/StreamUtils.o -------------------------------------------------------------------------------- /p7zip_16.02/CPP/ANDROID/Lzham/obj/local/armeabi/objs/Lzham/__/__/__/__/CPP/7zip/Compress/CodecExports.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tehmul/p7zip-zstd/e72c479f922f22f79c7adcc91b03fa4f37861372/p7zip_16.02/CPP/ANDROID/Lzham/obj/local/armeabi/objs/Lzham/__/__/__/__/CPP/7zip/Compress/CodecExports.o -------------------------------------------------------------------------------- /p7zip_16.02/CPP/ANDROID/Lzham/obj/local/armeabi/objs/Lzham/__/__/__/__/CPP/7zip/Compress/DllExportsCompress.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tehmul/p7zip-zstd/e72c479f922f22f79c7adcc91b03fa4f37861372/p7zip_16.02/CPP/ANDROID/Lzham/obj/local/armeabi/objs/Lzham/__/__/__/__/CPP/7zip/Compress/DllExportsCompress.o -------------------------------------------------------------------------------- /p7zip_16.02/CPP/ANDROID/MemLat/jni/Android.mk: -------------------------------------------------------------------------------- 1 | # 2 | # build MemLat for armeabi and armeabi-v7a CPU 3 | # 4 | 5 | 6 | LOCAL_PATH := $(call my-dir) 7 | 8 | include $(CLEAR_VARS) 9 | LOCAL_MODULE := MemLat 10 | LOCAL_CFLAGS := -DANDROID_NDK -fexceptions \ 11 | -DNDEBUG -D_REENTRANT -DENV_UNIX \ 12 | -DNUM_DIRECT_TESTS=6 -DNUM_PAR_TESTS=5 \ 13 | -I../../../../Utils/CPUTest/MemLat 14 | 15 | 16 | LOCAL_SRC_FILES := \ 17 | ../../../../Utils/CPUTest/MemLat/MemLat.cpp \ 18 | ../../../../Utils/CPUTest/MemLat/Walk.c 19 | 20 | include $(BUILD_EXECUTABLE) 21 | -------------------------------------------------------------------------------- /p7zip_16.02/CPP/ANDROID/MemLat/jni/Application.mk: -------------------------------------------------------------------------------- 1 | # The ARMv7 is significanly faster due to the use of the hardware FPU 2 | APP_ABI := armeabi # armeabi-v7a 3 | #APP_PLATFORM := android-8 4 | -------------------------------------------------------------------------------- /p7zip_16.02/CPP/ANDROID/MemLat/makefile: -------------------------------------------------------------------------------- 1 | 2 | TARGET=MemLat 3 | 4 | all: build 5 | 6 | include ../makefile.inc 7 | 8 | 9 | test: install 10 | adb shell $(DEVICE_DIR)/$(TARGET) 4 p5 n 11 | 12 | # simple memlat test: 13 | # MemLat 4 p5 n 14 | 15 | -------------------------------------------------------------------------------- /p7zip_16.02/CPP/ANDROID/PipeLen/jni/Android.mk: -------------------------------------------------------------------------------- 1 | # 2 | # build PipeLen for armeabi and armeabi-v7a CPU 3 | # 4 | 5 | 6 | LOCAL_PATH := $(call my-dir) 7 | 8 | include $(CLEAR_VARS) 9 | LOCAL_MODULE := PipeLen 10 | LOCAL_CFLAGS := -DANDROID_NDK -fexceptions \ 11 | -DNDEBUG -D_REENTRANT -DENV_UNIX \ 12 | -DUNICODE \ 13 | -D_UNICODE \ 14 | -I../../../../Utils/CPUTest/PipeLen 15 | 16 | 17 | LOCAL_SRC_FILES := \ 18 | ../../../../Utils/CPUTest/PipeLen/PipeLen.cpp 19 | 20 | include $(BUILD_EXECUTABLE) 21 | -------------------------------------------------------------------------------- /p7zip_16.02/CPP/ANDROID/PipeLen/jni/Application.mk: -------------------------------------------------------------------------------- 1 | # The ARMv7 is significanly faster due to the use of the hardware FPU 2 | APP_ABI := armeabi # armeabi-v7a 3 | #APP_PLATFORM := android-8 4 | -------------------------------------------------------------------------------- /p7zip_16.02/CPP/ANDROID/PipeLen/makefile: -------------------------------------------------------------------------------- 1 | 2 | TARGET=PipeLen 3 | 4 | all: build 5 | 6 | include ../makefile.inc 7 | 8 | 9 | test: install 10 | adb shell $(DEVICE_DIR)/$(TARGET) r0 n 11 | 12 | # One pipelen test: 13 | # pipelen r0 n 14 | # All pipelen tests (too long) : 15 | # pipelen n 16 | 17 | -------------------------------------------------------------------------------- /p7zip_16.02/CPP/ANDROID/makefile: -------------------------------------------------------------------------------- 1 | 2 | 3 | all: 4 | $(MAKE) -C 7za all 5 | $(MAKE) -C 7z all 6 | $(MAKE) -C 7zr all 7 | $(MAKE) -C Format7zFree all 8 | $(MAKE) -C test_lib all 9 | $(MAKE) -C MemLat all 10 | $(MAKE) -C PipeLen all 11 | 12 | clean: 13 | $(MAKE) -C 7za clean 14 | $(MAKE) -C 7z clean 15 | $(MAKE) -C 7zr clean 16 | $(MAKE) -C Format7zFree clean 17 | $(MAKE) -C test_lib clean 18 | $(MAKE) -C MemLat clean 19 | $(MAKE) -C PipeLen clean 20 | 21 | install: all 22 | $(MAKE) -C 7za install 23 | $(MAKE) -C 7z install 24 | $(MAKE) -C 7zr install 25 | $(MAKE) -C Format7zFree install 26 | $(MAKE) -C test_lib install 27 | $(MAKE) -C MemLat install 28 | $(MAKE) -C PipeLen install 29 | 30 | 31 | -------------------------------------------------------------------------------- /p7zip_16.02/CPP/ANDROID/makefile.inc: -------------------------------------------------------------------------------- 1 | 2 | # For emulator 3 | # DEVICE_DIR=/data/app 4 | 5 | # DEVICE_DIR=/sdcard/P7ZIP # cannot do "chmod 777" 6 | 7 | # For ACER ICONIA A500 8 | # For SAMSUNG S II 9 | # DEVICE_DIR=/data/local/P7ZIP 10 | 11 | # For Samsung Galaxy Note 3 12 | DEVICE_DIR=/data/local/tmp/P7ZIP 13 | 14 | all: build 15 | 16 | build: 17 | cd jni ; ndk-build NDK_DEBUG=0 V=1 18 | 19 | install:: 20 | adb shell mkdir $(DEVICE_DIR) 21 | adb push ./libs/armeabi/$(TARGET) $(DEVICE_DIR) 22 | adb shell chmod 777 $(DEVICE_DIR)/$(TARGET) 23 | 24 | # adb push ./libs/armeabi-v7a/$(TARGET) $(DEVICE_DIR)/$(TARGET)-v7a 25 | # adb shell chmod 777 $(DEVICE_DIR)/$(TARGET)-v7a 26 | 27 | 28 | mkdir: 29 | adb shell mkdir $(DEVICE_DIR) 30 | 31 | clean: 32 | rm -fr libs obj 33 | 34 | -------------------------------------------------------------------------------- /p7zip_16.02/CPP/ANDROID/test_lib/jni/Application.mk: -------------------------------------------------------------------------------- 1 | # The ARMv7 is significanly faster due to the use of the hardware FPU 2 | APP_ABI := armeabi # armeabi-v7a 3 | #APP_PLATFORM := android-8 4 | -------------------------------------------------------------------------------- /p7zip_16.02/CPP/ANDROID/test_lib/makefile: -------------------------------------------------------------------------------- 1 | 2 | TARGET=test_lib 3 | 4 | all: build 5 | 6 | include ../makefile.inc 7 | 8 | 9 | test: install 10 | adb shell $(DEVICE_DIR)/$(TARGET) 11 | 12 | -------------------------------------------------------------------------------- /p7zip_16.02/CPP/Common/AutoPtr.h: -------------------------------------------------------------------------------- 1 | // Common/AutoPtr.h 2 | 3 | #ifndef __COMMON_AUTOPTR_H 4 | #define __COMMON_AUTOPTR_H 5 | 6 | template class CMyAutoPtr 7 | { 8 | T *_p; 9 | public: 10 | CMyAutoPtr(T *p = 0) : _p(p) {} 11 | CMyAutoPtr(CMyAutoPtr& p): _p(p.release()) {} 12 | CMyAutoPtr& operator=(CMyAutoPtr& p) 13 | { 14 | reset(p.release()); 15 | return (*this); 16 | } 17 | ~CMyAutoPtr() { delete _p; } 18 | T& operator*() const { return *_p; } 19 | // T* operator->() const { return (&**this); } 20 | T* get() const { return _p; } 21 | T* release() 22 | { 23 | T *tmp = _p; 24 | _p = 0; 25 | return tmp; 26 | } 27 | void reset(T* p = 0) 28 | { 29 | if (p != _p) 30 | delete _p; 31 | _p = p; 32 | } 33 | }; 34 | 35 | #endif 36 | -------------------------------------------------------------------------------- /p7zip_16.02/CPP/Common/CRC.cpp: -------------------------------------------------------------------------------- 1 | // Common/CRC.cpp 2 | 3 | #include "StdAfx.h" 4 | 5 | #include "../../C/7zCrc.h" 6 | 7 | struct CCRCTableInit { CCRCTableInit() { CrcGenerateTable(); } } g_CRCTableInit; 8 | -------------------------------------------------------------------------------- /p7zip_16.02/CPP/Common/ComTry.h: -------------------------------------------------------------------------------- 1 | // ComTry.h 2 | 3 | #ifndef __COM_TRY_H 4 | #define __COM_TRY_H 5 | 6 | #include "MyWindows.h" 7 | // #include "Exception.h" 8 | // #include "NewHandler.h" 9 | 10 | #define COM_TRY_BEGIN try { 11 | #define COM_TRY_END } catch(const char * s) { throw s ; } \ 12 | catch(...) { return E_OUTOFMEMORY; } 13 | 14 | // catch(const CNewException &) { return E_OUTOFMEMORY; } 15 | // catch(const CSystemException &e) { return e.ErrorCode; } 16 | // catch(...) { return E_FAIL; } 17 | 18 | #endif 19 | -------------------------------------------------------------------------------- /p7zip_16.02/CPP/Common/Common.h: -------------------------------------------------------------------------------- 1 | // Common.h 2 | 3 | #ifndef __COMMON_COMMON_H 4 | #define __COMMON_COMMON_H 5 | 6 | #include "../../C/Compiler.h" 7 | 8 | #include "MyWindows.h" 9 | #include "NewHandler.h" 10 | 11 | #define ARRAY_SIZE(a) (sizeof(a) / sizeof((a)[1])) 12 | 13 | #endif 14 | -------------------------------------------------------------------------------- /p7zip_16.02/CPP/Common/Defs.h: -------------------------------------------------------------------------------- 1 | // Common/Defs.h 2 | 3 | #ifndef __COMMON_DEFS_H 4 | #define __COMMON_DEFS_H 5 | 6 | template inline T MyMin(T a, T b) { return a < b ? a : b; } 7 | template inline T MyMax(T a, T b) { return a > b ? a : b; } 8 | 9 | template inline int MyCompare(T a, T b) 10 | { return a == b ? 0 : (a < b ? -1 : 1); } 11 | 12 | inline int BoolToInt(bool v) { return (v ? 1 : 0); } 13 | inline bool IntToBool(int v) { return (v != 0); } 14 | 15 | #endif 16 | -------------------------------------------------------------------------------- /p7zip_16.02/CPP/Common/DynLimBuf.h: -------------------------------------------------------------------------------- 1 | // Common/DynLimBuf.h 2 | 3 | #ifndef __COMMON_DYN_LIM_BUF_H 4 | #define __COMMON_DYN_LIM_BUF_H 5 | 6 | #include 7 | 8 | #include "../../C/Alloc.h" 9 | 10 | #include "MyString.h" 11 | 12 | class CDynLimBuf 13 | { 14 | Byte *_chars; 15 | size_t _pos; 16 | size_t _size; 17 | size_t _sizeLimit; 18 | bool _error; 19 | 20 | CDynLimBuf(const CDynLimBuf &s); 21 | 22 | // ---------- forbidden functions ---------- 23 | CDynLimBuf &operator+=(wchar_t c); 24 | 25 | public: 26 | CDynLimBuf(size_t limit) throw(); 27 | ~CDynLimBuf() { MyFree(_chars); } 28 | 29 | size_t Len() const { return _pos; } 30 | void Empty() { _pos = 0; } 31 | 32 | operator const Byte *() const { return _chars; } 33 | // const char *Ptr() const { return _chars; } 34 | 35 | CDynLimBuf &operator+=(char c) throw(); 36 | CDynLimBuf &operator+=(const char *s) throw(); 37 | }; 38 | 39 | 40 | #endif 41 | -------------------------------------------------------------------------------- /p7zip_16.02/CPP/Common/IntToString.h: -------------------------------------------------------------------------------- 1 | // Common/IntToString.h 2 | 3 | #ifndef __COMMON_INT_TO_STRING_H 4 | #define __COMMON_INT_TO_STRING_H 5 | 6 | #include "MyTypes.h" 7 | 8 | void ConvertUInt32ToString(UInt32 value, char *s) throw(); 9 | void ConvertUInt64ToString(UInt64 value, char *s) throw(); 10 | 11 | void ConvertUInt32ToString(UInt32 value, wchar_t *s) throw(); 12 | void ConvertUInt64ToString(UInt64 value, wchar_t *s) throw(); 13 | 14 | void ConvertUInt64ToOct(UInt64 value, char *s) throw(); 15 | 16 | void ConvertUInt32ToHex(UInt32 value, char *s) throw(); 17 | void ConvertUInt64ToHex(UInt64 value, char *s) throw(); 18 | void ConvertUInt32ToHex8Digits(UInt32 value, char *s) throw(); 19 | // void ConvertUInt32ToHex8Digits(UInt32 value, wchar_t *s) throw(); 20 | 21 | void ConvertInt64ToString(Int64 value, char *s) throw(); 22 | void ConvertInt64ToString(Int64 value, wchar_t *s) throw(); 23 | 24 | #endif 25 | -------------------------------------------------------------------------------- /p7zip_16.02/CPP/Common/Lang.h: -------------------------------------------------------------------------------- 1 | // Common/Lang.h 2 | 3 | #ifndef __COMMON_LANG_H 4 | #define __COMMON_LANG_H 5 | 6 | #include "MyString.h" 7 | 8 | class CLang 9 | { 10 | wchar_t *_text; 11 | CRecordVector _ids; 12 | CRecordVector _offsets; 13 | 14 | bool OpenFromString(const AString &s); 15 | public: 16 | CLang(): _text(0) {} 17 | ~CLang() { Clear(); } 18 | bool Open(CFSTR fileName, const wchar_t *id); 19 | void Clear() throw(); 20 | const wchar_t *Get(UInt32 id) const throw(); 21 | }; 22 | 23 | #endif 24 | -------------------------------------------------------------------------------- /p7zip_16.02/CPP/Common/ListFileUtils.h: -------------------------------------------------------------------------------- 1 | // Common/ListFileUtils.h 2 | 3 | #ifndef __COMMON_LIST_FILE_UTILS_H 4 | #define __COMMON_LIST_FILE_UTILS_H 5 | 6 | #include "MyString.h" 7 | #include "MyTypes.h" 8 | 9 | #define MY__CP_UTF16 1200 10 | #define MY__CP_UTF16BE 1201 11 | 12 | bool ReadNamesFromListFile(CFSTR fileName, UStringVector &strings, UINT codePage = CP_OEMCP); 13 | 14 | #endif 15 | -------------------------------------------------------------------------------- /p7zip_16.02/CPP/Common/MyException.h: -------------------------------------------------------------------------------- 1 | // Common/Exception.h 2 | 3 | #ifndef __COMMON_EXCEPTION_H 4 | #define __COMMON_EXCEPTION_H 5 | 6 | #include "MyWindows.h" 7 | 8 | struct CSystemException 9 | { 10 | HRESULT ErrorCode; 11 | CSystemException(HRESULT errorCode): ErrorCode(errorCode) {} 12 | }; 13 | 14 | #endif 15 | -------------------------------------------------------------------------------- /p7zip_16.02/CPP/Common/MyMap.h: -------------------------------------------------------------------------------- 1 | // MyMap.h 2 | 3 | #ifndef __COMMON_MYMAP_H 4 | #define __COMMON_MYMAP_H 5 | 6 | #include "MyTypes.h" 7 | #include "MyVector.h" 8 | 9 | class CMap32 10 | { 11 | struct CNode 12 | { 13 | UInt32 Key; 14 | UInt32 Keys[2]; 15 | UInt32 Values[2]; 16 | UInt16 Len; 17 | Byte IsLeaf[2]; 18 | }; 19 | CRecordVector Nodes; 20 | 21 | public: 22 | 23 | void Clear() { Nodes.Clear(); } 24 | bool Find(UInt32 key, UInt32 &valueRes) const throw(); 25 | bool Set(UInt32 key, UInt32 value); // returns true, if there is such key already 26 | }; 27 | 28 | #endif 29 | -------------------------------------------------------------------------------- /p7zip_16.02/CPP/Common/MyTypes.h: -------------------------------------------------------------------------------- 1 | // Common/MyTypes.h 2 | 3 | #ifndef __COMMON_MY_TYPES_H 4 | #define __COMMON_MY_TYPES_H 5 | 6 | #include "../../C/7zTypes.h" 7 | 8 | typedef int HRes; 9 | 10 | #ifdef __cplusplus 11 | struct CBoolPair 12 | { 13 | bool Val; 14 | bool Def; 15 | 16 | CBoolPair(): Val(false), Def(false) {} 17 | 18 | void Init() 19 | { 20 | Val = false; 21 | Def = false; 22 | } 23 | 24 | void SetTrueTrue() 25 | { 26 | Val = true; 27 | Def = true; 28 | } 29 | }; 30 | 31 | #define CLASS_NO_COPY(cls) \ 32 | private: \ 33 | cls(const cls &); \ 34 | cls &operator=(const cls &); 35 | 36 | #endif 37 | 38 | #endif 39 | -------------------------------------------------------------------------------- /p7zip_16.02/CPP/Common/MyUnknown.h: -------------------------------------------------------------------------------- 1 | // MyUnknown.h 2 | 3 | #ifndef __MY_UNKNOWN_H 4 | #define __MY_UNKNOWN_H 5 | 6 | #include "MyWindows.h" 7 | 8 | /* 9 | #ifdef _WIN32 10 | #include 11 | #include 12 | #else 13 | #include "MyWindows.h" 14 | #endif 15 | */ 16 | 17 | #endif 18 | -------------------------------------------------------------------------------- /p7zip_16.02/CPP/Common/MyVector.cpp: -------------------------------------------------------------------------------- 1 | // Common/MyVector.cpp 2 | 3 | #include "StdAfx.h" 4 | -------------------------------------------------------------------------------- /p7zip_16.02/CPP/Common/NewHandler.cpp: -------------------------------------------------------------------------------- 1 | // NewHandler.cpp 2 | 3 | #include "StdAfx.h" 4 | 5 | #include "../../C/Alloc.h" 6 | 7 | 8 | #ifdef DONT_REDEFINE_NEW 9 | 10 | int g_NewHandler = 0; 11 | 12 | #else 13 | 14 | /* An overload function for the C++ new */ 15 | void * operator new(size_t size) 16 | { 17 | return MyAlloc(size); 18 | } 19 | 20 | /* An overload function for the C++ new[] */ 21 | void * operator new[](size_t size) 22 | { 23 | return MyAlloc(size); 24 | } 25 | 26 | /* An overload function for the C++ delete */ 27 | void operator delete(void *pnt) 28 | { 29 | MyFree(pnt); 30 | } 31 | 32 | /* An overload function for the C++ delete[] */ 33 | void operator delete[](void *pnt) 34 | { 35 | MyFree(pnt); 36 | } 37 | 38 | #endif 39 | 40 | -------------------------------------------------------------------------------- /p7zip_16.02/CPP/Common/Random.h: -------------------------------------------------------------------------------- 1 | // Common/Random.h 2 | 3 | #ifndef __COMMON_RANDOM_H 4 | #define __COMMON_RANDOM_H 5 | 6 | class CRandom 7 | { 8 | public: 9 | void Init(); 10 | void Init(unsigned int seed); 11 | int Generate() const; 12 | }; 13 | 14 | #endif 15 | -------------------------------------------------------------------------------- /p7zip_16.02/CPP/Common/Sha1Reg.cpp: -------------------------------------------------------------------------------- 1 | // Sha1Reg.cpp 2 | 3 | #include "StdAfx.h" 4 | 5 | #include "../../C/Sha1.h" 6 | 7 | #include "../Common/MyCom.h" 8 | 9 | #include "../7zip/Common/RegisterCodec.h" 10 | 11 | class CSha1Hasher: 12 | public IHasher, 13 | public CMyUnknownImp 14 | { 15 | CSha1 _sha; 16 | Byte mtDummy[1 << 7]; 17 | 18 | public: 19 | CSha1Hasher() { Sha1_Init(&_sha); } 20 | 21 | MY_UNKNOWN_IMP1(IHasher) 22 | INTERFACE_IHasher(;) 23 | }; 24 | 25 | STDMETHODIMP_(void) CSha1Hasher::Init() throw() 26 | { 27 | Sha1_Init(&_sha); 28 | } 29 | 30 | STDMETHODIMP_(void) CSha1Hasher::Update(const void *data, UInt32 size) throw() 31 | { 32 | Sha1_Update(&_sha, (const Byte *)data, size); 33 | } 34 | 35 | STDMETHODIMP_(void) CSha1Hasher::Final(Byte *digest) throw() 36 | { 37 | Sha1_Final(&_sha, digest); 38 | } 39 | 40 | REGISTER_HASHER(CSha1Hasher, 0x201, "SHA1", SHA1_DIGEST_SIZE) 41 | -------------------------------------------------------------------------------- /p7zip_16.02/CPP/Common/Sha256Reg.cpp: -------------------------------------------------------------------------------- 1 | // Sha256Reg.cpp 2 | 3 | #include "StdAfx.h" 4 | 5 | #include "../../C/Sha256.h" 6 | 7 | #include "../Common/MyCom.h" 8 | 9 | #include "../7zip/Common/RegisterCodec.h" 10 | 11 | class CSha256Hasher: 12 | public IHasher, 13 | public CMyUnknownImp 14 | { 15 | CSha256 _sha; 16 | Byte mtDummy[1 << 7]; 17 | 18 | public: 19 | CSha256Hasher() { Sha256_Init(&_sha); } 20 | 21 | MY_UNKNOWN_IMP1(IHasher) 22 | INTERFACE_IHasher(;) 23 | }; 24 | 25 | STDMETHODIMP_(void) CSha256Hasher::Init() throw() 26 | { 27 | Sha256_Init(&_sha); 28 | } 29 | 30 | STDMETHODIMP_(void) CSha256Hasher::Update(const void *data, UInt32 size) throw() 31 | { 32 | Sha256_Update(&_sha, (const Byte *)data, size); 33 | } 34 | 35 | STDMETHODIMP_(void) CSha256Hasher::Final(Byte *digest) throw() 36 | { 37 | Sha256_Final(&_sha, digest); 38 | } 39 | 40 | REGISTER_HASHER(CSha256Hasher, 0xA, "SHA256", SHA256_DIGEST_SIZE) 41 | -------------------------------------------------------------------------------- /p7zip_16.02/CPP/Common/StdInStream.h: -------------------------------------------------------------------------------- 1 | // Common/StdInStream.h 2 | 3 | #ifndef __COMMON_STD_IN_STREAM_H 4 | #define __COMMON_STD_IN_STREAM_H 5 | 6 | #include 7 | 8 | #include "MyString.h" 9 | #include "MyTypes.h" 10 | 11 | class CStdInStream 12 | { 13 | FILE *_stream; 14 | bool _streamIsOpen; 15 | public: 16 | CStdInStream(): _stream(0), _streamIsOpen(false) {}; 17 | CStdInStream(FILE *stream): _stream(stream), _streamIsOpen(false) {}; 18 | ~CStdInStream() { Close(); } 19 | 20 | bool Open(LPCTSTR fileName) throw(); 21 | bool Close() throw(); 22 | 23 | AString ScanStringUntilNewLine(bool allowEOF = false); 24 | void ReadToString(AString &resultString); 25 | UString ScanUStringUntilNewLine(); 26 | 27 | bool Eof() throw(); 28 | int GetChar(); 29 | }; 30 | 31 | extern CStdInStream g_StdIn; 32 | 33 | #endif 34 | -------------------------------------------------------------------------------- /p7zip_16.02/CPP/Common/StringToInt.h: -------------------------------------------------------------------------------- 1 | // Common/StringToInt.h 2 | 3 | #ifndef __COMMON_STRING_TO_INT_H 4 | #define __COMMON_STRING_TO_INT_H 5 | 6 | #include "MyTypes.h" 7 | 8 | UInt32 ConvertStringToUInt32(const char *s, const char **end) throw(); 9 | UInt64 ConvertStringToUInt64(const char *s, const char **end) throw(); 10 | UInt32 ConvertStringToUInt32(const wchar_t *s, const wchar_t **end) throw(); 11 | UInt64 ConvertStringToUInt64(const wchar_t *s, const wchar_t **end) throw(); 12 | 13 | Int32 ConvertStringToInt32(const wchar_t *s, const wchar_t **end) throw(); 14 | 15 | UInt32 ConvertOctStringToUInt32(const char *s, const char **end) throw(); 16 | UInt64 ConvertOctStringToUInt64(const char *s, const char **end) throw(); 17 | 18 | UInt32 ConvertHexStringToUInt32(const char *s, const char **end) throw(); 19 | UInt64 ConvertHexStringToUInt64(const char *s, const char **end) throw(); 20 | 21 | #endif 22 | -------------------------------------------------------------------------------- /p7zip_16.02/CPP/Common/TextConfig.h: -------------------------------------------------------------------------------- 1 | // Common/TextConfig.h 2 | 3 | #ifndef __COMMON_TEXT_CONFIG_H 4 | #define __COMMON_TEXT_CONFIG_H 5 | 6 | #include "MyString.h" 7 | 8 | struct CTextConfigPair 9 | { 10 | UString ID; 11 | UString String; 12 | }; 13 | 14 | bool GetTextConfig(const AString &text, CObjectVector &pairs); 15 | 16 | int FindTextConfigItem(const CObjectVector &pairs, const UString &id) throw(); 17 | UString GetTextConfigValue(const CObjectVector &pairs, const UString &id); 18 | 19 | #endif 20 | -------------------------------------------------------------------------------- /p7zip_16.02/CPP/Common/UTFConvert.h: -------------------------------------------------------------------------------- 1 | // Common/UTFConvert.h 2 | 3 | #ifndef __COMMON_UTF_CONVERT_H 4 | #define __COMMON_UTF_CONVERT_H 5 | 6 | #include "MyString.h" 7 | 8 | bool CheckUTF8(const char *src, bool allowReduced = false) throw(); 9 | bool ConvertUTF8ToUnicode(const AString &utfString, UString &resultString); 10 | void ConvertUnicodeToUTF8(const UString &unicodeString, AString &resultString); 11 | 12 | #endif 13 | -------------------------------------------------------------------------------- /p7zip_16.02/CPP/Windows/COM.cpp: -------------------------------------------------------------------------------- 1 | // Windows/COM.cpp 2 | 3 | #include "StdAfx.h" 4 | 5 | /* 6 | 7 | #include "COM.h" 8 | #include "../Common/StringConvert.h" 9 | 10 | namespace NWindows { 11 | namespace NCOM { 12 | 13 | // CoInitialize (NULL); must be called! 14 | 15 | UString GUIDToStringW(REFGUID guid) 16 | { 17 | UString s; 18 | const unsigned kSize = 48; 19 | StringFromGUID2(guid, s.GetBuf(kSize), kSize); 20 | s.ReleaseBuf_CalcLen(kSize); 21 | return s; 22 | } 23 | 24 | AString GUIDToStringA(REFGUID guid) 25 | { 26 | return UnicodeStringToMultiByte(GUIDToStringW(guid)); 27 | } 28 | 29 | HRESULT StringToGUIDW(const wchar_t *string, GUID &classID) 30 | { 31 | return CLSIDFromString((wchar_t *)string, &classID); 32 | } 33 | 34 | HRESULT StringToGUIDA(const char *string, GUID &classID) 35 | { 36 | return StringToGUIDW(MultiByteToUnicodeString(string), classID); 37 | } 38 | 39 | }} 40 | 41 | */ 42 | -------------------------------------------------------------------------------- /p7zip_16.02/CPP/Windows/Clipboard.h: -------------------------------------------------------------------------------- 1 | // Windows/Clipboard.h 2 | 3 | #ifndef __CLIPBOARD_H 4 | #define __CLIPBOARD_H 5 | 6 | #include "Common/MyString.h" 7 | 8 | namespace NWindows { 9 | 10 | class CClipboard 11 | { 12 | bool m_Open; 13 | public: 14 | CClipboard(): m_Open(false) {}; 15 | ~CClipboard(); 16 | bool Open(HWND wndNewOwner); 17 | bool Close(); 18 | }; 19 | 20 | bool ClipboardIsFormatAvailableHDROP(); 21 | 22 | // bool ClipboardGetFileNames(UStringVector &names); 23 | // bool ClipboardGetTextString(AString &s); 24 | bool ClipboardSetText(HWND owner, const UString &s); 25 | 26 | } 27 | 28 | #endif 29 | -------------------------------------------------------------------------------- /p7zip_16.02/CPP/Windows/CommonDialog.h: -------------------------------------------------------------------------------- 1 | // Windows/CommonDialog.h 2 | 3 | #ifndef __WINDOWS_COMMON_DIALOG_H 4 | #define __WINDOWS_COMMON_DIALOG_H 5 | 6 | #include "../Common/MyString.h" 7 | 8 | namespace NWindows { 9 | 10 | bool MyGetOpenFileName(HWND hwnd, LPCWSTR title, 11 | LPCWSTR initialDir, // can be NULL, so dir prefix in filePath will be used 12 | LPCWSTR filePath, // full path 13 | LPCWSTR filterDescription, // like "All files (*.*)" 14 | LPCWSTR filter, // like "*.exe" 15 | UString &resPath 16 | #ifdef UNDER_CE 17 | , bool openFolder = false 18 | #endif 19 | ); 20 | 21 | } 22 | 23 | #endif 24 | -------------------------------------------------------------------------------- /p7zip_16.02/CPP/Windows/Control/Edit.h: -------------------------------------------------------------------------------- 1 | // Windows/Control/Edit.h 2 | 3 | #ifndef __WINDOWS_CONTROL_EDIT_H 4 | #define __WINDOWS_CONTROL_EDIT_H 5 | 6 | #include "Windows/Window.h" 7 | #include "Windows/Defs.h" 8 | 9 | namespace NWindows { 10 | namespace NControl { 11 | 12 | class CEdit: public CWindow 13 | { 14 | public: 15 | void SetPasswordChar(WPARAM c); 16 | void Show(int cmdShow); 17 | void Show_Bool(bool show) { Show(show ? SW_SHOW: SW_HIDE); } 18 | virtual void SetText(LPCWSTR s); 19 | virtual bool GetText(CSysString &s); 20 | }; 21 | 22 | }} 23 | 24 | #endif 25 | 26 | -------------------------------------------------------------------------------- /p7zip_16.02/CPP/Windows/Control/ProgressBar.h: -------------------------------------------------------------------------------- 1 | // Windows/Control/ProgressBar.h 2 | 3 | #ifndef __WINDOWS_CONTROL_PROGRESSBAR_H 4 | #define __WINDOWS_CONTROL_PROGRESSBAR_H 5 | 6 | #include "Windows/Window.h" 7 | #include "Windows/Defs.h" 8 | 9 | class wxGauge; 10 | 11 | namespace NWindows { 12 | namespace NControl { 13 | 14 | 15 | class CProgressBar : public CWindow 16 | { 17 | protected: 18 | wxGauge* _window; 19 | int _minValue; 20 | int _range; 21 | public: 22 | CProgressBar(wxWindow* newWindow = NULL); 23 | 24 | void Attach(wxWindow* newWindow); 25 | 26 | void SetRange32(int minValue, int maxValue); 27 | 28 | void SetPos(int pos); 29 | }; 30 | 31 | }} 32 | 33 | #endif 34 | 35 | -------------------------------------------------------------------------------- /p7zip_16.02/CPP/Windows/Control/Static.h: -------------------------------------------------------------------------------- 1 | // Windows/Control/Static.h 2 | 3 | #ifndef __WINDOWS_CONTROL_STATIC_H 4 | #define __WINDOWS_CONTROL_STATIC_H 5 | 6 | #include "Windows/Window.h" 7 | #include "Windows/Defs.h" 8 | 9 | typedef void * HICON; 10 | 11 | namespace NWindows { 12 | namespace NControl { 13 | 14 | class CStatic : public CWindow 15 | { 16 | public: 17 | 18 | HICON SetIcon(HICON icon) { return 0; } // FIXME 19 | }; 20 | 21 | }} 22 | 23 | #endif 24 | -------------------------------------------------------------------------------- /p7zip_16.02/CPP/Windows/Defs.h: -------------------------------------------------------------------------------- 1 | // Windows/Defs.h 2 | 3 | #ifndef __WINDOWS_DEFS_H 4 | #define __WINDOWS_DEFS_H 5 | 6 | #include "../Common/MyWindows.h" 7 | 8 | // #ifdef _WIN32 9 | inline bool LRESULTToBool(LRESULT v) { return (v != FALSE); } 10 | inline bool BOOLToBool(BOOL v) { return (v != FALSE); } 11 | inline BOOL BoolToBOOL(bool v) { return (v ? TRUE: FALSE); } 12 | // #endif 13 | 14 | inline VARIANT_BOOL BoolToVARIANT_BOOL(bool v) { return (v ? VARIANT_TRUE: VARIANT_FALSE); } 15 | inline bool VARIANT_BOOLToBool(VARIANT_BOOL v) { return (v != VARIANT_FALSE); } 16 | 17 | #endif 18 | -------------------------------------------------------------------------------- /p7zip_16.02/CPP/Windows/ErrorMsg.h: -------------------------------------------------------------------------------- 1 | // Windows/ErrorMsg.h 2 | 3 | #ifndef __WINDOWS_ERROR_MSG_H 4 | #define __WINDOWS_ERROR_MSG_H 5 | 6 | #include "../Common/MyString.h" 7 | 8 | namespace NWindows { 9 | namespace NError { 10 | 11 | UString MyFormatMessage(DWORD errorCode); 12 | 13 | }} 14 | 15 | #endif 16 | -------------------------------------------------------------------------------- /p7zip_16.02/CPP/Windows/Menu.h: -------------------------------------------------------------------------------- 1 | 2 | /* TODO */ 3 | 4 | 5 | -------------------------------------------------------------------------------- /p7zip_16.02/CPP/Windows/ResourceString.h: -------------------------------------------------------------------------------- 1 | // Windows/ResourceString.h 2 | 3 | #ifndef __WINDOWS_RESOURCE_STRING_H 4 | #define __WINDOWS_RESOURCE_STRING_H 5 | 6 | #include "../Common/MyString.h" 7 | 8 | namespace NWindows { 9 | 10 | UString MyLoadString(UINT resourceID); 11 | void MyLoadString(HINSTANCE hInstance, UINT resourceID, UString &dest); 12 | void MyLoadString(UINT resourceID, UString &dest); 13 | 14 | } 15 | 16 | #endif 17 | -------------------------------------------------------------------------------- /p7zip_16.02/CPP/Windows/Shell.h: -------------------------------------------------------------------------------- 1 | // Windows/Shell.h 2 | 3 | #ifndef __WINDOWS_SHELL_H 4 | #define __WINDOWS_SHELL_H 5 | 6 | #include 7 | // #include 8 | 9 | #include "Common/MyString.h" 10 | #include "Windows/Defs.h" 11 | 12 | 13 | namespace NWindows{ 14 | namespace NShell{ 15 | 16 | bool BrowseForFolder(HWND owner, LPCWSTR title, LPCWSTR initialFolder, UString &resultPath); 17 | 18 | }} 19 | 20 | 21 | #endif 22 | -------------------------------------------------------------------------------- /p7zip_16.02/CPP/Windows/System.h: -------------------------------------------------------------------------------- 1 | // Windows/System.h 2 | 3 | #ifndef __WINDOWS_SYSTEM_H 4 | #define __WINDOWS_SYSTEM_H 5 | 6 | #include "../Common/MyTypes.h" 7 | 8 | namespace NWindows { 9 | namespace NSystem { 10 | 11 | UInt32 GetNumberOfProcessors(); 12 | 13 | bool GetRamSize(UInt64 &size); // returns false, if unknown ram size 14 | 15 | }} 16 | 17 | #endif 18 | -------------------------------------------------------------------------------- /p7zip_16.02/CPP/Windows/TimeUtils.h: -------------------------------------------------------------------------------- 1 | // Windows/TimeUtils.h 2 | 3 | #ifndef __WINDOWS_TIME_UTILS_H 4 | #define __WINDOWS_TIME_UTILS_H 5 | 6 | #include "../Common/MyTypes.h" 7 | #include "../Common/MyWindows.h" 8 | 9 | namespace NWindows { 10 | namespace NTime { 11 | 12 | bool DosTimeToFileTime(UInt32 dosTime, FILETIME &fileTime) throw(); 13 | bool FileTimeToDosTime(const FILETIME &fileTime, UInt32 &dosTime) throw(); 14 | void UnixTimeToFileTime(UInt32 unixTime, FILETIME &fileTime) throw(); 15 | bool UnixTime64ToFileTime(Int64 unixTime, FILETIME &fileTime) throw(); 16 | bool FileTimeToUnixTime(const FILETIME &fileTime, UInt32 &unixTime) throw(); 17 | Int64 FileTimeToUnixTime64(const FILETIME &ft) throw(); 18 | bool GetSecondsSince1601(unsigned year, unsigned month, unsigned day, 19 | unsigned hour, unsigned min, unsigned sec, UInt64 &resSeconds) throw(); 20 | void GetCurUtcFileTime(FILETIME &ft) throw(); 21 | 22 | }} 23 | 24 | #endif 25 | -------------------------------------------------------------------------------- /p7zip_16.02/CPP/include_windows/basetyps.h: -------------------------------------------------------------------------------- 1 | #ifndef _BASETYPS_H 2 | #define _BASETYPS_H 3 | 4 | #ifdef ENV_HAVE_GCCVISIBILITYPATCH 5 | #define DLLEXPORT __attribute__ ((visibility("default"))) 6 | #else 7 | #define DLLEXPORT 8 | #endif 9 | 10 | #ifdef __cplusplus 11 | #define STDAPI extern "C" DLLEXPORT HRESULT 12 | #else 13 | #define STDAPI extern DLLEXPORT HRESULT 14 | #endif /* __cplusplus */ 15 | 16 | typedef GUID IID; 17 | typedef GUID CLSID; 18 | #endif 19 | 20 | -------------------------------------------------------------------------------- /p7zip_16.02/CPP/myWindows/initguid.h: -------------------------------------------------------------------------------- 1 | // initguid.h 2 | 3 | #include "Common/MyInitGuid.h" 4 | 5 | -------------------------------------------------------------------------------- /p7zip_16.02/CPP/myWindows/makefile: -------------------------------------------------------------------------------- 1 | PROG=test_lib 2 | 3 | LOCAL_FLAGS=-I. -I.. -I../include_windows -DUNICODE -D_UNICODE 4 | 5 | include ../../makefile.crc32 6 | include ../../makefile.machine 7 | 8 | TARGET_FLAGS=$(CC_EXE) 9 | LOCAL_LINK=$(LINK_EXE) 10 | LIBS=$(LOCAL_LIBS) 11 | 12 | OBJS= \ 13 | wine_date_and_time.o \ 14 | mySplitCommandLine.o \ 15 | myAddExeFlag.o \ 16 | wine_GetXXXDefaultLangID.o \ 17 | test_lib.o \ 18 | MyVector.o \ 19 | MyString.o \ 20 | MyWindows.o \ 21 | CpuArch.o 22 | 23 | include ../../makefile.glb 24 | 25 | -------------------------------------------------------------------------------- /p7zip_16.02/CPP/myWindows/makefile.depend: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tehmul/p7zip-zstd/e72c479f922f22f79c7adcc91b03fa4f37861372/p7zip_16.02/CPP/myWindows/makefile.depend -------------------------------------------------------------------------------- /p7zip_16.02/CPP/myWindows/myAddExeFlag.cpp: -------------------------------------------------------------------------------- 1 | #include "StdAfx.h" 2 | 3 | #include 4 | #include 5 | 6 | #include 7 | 8 | #define NEED_NAME_WINDOWS_TO_UNIX 9 | #include "myPrivate.h" 10 | 11 | #include "Common/StringConvert.h" 12 | 13 | void myAddExeFlag(const UString &u_name) 14 | { 15 | AString filename = UnicodeStringToMultiByte(u_name, CP_ACP); // FIXME 16 | const char * name = nameWindowToUnix(filename); 17 | // printf("myAddExeFlag(%s)\n",name); 18 | chmod(name,0700); 19 | } 20 | 21 | -------------------------------------------------------------------------------- /p7zip_16.02/CPP/myWindows/myPrivate.h: -------------------------------------------------------------------------------- 1 | 2 | void WINAPI RtlSecondsSince1970ToFileTime( DWORD Seconds, FILETIME * ft ); 3 | 4 | extern "C" int global_use_utf16_conversion; 5 | #ifdef ENV_HAVE_LSTAT 6 | extern "C" int global_use_lstat; 7 | #endif 8 | 9 | const char *my_getlocale(void); 10 | 11 | #ifdef NEED_NAME_WINDOWS_TO_UNIX 12 | static inline const char * nameWindowToUnix(const char * lpFileName) { 13 | if ((lpFileName[0] == 'c') && (lpFileName[1] == ':')) return lpFileName+2; 14 | return lpFileName; 15 | } 16 | 17 | 18 | 19 | #endif 20 | 21 | // From mySplitCommandLine.cpp 22 | void mySplitCommandLine(int numArguments, char *arguments[],UStringVector &parts); 23 | class CStdOutStream; 24 | void showP7zipInfo(CStdOutStream *so); 25 | void showZStdInfo(CStdOutStream *so); 26 | 27 | -------------------------------------------------------------------------------- /p7zip_16.02/DOC/MANUAL/cmdline/switches/stop_switch.htm: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -- (Stop switches parsing) switch 6 | 7 | 8 | 9 | 10 | 11 |

-- (Stop switches parsing) switch

12 | 13 |

Disables switch parsing after "--" on the command line. 14 | This is to allow 7-Zip to use file names that start with "-". 15 | 16 |

Syntax

17 | 18 |
19 | --
20 | 
21 | 22 |

Examples

23 | 24 |
25 | 7z t -- -ArchiveName.7z
26 | 
27 | 28 |

tests -ArchiveName.7z archive.

29 | 30 | 31 | 32 | -------------------------------------------------------------------------------- /p7zip_16.02/DOC/MANUAL/fm/about.htm: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | About Dialog Box 6 | 7 | 8 | 9 | 10 | 11 |

About Dialog Box

12 | 13 |

The About dialog box provides information about 7-Zip. This dialog box is available 14 | from the Help menu.

15 | 16 |
    17 |
  • Press www.7-zip.org button for opening 7-Zip Home Page.
  • 18 |
19 | 20 | 21 | 22 | -------------------------------------------------------------------------------- /p7zip_16.02/DOC/MANUAL/fm/plugins/index.htm: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | Plugins 6 | 7 | 8 | 9 | 10 | 11 |

Plugins

12 | 13 |

The 7-Zip File Manager can use internal and external plugins.

14 | 15 |

Currently 7-Zip uses the following plugins:

16 |
17 |
7-Zip
18 |
Plugin for manipulating archives.
19 |
20 | 21 | 22 | 23 | -------------------------------------------------------------------------------- /p7zip_16.02/DOC/MANUAL/general/index.htm: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | General Information 6 | 7 | 8 | 9 | 10 | 11 |

General Information

12 | 13 |

The main features of 7-Zip

14 | 15 | 21 | 22 |

See Also

23 | 26 | 27 | 28 | 29 | -------------------------------------------------------------------------------- /p7zip_16.02/GUI/Contents/PkgInfo: -------------------------------------------------------------------------------- 1 | APPLaONe -------------------------------------------------------------------------------- /p7zip_16.02/GUI/Contents/Resources/p7zip.icns: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tehmul/p7zip-zstd/e72c479f922f22f79c7adcc91b03fa4f37861372/p7zip_16.02/GUI/Contents/Resources/p7zip.icns -------------------------------------------------------------------------------- /p7zip_16.02/GUI/kde3/p7zip_extract.desktop: -------------------------------------------------------------------------------- 1 | [Desktop Entry] 2 | X-SuSE-translate=true 3 | Encoding=UTF-8 4 | ServiceTypes=application/x-gzip,application/x-lzip,application/x-lha,application/x-tar,application/x-tgz,application/x-tlz,application/x-tbz,application/x-tbz2,application/x-zip,application/x-bzip,application/x-tzo,application/x-lzop,application/x-rar,application/x-rar-compressed,application/x-zoo,application/x-tarz,application/x-archive,application/x-bzip2,application/x-jar,application/x-deb,application/x-ace,application/x-7z,application/x-arc,application/x-arj,application/x-compress,application/x-cpio,application/x-pak 5 | Actions=extractHere 6 | 7 | [Desktop Action extractHere] 8 | Name=Extract Here with 7-zip 9 | Exec=p7zipForFilemanager x %U 10 | Icon=p7zip 11 | -------------------------------------------------------------------------------- /p7zip_16.02/GUI/kde3/p7zip_extract_subdir.desktop: -------------------------------------------------------------------------------- 1 | [Desktop Entry] 2 | X-SuSE-translate=true 3 | Encoding=UTF-8 4 | ServiceTypes=application/x-gzip,application/x-lzip,application/x-lha,application/x-tar,application/x-tgz,application/x-tlz,application/x-tbz,application/x-tbz2,application/x-zip,application/x-bzip,application/x-tzo,application/x-lzop,application/x-rar,application/x-rar-compressed,application/x-zoo,application/x-tarz,application/x-archive,application/x-bzip2,application/x-jar,application/x-deb,application/x-ace,application/x-7z,application/x-arc,application/x-arj,application/x-compress,application/x-cpio,application/x-pak 5 | Actions=ExtractSubdir 6 | 7 | [Desktop Action ExtractSubdir] 8 | Name=Extract to subdirectory with 7-Zip 9 | Icon=p7zip 10 | Exec=p7zipForFilemanager xs %U 11 | -------------------------------------------------------------------------------- /p7zip_16.02/GUI/kde3/p7zip_extract_to.desktop: -------------------------------------------------------------------------------- 1 | [Desktop Entry] 2 | X-SuSE-translate=true 3 | Encoding=UTF-8 4 | ServiceTypes=application/x-gzip,application/x-lzip,application/x-lha,application/x-tar,application/x-tgz,application/x-tlz,application/x-tbz,application/x-tbz2,application/x-zip,application/x-bzip,application/x-tzo,application/x-lzop,application/x-rar,application/x-rar-compressed,application/x-zoo,application/x-tarz,application/x-archive,application/x-bzip2,application/x-jar,application/x-deb,application/x-ace,application/x-7z,application/x-arc,application/x-arj,application/x-compress,application/x-cpio,application/x-pak 5 | Actions=ExtractTo 6 | 7 | [Desktop Action ExtractTo] 8 | Name=Extract to ... with 7-Zip 9 | Icon=p7zip 10 | Exec=p7zipForFilemanager xd %U 11 | -------------------------------------------------------------------------------- /p7zip_16.02/GUI/kde3/p7zip_test.desktop: -------------------------------------------------------------------------------- 1 | [Desktop Entry] 2 | X-SuSE-translate=true 3 | Encoding=UTF-8 4 | ServiceTypes=application/x-gzip,application/x-lzip,application/x-lha,application/x-tar,application/x-tgz,application/x-tlz,application/x-tbz,application/x-tbz2,application/x-zip,application/x-bzip,application/x-tzo,application/x-lzop,application/x-rar,application/x-rar-compressed,application/x-zoo,application/x-tarz,application/x-archive,application/x-bzip2,application/x-jar,application/x-deb,application/x-ace,application/x-7z,application/x-arc,application/x-arj,application/x-compress,application/x-cpio,application/x-pak 5 | Actions=test 6 | 7 | [Desktop Action test] 8 | Name=Test with 7-zip 9 | Exec=p7zipForFilemanager t %U 10 | Icon=p7zip 11 | -------------------------------------------------------------------------------- /p7zip_16.02/GUI/kde4/p7zip_extract.desktop: -------------------------------------------------------------------------------- 1 | [Desktop Entry] 2 | ServiceTypes=application/x-gzip,application/x-lzip,application/x-lha,application/x-tar,application/x-tgz,application/x-tlz,application/x-tbz,application/x-tbz2,application/x-zip,application/x-bzip,application/x-tzo,application/x-lzop,application/x-rar,application/x-rar-compressed,application/x-zoo,application/x-tarz,application/x-archive,application/x-bzip2,application/x-jar,application/x-deb,application/x-ace,application/x-7z,application/x-arc,application/x-arj,application/x-compress,application/x-cpio,application/x-pak 3 | Actions=extractHere; 4 | Type=Service 5 | X-KDE-ServiceTypes=KonqPopupMenu/Plugin 6 | 7 | [Desktop Action extractHere] 8 | Name=Extract Here with 7-zip 9 | Exec=p7zipForFilemanager x %U 10 | Icon=p7zip 11 | -------------------------------------------------------------------------------- /p7zip_16.02/GUI/kde4/p7zip_extract_subdir.desktop: -------------------------------------------------------------------------------- 1 | [Desktop Entry] 2 | ServiceTypes=application/x-gzip,application/x-lzip,application/x-lha,application/x-tar,application/x-tgz,application/x-tlz,application/x-tbz,application/x-tbz2,application/x-zip,application/x-bzip,application/x-tzo,application/x-lzop,application/x-rar,application/x-rar-compressed,application/x-zoo,application/x-tarz,application/x-archive,application/x-bzip2,application/x-jar,application/x-deb,application/x-ace,application/x-7z,application/x-arc,application/x-arj,application/x-compress,application/x-cpio,application/x-pak 3 | Actions=ExtractSubdir; 4 | Type=Service 5 | X-KDE-ServiceTypes=KonqPopupMenu/Plugin 6 | 7 | [Desktop Action ExtractSubdir] 8 | Name=Extract to subdirectory with 7-Zip 9 | Icon=p7zip 10 | Exec=p7zipForFilemanager xs %U 11 | -------------------------------------------------------------------------------- /p7zip_16.02/GUI/kde4/p7zip_extract_to.desktop: -------------------------------------------------------------------------------- 1 | [Desktop Entry] 2 | ServiceTypes=application/x-gzip,application/x-lzip,application/x-lha,application/x-tar,application/x-tgz,application/x-tlz,application/x-tbz,application/x-tbz2,application/x-zip,application/x-bzip,application/x-tzo,application/x-lzop,application/x-rar,application/x-rar-compressed,application/x-zoo,application/x-tarz,application/x-archive,application/x-bzip2,application/x-jar,application/x-deb,application/x-ace,application/x-7z,application/x-arc,application/x-arj,application/x-compress,application/x-cpio,application/x-pak 3 | Actions=ExtractTo; 4 | Type=Service 5 | X-KDE-ServiceTypes=KonqPopupMenu/Plugin 6 | 7 | [Desktop Action ExtractTo] 8 | Name=Extract to ... with 7-Zip 9 | Icon=p7zip 10 | Exec=p7zipForFilemanager xd %U 11 | -------------------------------------------------------------------------------- /p7zip_16.02/GUI/kde4/p7zip_test.desktop: -------------------------------------------------------------------------------- 1 | [Desktop Entry] 2 | ServiceTypes=application/x-gzip,application/x-lzip,application/x-lha,application/x-tar,application/x-tgz,application/x-tlz,application/x-tbz,application/x-tbz2,application/x-zip,application/x-bzip,application/x-tzo,application/x-lzop,application/x-rar,application/x-rar-compressed,application/x-zoo,application/x-tarz,application/x-archive,application/x-bzip2,application/x-jar,application/x-deb,application/x-ace,application/x-7z,application/x-arc,application/x-arj,application/x-compress,application/x-cpio,application/x-pak 3 | Actions=test; 4 | Type=Service 5 | X-KDE-ServiceTypes=KonqPopupMenu/Plugin 6 | 7 | [Desktop Action test] 8 | Name=Test with 7-zip 9 | Exec=p7zipForFilemanager t %U 10 | Icon=p7zip 11 | -------------------------------------------------------------------------------- /p7zip_16.02/GUI/p7zip_16.icns: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tehmul/p7zip-zstd/e72c479f922f22f79c7adcc91b03fa4f37861372/p7zip_16.02/GUI/p7zip_16.icns -------------------------------------------------------------------------------- /p7zip_16.02/GUI/p7zip_16.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tehmul/p7zip-zstd/e72c479f922f22f79c7adcc91b03fa4f37861372/p7zip_16.02/GUI/p7zip_16.png -------------------------------------------------------------------------------- /p7zip_16.02/GUI/p7zip_16_ok.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tehmul/p7zip-zstd/e72c479f922f22f79c7adcc91b03fa4f37861372/p7zip_16.02/GUI/p7zip_16_ok.png -------------------------------------------------------------------------------- /p7zip_16.02/GUI/p7zip_32.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tehmul/p7zip-zstd/e72c479f922f22f79c7adcc91b03fa4f37861372/p7zip_16.02/GUI/p7zip_32.png -------------------------------------------------------------------------------- /p7zip_16.02/TODO: -------------------------------------------------------------------------------- 1 | 2 | 7za/7z 3 | ====== 4 | - auto-generate config.h (use a configure script ...) 5 | 6 | - suppress all exit(EXIT_FAILURE), FIXME, ... 7 | 8 | - no chmod for TAR (should restore the rights set) 9 | 10 | - no chown(uid,gid) for TAR 11 | 12 | - Use a more portable "String.h" 13 | 14 | - UTF16 : try to test with Complex Unicode filenames 15 | 16 | - KNOWN BUGS 17 | 18 | - date (format arj/rar/chm) ? 19 | 20 | - zip format : better support of symbolic links 21 | 22 | 7zG / 7zFM 23 | ========================== 24 | 25 | - better help displaying 26 | 27 | - better support for space in filenames 28 | 29 | 30 | 7zG : 31 | - sfx: wants 7z.sfx instead of 7zCon.sfx ? 32 | - the dialogs are not on top of other windows => not visible ... 33 | 34 | 35 | 7zFM : 36 | - the path "/" does not work (on OSX ?) 37 | - strange behaviour : selected/unselected items 38 | -------------------------------------------------------------------------------- /p7zip_16.02/Utils/CPUTest/MemLat/makefile: -------------------------------------------------------------------------------- 1 | PROG=MemLat 2 | 3 | 4 | # ./MemLat 4 p5 n 5 | 6 | # -DLARGE_PAGES 7 | LOCAL_FLAGS=-I. -DNUM_DIRECT_TESTS=6 -DNUM_PAR_TESTS=5 8 | 9 | include ../../../makefile.machine 10 | 11 | TARGET_FLAGS=$(CC_EXE) 12 | LOCAL_LINK=$(LINK_EXE) 13 | LIBS=$(LOCAL_LIBS) 14 | 15 | OBJS=MemLat.o Walk.o 16 | 17 | include ../../../makefile.glb 18 | 19 | -------------------------------------------------------------------------------- /p7zip_16.02/Utils/CPUTest/MemLat/makefile.depend: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tehmul/p7zip-zstd/e72c479f922f22f79c7adcc91b03fa4f37861372/p7zip_16.02/Utils/CPUTest/MemLat/makefile.depend -------------------------------------------------------------------------------- /p7zip_16.02/Utils/CPUTest/MemLat/makefile.list: -------------------------------------------------------------------------------- 1 | 2 | all: $(PCH_NAME) $(PROG) 3 | 4 | SRCS=MemLat.cpp 5 | 6 | MemLat.o : MemLat.cpp 7 | $(CXX) $(CXXFLAGS) MemLat.cpp 8 | 9 | Walk.o : Walk.c 10 | $(CC) $(CFLAGS) Walk.c 11 | 12 | -------------------------------------------------------------------------------- /p7zip_16.02/Utils/CPUTest/MyVersion.h: -------------------------------------------------------------------------------- 1 | #define MY_VERSION "11.00" 2 | #define MY_DATE "2011-05-12" 3 | #define MY_COPYRIGHT ": Igor Pavlov : Public domain" 4 | #define MY_VERSION_COPYRIGHT_DATE MY_VERSION " " MY_COPYRIGHT " : " MY_DATE 5 | -------------------------------------------------------------------------------- /p7zip_16.02/Utils/CPUTest/PipeLen/MemLat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tehmul/p7zip-zstd/e72c479f922f22f79c7adcc91b03fa4f37861372/p7zip_16.02/Utils/CPUTest/PipeLen/MemLat -------------------------------------------------------------------------------- /p7zip_16.02/Utils/CPUTest/PipeLen/makefile: -------------------------------------------------------------------------------- 1 | PROG=PipeLen 2 | 3 | # -D_USE_ASM 4 | LOCAL_FLAGS=-I. 5 | 6 | include ../../../makefile.machine 7 | 8 | TARGET_FLAGS=$(CC_EXE) 9 | LOCAL_LINK=$(LINK_EXE) 10 | LIBS=$(LOCAL_LIBS) 11 | 12 | # pl.o 13 | OBJS=PipeLen.o 14 | 15 | 16 | include ../../../makefile.glb 17 | 18 | -------------------------------------------------------------------------------- /p7zip_16.02/Utils/CPUTest/PipeLen/makefile.depend: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tehmul/p7zip-zstd/e72c479f922f22f79c7adcc91b03fa4f37861372/p7zip_16.02/Utils/CPUTest/PipeLen/makefile.depend -------------------------------------------------------------------------------- /p7zip_16.02/Utils/CPUTest/PipeLen/makefile.list: -------------------------------------------------------------------------------- 1 | 2 | all: $(PCH_NAME) $(PROG) 3 | 4 | SRCS=PipeLen.cpp 5 | 6 | PipeLen.o : PipeLen.cpp 7 | $(CXX) $(CXXFLAGS) PipeLen.cpp 8 | 9 | -------------------------------------------------------------------------------- /p7zip_16.02/Utils/file_Client7z.py: -------------------------------------------------------------------------------- 1 | 2 | files_c=[ 3 | 'C/Threads.c', 4 | ] 5 | 6 | files_cpp=[ 7 | 'CPP/7zip/Common/FileStreams.cpp', 8 | 'CPP/7zip/UI/Client7z/Client7z.cpp', 9 | 'CPP/Common/IntToString.cpp', 10 | 'CPP/Common/MyString.cpp', 11 | 'CPP/Common/MyVector.cpp', 12 | 'CPP/Common/MyWindows.cpp', 13 | 'CPP/Common/StringConvert.cpp', 14 | 'CPP/Common/UTFConvert.cpp', 15 | 'CPP/Common/Wildcard.cpp', 16 | 'CPP/Windows/DLL.cpp', 17 | 'CPP/Windows/FileDir.cpp', 18 | 'CPP/Windows/FileFind.cpp', 19 | 'CPP/Windows/FileIO.cpp', 20 | 'CPP/Windows/FileName.cpp', 21 | 'CPP/Windows/PropVariant.cpp', 22 | 'CPP/Windows/PropVariantConv.cpp', 23 | 'CPP/myWindows/wine_date_and_time.cpp', 24 | ] 25 | 26 | -------------------------------------------------------------------------------- /p7zip_16.02/Utils/file_Codecs_Rar_so.py: -------------------------------------------------------------------------------- 1 | 2 | files_c=[ 3 | 'C/7zCrc.c', 4 | 'C/7zCrcOpt.c', 5 | 'C/Alloc.c', 6 | 'C/CpuArch.c', 7 | 'C/Ppmd7.c', 8 | 'C/Ppmd7Dec.c', 9 | ] 10 | 11 | files_cpp=[ 12 | 'CPP/7zip/Common/InBuffer.cpp', 13 | 'CPP/7zip/Common/OutBuffer.cpp', 14 | 'CPP/7zip/Common/StreamUtils.cpp', 15 | 'CPP/7zip/Compress/CodecExports.cpp', 16 | 'CPP/7zip/Compress/DllExportsCompress.cpp', 17 | 'CPP/7zip/Compress/LzOutWindow.cpp', 18 | 'CPP/7zip/Compress/Rar1Decoder.cpp', 19 | 'CPP/7zip/Compress/Rar2Decoder.cpp', 20 | 'CPP/7zip/Compress/Rar3Decoder.cpp', 21 | 'CPP/7zip/Compress/Rar3Vm.cpp', 22 | 'CPP/7zip/Compress/Rar5Decoder.cpp', 23 | 'CPP/7zip/Compress/RarCodecsRegister.cpp', 24 | 'CPP/Common/CRC.cpp', 25 | 'CPP/Common/MyVector.cpp', 26 | 'CPP/Common/MyWindows.cpp', 27 | ] 28 | 29 | -------------------------------------------------------------------------------- /p7zip_16.02/Utils/file_Codecs_ZStd_so.py: -------------------------------------------------------------------------------- 1 | files_c=[ 2 | 'C/Alloc.c', 3 | 'C/ZStd/entropy_common.c', 4 | 'C/ZStd/error_private.c', 5 | 'C/ZStd/fse_compress.c', 6 | 'C/ZStd/fse_decompress.c', 7 | 'C/ZStd/huf_compress.c', 8 | 'C/ZStd/huf_decompress.c', 9 | 'C/ZStd/xxhash.c', 10 | 'C/ZStd/zstd_common.c', 11 | 'C/ZStd/zstd_compress.c', 12 | 'C/ZStd/zstd_decompress.c', 13 | 'C/zstdmt/zstdmt_common.c', 14 | 'C/zstdmt/zstdmt_compress.c', 15 | 'C/zstdmt/zstdmt_decompress.c', 16 | ] 17 | 18 | files_cpp=[ 19 | 'CPP/7zip/Common/StreamUtils.cpp', 20 | 'CPP/7zip/Compress/CodecExports.cpp', 21 | 'CPP/7zip/Compress/DllExportsCompress.cpp', 22 | 'CPP/7zip/Compress/ZstdDecoder.cpp', 23 | 'CPP/7zip/Compress/ZstdEncoder.cpp', 24 | 'CPP/7zip/Compress/ZstdRegister.cpp', 25 | # 'CPP/7zip/Archive/ZstdHandler.cpp', 26 | 'CPP/Common/MyWindows.cpp', 27 | 'CPP/Windows/System.cpp', 28 | ] 29 | -------------------------------------------------------------------------------- /p7zip_16.02/Utils/file_P7ZIP.py: -------------------------------------------------------------------------------- 1 | 2 | files_c=[ 3 | 'C/Threads.c', 4 | ] 5 | 6 | files_cpp=[ 7 | 'CPP/7zip/UI/P7ZIP/wxP7ZIP.cpp', 8 | 'CPP/Common/IntToString.cpp', 9 | 'CPP/Common/MyString.cpp', 10 | 'CPP/Common/MyVector.cpp', 11 | 'CPP/Common/StringConvert.cpp', 12 | 'CPP/Windows/FileDir.cpp', 13 | 'CPP/Windows/FileFind.cpp', 14 | 'CPP/Windows/FileIO.cpp', 15 | 'CPP/Windows/FileName.cpp', 16 | 'CPP/Common/MyWindows.cpp', 17 | 'CPP/myWindows/wine_date_and_time.cpp', 18 | ] 19 | 20 | -------------------------------------------------------------------------------- /p7zip_16.02/Utils/file_TestUI.py: -------------------------------------------------------------------------------- 1 | 2 | files_c=[ 3 | 'C/Threads.c', 4 | ] 5 | 6 | files_cpp=[ 7 | 'CPP/7zip/TEST/TestUI/TestUI.cpp', 8 | 'CPP/7zip/UI/FileManager/PasswordDialog.cpp', 9 | 'CPP/7zip/UI/FileManager/PasswordDialog_rc.cpp', 10 | 'CPP/Common/MyString.cpp', 11 | 'CPP/Common/MyWindows.cpp', 12 | 'CPP/Windows/Control/Controls.cpp', 13 | 'CPP/Windows/Control/Dialog.cpp', 14 | 'CPP/Windows/Window.cpp', 15 | ] 16 | 17 | -------------------------------------------------------------------------------- /p7zip_16.02/check/clean_all.sh: -------------------------------------------------------------------------------- 1 | #! /bin/sh 2 | 3 | rm -fr 7za433_ref 7za433_7zip_bzip2 7za433_7zip_lzma 7za433_7zip_lzma_crypto 7za433_7zip_ppmd 7za433_tar 4 | rm -fr 7za433_7zip_bzip2.7z 7za433_7zip_lzma.7z 7za433_7zip_lzma_crypto.7z 7za433_7zip_ppmd.7z 7za433_tar.tar 5 | rm -fr last_error TMP_* 6 | 7 | -------------------------------------------------------------------------------- /p7zip_16.02/check/test/7za.exe.lzma: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tehmul/p7zip-zstd/e72c479f922f22f79c7adcc91b03fa4f37861372/p7zip_16.02/check/test/7za.exe.lzma -------------------------------------------------------------------------------- /p7zip_16.02/check/test/7za.exe.lzma86: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tehmul/p7zip-zstd/e72c479f922f22f79c7adcc91b03fa4f37861372/p7zip_16.02/check/test/7za.exe.lzma86 -------------------------------------------------------------------------------- /p7zip_16.02/check/test/7za.exe.lzma_eos: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tehmul/p7zip-zstd/e72c479f922f22f79c7adcc91b03fa4f37861372/p7zip_16.02/check/test/7za.exe.lzma_eos -------------------------------------------------------------------------------- /p7zip_16.02/check/test/7za.exe.xz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tehmul/p7zip-zstd/e72c479f922f22f79c7adcc91b03fa4f37861372/p7zip_16.02/check/test/7za.exe.xz -------------------------------------------------------------------------------- /p7zip_16.02/check/test/7za433_7zip_bzip2.7z: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tehmul/p7zip-zstd/e72c479f922f22f79c7adcc91b03fa4f37861372/p7zip_16.02/check/test/7za433_7zip_bzip2.7z -------------------------------------------------------------------------------- /p7zip_16.02/check/test/7za433_7zip_lzma.7z: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tehmul/p7zip-zstd/e72c479f922f22f79c7adcc91b03fa4f37861372/p7zip_16.02/check/test/7za433_7zip_lzma.7z -------------------------------------------------------------------------------- /p7zip_16.02/check/test/7za433_7zip_lzma2.7z: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tehmul/p7zip-zstd/e72c479f922f22f79c7adcc91b03fa4f37861372/p7zip_16.02/check/test/7za433_7zip_lzma2.7z -------------------------------------------------------------------------------- /p7zip_16.02/check/test/7za433_7zip_lzma2_bcj2.7z: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tehmul/p7zip-zstd/e72c479f922f22f79c7adcc91b03fa4f37861372/p7zip_16.02/check/test/7za433_7zip_lzma2_bcj2.7z -------------------------------------------------------------------------------- /p7zip_16.02/check/test/7za433_7zip_lzma2_crypto.7z: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tehmul/p7zip-zstd/e72c479f922f22f79c7adcc91b03fa4f37861372/p7zip_16.02/check/test/7za433_7zip_lzma2_crypto.7z -------------------------------------------------------------------------------- /p7zip_16.02/check/test/7za433_7zip_lzma_bcj2.7z: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tehmul/p7zip-zstd/e72c479f922f22f79c7adcc91b03fa4f37861372/p7zip_16.02/check/test/7za433_7zip_lzma_bcj2.7z -------------------------------------------------------------------------------- /p7zip_16.02/check/test/7za433_7zip_lzma_crypto.7z: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tehmul/p7zip-zstd/e72c479f922f22f79c7adcc91b03fa4f37861372/p7zip_16.02/check/test/7za433_7zip_lzma_crypto.7z -------------------------------------------------------------------------------- /p7zip_16.02/check/test/7za433_7zip_ppmd.7z: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tehmul/p7zip-zstd/e72c479f922f22f79c7adcc91b03fa4f37861372/p7zip_16.02/check/test/7za433_7zip_ppmd.7z -------------------------------------------------------------------------------- /p7zip_16.02/check/test/7za433_7zip_ppmd_bcj2.7z: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tehmul/p7zip-zstd/e72c479f922f22f79c7adcc91b03fa4f37861372/p7zip_16.02/check/test/7za433_7zip_ppmd_bcj2.7z -------------------------------------------------------------------------------- /p7zip_16.02/check/test/7za433_tar.tar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tehmul/p7zip-zstd/e72c479f922f22f79c7adcc91b03fa4f37861372/p7zip_16.02/check/test/7za433_tar.tar -------------------------------------------------------------------------------- /p7zip_16.02/contrib/VirtualFileSystemForMidnightCommander/readme: -------------------------------------------------------------------------------- 1 | 2 | The official site of u7z is : http://sgh-punk.narod.ru/files/u7z/ 3 | 4 | INSTALL 5 | ======= 6 | - edit /usr/share/mc/extfs/extfs.ini to add "u7z" after urar. 7 | 8 | - edit /usr/share/mc/mc.ext to add : 9 | =-=-=-=-=-= Cut -=-=-=-=-=- 10 | regex/\.(7z|7Z)$ 11 | View=%view{ascii} 7za l %f 12 | Open=%cd %p#u7z 13 | =-=-=-=-=-= Cut -=-=-=-=-=- 14 | 15 | This must be added before Manual pages Lines to prevent handle 7z archive 16 | like man page 17 | 18 | - copy u7z to /usr/share/mc/extfs 19 | 20 | - launch mc to try ;) 21 | 22 | -------------------------------------------------------------------------------- /p7zip_16.02/contrib/VirtualFileSystemForMidnightCommander/readme.u7z: -------------------------------------------------------------------------------- 1 | For use u7z you must add following line to extfs.ini 2 | 3 | =-=-=-=-=-= Cut -=-=-=-=-=- 4 | u7z 5 | =-=-=-=-=-= Cut -=-=-=-=-=- 6 | 7 | And add somthing like this to extension file 8 | 9 | REMARK: 7z may be replaced with 7za 10 | 11 | =-=-=-=-=-= Cut -=-=-=-=-=- 12 | regex/\.(7z|7Z)$ 13 | View=%view{ascii} 7z l %f 14 | Open=%cd %p#u7z 15 | =-=-=-=-=-= Cut -=-=-=-=-=- 16 | 17 | This must be added before Manual pages Lines to prevent handle 7z archive 18 | like man page 19 | 20 | 21 | If you have installed 7z with plugins, you can view and unpack .cab and other 22 | (if there is plugin) archive types with u7z, just add 23 | 24 | =-=-=-=-=-= Cut -=-=-=-=-=- 25 | regex/\.(cab|CAB)$ 26 | View=%view{ascii} 7z l %f 27 | Open=%cd %p#u7z 28 | =-=-=-=-=-= Cut -=-=-=-=-=- 29 | 30 | to extension file, and somthing like this for other supported archives. 31 | -------------------------------------------------------------------------------- /p7zip_16.02/contrib/gzip-like_CLI_wrapper_for_7z/README: -------------------------------------------------------------------------------- 1 | gzip-like CLI wrapper (for 7z) 2 | ============================== 3 | 4 | The official site of the script p7zip provided in this directory 5 | is http://packages.debian.org/unstable/utils/p7zip. 6 | 7 | 8 | The script p7zip provides a CLI similar to that of 9 | gzip/bzip2/etc Un*x utilities for 7z. 10 | 11 | When necessary, it emulates streaming by using 12 | temporary files in /tmp. This is all transparent to 13 | the application using it, which can use the same 14 | semantincs than with gzip or bzip2. 15 | 16 | For example, you can do: 17 | 18 | tar --use-compress-program=p7zip -cf file.tar.7z dir/ 19 | 20 | to generate a 7zipped tarball. 21 | 22 | -------------------------------------------------------------------------------- /p7zip_16.02/contrib/qnx630sp3/qnx630sp3-shared: -------------------------------------------------------------------------------- 1 | BIN="p7zip-4.47-x86-qnx6.shared" 2 | cd ../../ && mkdir -p ../${BIN}/Codecs && \ 3 | make clean && \ 4 | mv makefile.machine makefile.machine.bak && \ 5 | cp makefile.qnx_shared.bin makefile.machine && \ 6 | make 7z && make 7za && make 7zr && make sfx && \ 7 | mv ./bin/7z ../${BIN} && mv ./bin/7za ../${BIN} && mv ./bin/7zr ../${BIN} && mv ./bin/7zCon.sfx ../${BIN} && \ 8 | make clean && \ 9 | cp makefile.qnx_shared.so makefile.machine && \ 10 | make 7z && \ 11 | mv ./bin/7z.so ../${BIN} && mv ./bin/Codecs/Rar.so ../${BIN}/Codecs && \ 12 | make clean && \ 13 | mv makefile.machine.bak makefile.machine 14 | echo "All done - look for binaries in ../${BIN}" 15 | -------------------------------------------------------------------------------- /p7zip_16.02/contrib/qnx630sp3/qnx630sp3-static: -------------------------------------------------------------------------------- 1 | BIN="p7zip-4.47-x86-qnx6.static" 2 | cd ../../ && mkdir ../${BIN} && \ 3 | make clean && \ 4 | mv makefile.machine makefile.machine.bak && \ 5 | cp makefile.qnx_static makefile.machine && \ 6 | make 7za && make 7zr && make sfx && \ 7 | mv ./bin/7za ../${BIN} && mv ./bin/7zr ../${BIN} && mv ./bin/7zCon.sfx ../${BIN} ; \ 8 | make clean && \ 9 | mv makefile.machine.bak makefile.machine 10 | echo "All done - look for binaries in ../${BIN}" 11 | -------------------------------------------------------------------------------- /p7zip_16.02/install_local_context_menu.sh: -------------------------------------------------------------------------------- 1 | #! /bin/sh 2 | 3 | tryInstall() 4 | { 5 | prg=$1 6 | 7 | if [ -d ${HOME}/.kde/share/apps/${prg} ] 8 | then 9 | echo "Installing menus for ${prg} ..." 10 | mkdir -p ${HOME}/.kde/share/apps/${prg}/servicemenus 11 | cp GUI/kde/*.desktop ${HOME}/.kde/share/apps/${prg}/servicemenus/ 12 | fi 13 | } 14 | 15 | tryInstall d3lphin 16 | tryInstall dolphin 17 | tryInstall konqueror 18 | 19 | -------------------------------------------------------------------------------- /p7zip_16.02/last_error: -------------------------------------------------------------------------------- 1 | ERROR during : make all_test 2 | -------------------------------------------------------------------------------- /p7zip_16.02/makefile.afl: -------------------------------------------------------------------------------- 1 | # 2 | # makefile for Linux (x86, PPC, alpha ...) 3 | # 4 | 5 | OPTFLAGS=-O -s 6 | 7 | ALLFLAGS=${OPTFLAGS} -pipe \ 8 | -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE \ 9 | -DNDEBUG -D_REENTRANT -DENV_UNIX \ 10 | -D_7ZIP_LARGE_PAGES \ 11 | $(LOCAL_FLAGS) 12 | 13 | CXX=/home/me/TOOLS/afl-1.94b/afl-g++ 14 | CC=/home/me/TOOLS/afl-1.94b/afl-gcc 15 | CC_SHARED=-fPIC 16 | LINK_SHARED=-fPIC -shared 17 | 18 | LOCAL_LIBS=-lpthread 19 | LOCAL_LIBS_DLL=$(LOCAL_LIBS) -ldl 20 | 21 | OBJ_CRC32=$(OBJ_CRC32_C) 22 | OBJ_AES= 23 | 24 | -------------------------------------------------------------------------------- /p7zip_16.02/makefile.aix_gcc: -------------------------------------------------------------------------------- 1 | # 2 | # makefile for AIX 3 | # tested with AIX 5.3 and g++ 4.1.0 4 | # 5 | 6 | OPTFLAGS=-O -s 7 | 8 | ALLFLAGS=${OPTFLAGS} \ 9 | -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGE_FILES \ 10 | -DNDEBUG -D_REENTRANT -DENV_UNIX \ 11 | $(LOCAL_FLAGS) 12 | 13 | CXX=g++ 14 | CC=gcc 15 | CC_SHARED=-fPIC 16 | LINK_SHARED=-fPIC -shared 17 | 18 | LOCAL_LIBS=-lpthread 19 | LOCAL_LIBS_DLL=$(LOCAL_LIBS) -ldl 20 | 21 | OBJ_CRC32=$(OBJ_CRC32_C) 22 | OBJ_AES= 23 | 24 | -------------------------------------------------------------------------------- /p7zip_16.02/makefile.beos: -------------------------------------------------------------------------------- 1 | 2 | OPTFLAGS=-O -s 3 | 4 | ALLFLAGS=${OPTFLAGS} \ 5 | -DENV_BEOS \ 6 | -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE \ 7 | -DNDEBUG -D_REENTRANT -DENV_UNIX \ 8 | $(LOCAL_FLAGS) 9 | 10 | CXX=g++ 11 | CC=gcc 12 | LINK_SHARED=-nostart 13 | 14 | LOCAL_LIBS=-lbe 15 | LOCAL_LIBS_DLL=$(LOCAL_LIBS) 16 | 17 | OBJ_CRC32=$(OBJ_CRC32_C) 18 | OBJ_AES= 19 | 20 | -------------------------------------------------------------------------------- /p7zip_16.02/makefile.crc32: -------------------------------------------------------------------------------- 1 | 2 | # CRC32, C version 3 | OBJ_CRC32_C=7zCrcOpt.o # 7zCrc.o 4 | 5 | # CRC32, ASM version 6 | OBJ_CRC32_x86=7zCrcOpt_asm.o # 7zCrc.o 7 | OBJ_CRC32_x86_64=7zCrcOpt_asm.o # 7zCrc.o 8 | 9 | -------------------------------------------------------------------------------- /p7zip_16.02/makefile.cygwin: -------------------------------------------------------------------------------- 1 | 2 | OPTFLAGS=-O -s 3 | 4 | ALLFLAGS=${OPTFLAGS} \ 5 | -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE \ 6 | -DNDEBUG -D_REENTRANT \ 7 | -DENV_UNIX \ 8 | $(LOCAL_FLAGS) 9 | 10 | CXX=g++ 11 | CC=gcc 12 | CC_SHARED= 13 | LINK_SHARED=-shared 14 | 15 | # Cygwin does not need -ldl 16 | LOCAL_LIBS=-lpthread 17 | LOCAL_LIBS_DLL=$(LOCAL_LIBS) 18 | 19 | OBJ_CRC32=$(OBJ_CRC32_C) 20 | OBJ_AES= 21 | 22 | -------------------------------------------------------------------------------- /p7zip_16.02/makefile.cygwin64: -------------------------------------------------------------------------------- 1 | 2 | OPTFLAGS=-O -s -m64 3 | 4 | ALLFLAGS=${OPTFLAGS} \ 5 | -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE \ 6 | -DNDEBUG -D_REENTRANT \ 7 | -DENV_UNIX \ 8 | $(LOCAL_FLAGS) 9 | 10 | CXX=g++ 11 | CC=gcc 12 | CC_SHARED= 13 | LINK_SHARED=-shared 14 | 15 | # Cygwin does not need -ldl 16 | LOCAL_LIBS=-lpthread 17 | LOCAL_LIBS_DLL=$(LOCAL_LIBS) 18 | 19 | OBJ_CRC32=$(OBJ_CRC32_C) 20 | OBJ_AES= 21 | 22 | -------------------------------------------------------------------------------- /p7zip_16.02/makefile.cygwin64_asm: -------------------------------------------------------------------------------- 1 | 2 | OPTFLAGS=-O -s -m64 3 | 4 | ALLFLAGS=${OPTFLAGS} \ 5 | -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE \ 6 | -DNDEBUG -D_REENTRANT \ 7 | -DENV_UNIX \ 8 | -D_7ZIP_ASM \ 9 | $(LOCAL_FLAGS) 10 | 11 | CXX=g++ 12 | CC=gcc 13 | LINK_SHARED=-shared 14 | ASM=nasm -f win64 -DCYGWIN64 -Dx64 15 | 16 | # Cygwin does not need -ldl 17 | LOCAL_LIBS=-lpthread 18 | LOCAL_LIBS_DLL=$(LOCAL_LIBS) 19 | 20 | CPU=x64 21 | OBJ_CRC32=$(OBJ_CRC32_x86_64) 22 | OBJ_AES=AesOpt.o 23 | -------------------------------------------------------------------------------- /p7zip_16.02/makefile.cygwin_asm: -------------------------------------------------------------------------------- 1 | 2 | OPTFLAGS=-O -s 3 | 4 | ALLFLAGS=${OPTFLAGS} \ 5 | -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE \ 6 | -DNDEBUG -D_REENTRANT \ 7 | -DENV_UNIX \ 8 | -D_7ZIP_ASM \ 9 | $(LOCAL_FLAGS) 10 | 11 | CXX=g++ 12 | CC=gcc 13 | LINK_SHARED=-shared 14 | ASM=nasm -f gnuwin32 15 | 16 | # Cygwin does not need -ldl 17 | LOCAL_LIBS=-lpthread 18 | LOCAL_LIBS_DLL=$(LOCAL_LIBS) 19 | 20 | CPU=x86 21 | OBJ_CRC32=$(OBJ_CRC32_x86) 22 | OBJ_AES=AesOpt.o 23 | 24 | -------------------------------------------------------------------------------- /p7zip_16.02/makefile.cygwin_clang: -------------------------------------------------------------------------------- 1 | 2 | OPTFLAGS=-O 3 | 4 | ALLFLAGS=${OPTFLAGS} \ 5 | -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE \ 6 | -DNDEBUG -D_REENTRANT \ 7 | -DENV_UNIX \ 8 | $(LOCAL_FLAGS) 9 | 10 | CXX=clang++ 11 | CC=clang 12 | CC_SHARED= 13 | LINK_SHARED=-shared 14 | 15 | # Cygwin does not need -ldl 16 | LOCAL_LIBS=-lpthread 17 | LOCAL_LIBS_DLL=$(LOCAL_LIBS) 18 | 19 | OBJ_CRC32=$(OBJ_CRC32_C) 20 | OBJ_AES= 21 | 22 | -------------------------------------------------------------------------------- /p7zip_16.02/makefile.cygwin_clang_asm: -------------------------------------------------------------------------------- 1 | 2 | OPTFLAGS=-O 3 | 4 | ALLFLAGS=${OPTFLAGS} \ 5 | -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE \ 6 | -DNDEBUG -D_REENTRANT \ 7 | -DENV_UNIX \ 8 | -D_7ZIP_ASM \ 9 | $(LOCAL_FLAGS) 10 | 11 | CXX=clang++ 12 | CC=clang 13 | LINK_SHARED=-shared 14 | ASM=nasm -f gnuwin32 15 | 16 | # Cygwin does not need -ldl 17 | LOCAL_LIBS=-lpthread 18 | LOCAL_LIBS_DLL=$(LOCAL_LIBS) 19 | 20 | CPU=x86 21 | OBJ_CRC32=$(OBJ_CRC32_x86) 22 | OBJ_AES=AesOpt.o 23 | 24 | -------------------------------------------------------------------------------- /p7zip_16.02/makefile.djgpp: -------------------------------------------------------------------------------- 1 | # 2 | # makefile for DJGPP 3 | # (available targets for DJGPP : all test clean) 4 | # 5 | 6 | OPTFLAGS=-O -s 7 | 8 | ALLFLAGS=${OPTFLAGS} \ 9 | -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE \ 10 | -DNDEBUG -D_REENTRANT -DENV_UNIX \ 11 | $(LOCAL_FLAGS) 12 | 13 | CXX=gpp 14 | CC=gcc 15 | LINK_SHARED=-shared 16 | 17 | LOCAL_LIBS=-lpthread -lsocket 18 | LOCAL_LIBS_DLL=$(LOCAL_LIBS) 19 | 20 | OBJ_CRC32=$(OBJ_CRC32_C) 21 | OBJ_AES= 22 | 23 | -------------------------------------------------------------------------------- /p7zip_16.02/makefile.freebsd5: -------------------------------------------------------------------------------- 1 | # 2 | # makefile for FreeBSD 5 (x86, PPC, alpha ...) 3 | # 4 | 5 | OPTFLAGS=-O -s 6 | 7 | ALLFLAGS=${OPTFLAGS} \ 8 | -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE \ 9 | -DNDEBUG -D_REENTRANT -DENV_UNIX \ 10 | $(LOCAL_FLAGS) 11 | 12 | CXX=g++ 13 | CC=gcc 14 | LINK_SHARED=-shared 15 | 16 | LOCAL_LIBS=-lc_r 17 | LOCAL_LIBS_DLL=$(LOCAL_LIBS) 18 | 19 | OBJ_CRC32=$(OBJ_CRC32_C) 20 | OBJ_AES= 21 | 22 | -------------------------------------------------------------------------------- /p7zip_16.02/makefile.freebsd6+: -------------------------------------------------------------------------------- 1 | # 2 | # makefile for FreeBSD 6, 7, 8, 9, 10, ... (x86, PPC, alpha ...) 3 | # 4 | 5 | OPTFLAGS=-O -s 6 | 7 | ALLFLAGS=${OPTFLAGS} \ 8 | -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE \ 9 | -DNDEBUG -D_REENTRANT -DENV_UNIX \ 10 | $(LOCAL_FLAGS) 11 | 12 | CXX=g++ 13 | CC=gcc 14 | LINK_SHARED=-shared 15 | 16 | LOCAL_LIBS=-lpthread 17 | LOCAL_LIBS_DLL=$(LOCAL_LIBS) 18 | 19 | OBJ_CRC32=$(OBJ_CRC32_C) 20 | OBJ_AES= 21 | 22 | -------------------------------------------------------------------------------- /p7zip_16.02/makefile.gprof: -------------------------------------------------------------------------------- 1 | 2 | OPTFLAGS=-O -g -pg 3 | ALLFLAGS=${OPTFLAGS} \ 4 | -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE \ 5 | -DNDEBUG -D_REENTRANT -DENV_UNIX \ 6 | $(LOCAL_FLAGS) 7 | 8 | CXX=g++ 9 | CC=gcc 10 | LINK_SHARED=-shared 11 | 12 | LOCAL_LIBS=-lpthread 13 | LOCAL_LIBS_DLL=$(LOCAL_LIBS) -ldl 14 | # static linkage 15 | # LOCAL_LIBS=-static -lpthread 16 | 17 | OBJ_CRC32=$(OBJ_CRC32_C) 18 | OBJ_AES= 19 | 20 | -------------------------------------------------------------------------------- /p7zip_16.02/makefile.haiku: -------------------------------------------------------------------------------- 1 | 2 | OPTFLAGS=-O -s 3 | 4 | ALLFLAGS=${OPTFLAGS} \ 5 | -DENV_BEOS -DENV_HAIKU \ 6 | -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE \ 7 | -DNDEBUG -D_REENTRANT -DENV_UNIX \ 8 | $(LOCAL_FLAGS) 9 | 10 | CXX=g++ 11 | CC=gcc 12 | LINK_SHARED=-nostart 13 | 14 | LOCAL_LIBS=-lbe 15 | LOCAL_LIBS_DLL=$(LOCAL_LIBS) 16 | 17 | OBJ_CRC32=$(OBJ_CRC32_C) 18 | OBJ_AES= 19 | 20 | -------------------------------------------------------------------------------- /p7zip_16.02/makefile.hpux-acc: -------------------------------------------------------------------------------- 1 | 2 | OPTFLAGS=-O 3 | 4 | ALLFLAGS=${OPTFLAGS} -mt -DD64 +Z +Ww2101 \ 5 | -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE \ 6 | -DNDEBUG -D_REENTRANT -DENV_UNIX \ 7 | $(LOCAL_FLAGS) 8 | 9 | CXX=aCC -AA 10 | CC=aCC -Ae 11 | 12 | LINK_SHARED=-b 13 | LOCAL_LIBS= 14 | LOCAL_LIBS_DLL=$(LOCAL_LIBS) 15 | 16 | OBJ_CRC32=$(OBJ_CRC32_C) 17 | OBJ_AES= 18 | 19 | -------------------------------------------------------------------------------- /p7zip_16.02/makefile.hpux-acc_64: -------------------------------------------------------------------------------- 1 | 2 | # build 64 bits program (Tested on HPUX with Itanium CPU) 3 | 4 | OPTFLAGS=-O 5 | 6 | ALLFLAGS=${OPTFLAGS} -mt +DD64 +Z +Ww2101 \ 7 | -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE \ 8 | -DNDEBUG -D_REENTRANT -DENV_UNIX \ 9 | $(LOCAL_FLAGS) 10 | 11 | CXX=aCC -AA 12 | CC=aCC -Ae 13 | 14 | LINK_SHARED=-b 15 | LOCAL_LIBS= 16 | LOCAL_LIBS_DLL=$(LOCAL_LIBS) 17 | 18 | OBJ_CRC32=$(OBJ_CRC32_C) 19 | OBJ_AES= 20 | 21 | -------------------------------------------------------------------------------- /p7zip_16.02/makefile.hpux-gcc: -------------------------------------------------------------------------------- 1 | # 2 | # makefile for HP-UX 11 3 | # 4 | 5 | OPTFLAGS=-O -s 6 | 7 | ALLFLAGS=${OPTFLAGS} \ 8 | -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE \ 9 | -DNDEBUG -D_REENTRANT -DENV_UNIX \ 10 | $(LOCAL_FLAGS) 11 | 12 | CXX=g++ 13 | CC=gcc 14 | CC_SHARED=-fPIC 15 | LINK_SHARED=-fPIC -shared 16 | 17 | LOCAL_LIBS=-lpthread 18 | LOCAL_LIBS_DLL=$(LOCAL_LIBS) 19 | 20 | OBJ_CRC32=$(OBJ_CRC32_C) 21 | OBJ_AES= 22 | 23 | -------------------------------------------------------------------------------- /p7zip_16.02/makefile.linux_amd64: -------------------------------------------------------------------------------- 1 | 2 | OPTFLAGS=-O -s 3 | 4 | # use "-m32" to have a 32bits executable 5 | ALLFLAGS=-m64 ${OPTFLAGS} -pipe \ 6 | -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE \ 7 | -DNDEBUG -D_REENTRANT -DENV_UNIX \ 8 | -D_7ZIP_LARGE_PAGES \ 9 | $(LOCAL_FLAGS) 10 | 11 | CXX=g++ 12 | CC=gcc 13 | CC_SHARED=-fPIC 14 | LINK_SHARED=-fPIC -shared 15 | 16 | PRE_COMPILED_HEADER=StdAfx.h.gch 17 | 18 | LOCAL_LIBS=-lpthread 19 | LOCAL_LIBS_DLL=$(LOCAL_LIBS) -ldl 20 | 21 | OBJ_CRC32=$(OBJ_CRC32_C) 22 | OBJ_AES= 23 | 24 | -------------------------------------------------------------------------------- /p7zip_16.02/makefile.linux_amd64_asm: -------------------------------------------------------------------------------- 1 | 2 | 3 | # OPTFLAGS=-Ofast -flto -march=native -funroll-loops -s 4 | OPTFLAGS=-O -s 5 | 6 | # use "-m32" to have a 32bits executable 7 | ALLFLAGS=-m64 ${OPTFLAGS} -pipe \ 8 | -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE \ 9 | -DNDEBUG -D_REENTRANT -DENV_UNIX \ 10 | -D_7ZIP_LARGE_PAGES \ 11 | -D_7ZIP_ASM \ 12 | $(LOCAL_FLAGS) 13 | 14 | CXX=g++ 15 | CC=gcc 16 | CC_SHARED=-fPIC 17 | LINK_SHARED=-fPIC -shared 18 | ASM=yasm -f elf -m amd64 -Dx64 19 | 20 | PRE_COMPILED_HEADER=StdAfx.h.gch 21 | 22 | LOCAL_LIBS=-lpthread 23 | LOCAL_LIBS_DLL=$(LOCAL_LIBS) -ldl 24 | 25 | CPU=x64 26 | OBJ_CRC32=$(OBJ_CRC32_x86_64) 27 | OBJ_AES=AesOpt.o 28 | 29 | -------------------------------------------------------------------------------- /p7zip_16.02/makefile.linux_amd64_asm_icc: -------------------------------------------------------------------------------- 1 | # 2 | # makefile for Linux (x86_64) 3 | # 4 | 5 | # OPTFLAGS=-fast -msse3 -s 6 | OPTFLAGS=-m64 -O2 -march=core2 # -ipo # -no-gcc 7 | 8 | ALLFLAGS=${OPTFLAGS} \ 9 | -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE \ 10 | -DNDEBUG -D_REENTRANT -DENV_UNIX \ 11 | -D_7ZIP_LARGE_PAGES \ 12 | -D_7ZIP_ASM \ 13 | $(LOCAL_FLAGS) 14 | 15 | CXX=icpc -i-static 16 | CC=icc 17 | CC_SHARED=-fPIC 18 | LINK_SHARED=-fPIC -shared 19 | ASM=yasm -f elf -m amd64 -Dx64 20 | 21 | PRE_COMPILED_HEADER=StdAfx.h.gch 22 | 23 | LOCAL_LIBS=-lpthread 24 | LOCAL_LIBS_DLL=$(LOCAL_LIBS) -ldl 25 | 26 | CPU=x64 27 | OBJ_CRC32=$(OBJ_CRC32_x86_64) 28 | OBJ_AES=AesOpt.o 29 | 30 | -------------------------------------------------------------------------------- /p7zip_16.02/makefile.linux_amd64_sanitizer: -------------------------------------------------------------------------------- 1 | # 2 | # makefile for Linux (x86, PPC, alpha ...) 3 | # 4 | 5 | OPTFLAGS=-g2 -fsanitize=address -fno-omit-frame-pointer 6 | # OPTFLAGS=-g2 -fsanitize=thread -fno-omit-frame-pointer 7 | #OPTFLAGS=-g2 -fsanitize=undefined -ftrapv -fsanitize=address -fsanitize=undefined -fno-sanitize=alignment -fno-omit-frame-pointer 8 | 9 | ALLFLAGS=${OPTFLAGS} -pipe \ 10 | -DDONT_REDEFINE_NEW \ 11 | -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE \ 12 | -DNDEBUG -D_REENTRANT -DENV_UNIX \ 13 | -D_7ZIP_LARGE_PAGES \ 14 | $(LOCAL_FLAGS) 15 | 16 | CXX=g++ 17 | CC=gcc 18 | CC_SHARED=-fPIC 19 | LINK_SHARED=-fPIC -shared 20 | 21 | LOCAL_LIBS=-lpthread 22 | LOCAL_LIBS_DLL=$(LOCAL_LIBS) -ldl 23 | 24 | OBJ_CRC32=$(OBJ_CRC32_C) 25 | OBJ_AES= 26 | 27 | -------------------------------------------------------------------------------- /p7zip_16.02/makefile.linux_any_cpu: -------------------------------------------------------------------------------- 1 | # 2 | # makefile for Linux (x86, PPC, alpha ...) 3 | # 4 | 5 | OPTFLAGS=-O -s 6 | 7 | ALLFLAGS=${OPTFLAGS} -pipe \ 8 | -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE \ 9 | -DNDEBUG -D_REENTRANT -DENV_UNIX \ 10 | -D_7ZIP_LARGE_PAGES \ 11 | $(LOCAL_FLAGS) 12 | 13 | CXX=g++ 14 | CC=gcc 15 | CC_SHARED=-fPIC 16 | LINK_SHARED=-fPIC -shared 17 | 18 | LOCAL_LIBS=-lpthread 19 | LOCAL_LIBS_DLL=$(LOCAL_LIBS) -ldl 20 | 21 | OBJ_CRC32=$(OBJ_CRC32_C) 22 | OBJ_AES= 23 | 24 | -------------------------------------------------------------------------------- /p7zip_16.02/makefile.linux_any_cpu_gcc_4.X: -------------------------------------------------------------------------------- 1 | # 2 | # makefile for Linux (x86, PPC, alpha ...) 3 | # 4 | 5 | OPTFLAGS=-O -s 6 | 7 | ALLFLAGS=${OPTFLAGS} -pipe \ 8 | -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE \ 9 | -DNDEBUG -D_REENTRANT -DENV_UNIX \ 10 | -D_7ZIP_LARGE_PAGES \ 11 | $(LOCAL_FLAGS) 12 | 13 | ALLFLAGS_CPP=-DENV_HAVE_GCCVISIBILITYPATCH -fvisibility=hidden -fvisibility-inlines-hidden 14 | 15 | CXX=g++ 16 | CC=gcc 17 | CC_SHARED=-fPIC 18 | LINK_SHARED=-fPIC -shared 19 | 20 | PRE_COMPILED_HEADER=StdAfx.h.gch 21 | 22 | LOCAL_LIBS=-lpthread 23 | LOCAL_LIBS_DLL=$(LOCAL_LIBS) -ldl 24 | 25 | OBJ_CRC32=$(OBJ_CRC32_C) 26 | OBJ_AES= 27 | 28 | -------------------------------------------------------------------------------- /p7zip_16.02/makefile.linux_clang_amd64_asm: -------------------------------------------------------------------------------- 1 | 2 | OPTFLAGS=-O3 3 | 4 | ALLFLAGS=-m64 ${OPTFLAGS} -pipe \ 5 | -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE \ 6 | -DNDEBUG -D_REENTRANT -DENV_UNIX \ 7 | -D_7ZIP_LARGE_PAGES \ 8 | -D_7ZIP_ASM \ 9 | $(LOCAL_FLAGS) 10 | 11 | CXX=clang++ 12 | CC=clang 13 | CC_SHARED=-fPIC 14 | LINK_SHARED=-fPIC -shared 15 | ASM=yasm -f elf -m amd64 -Dx64 16 | 17 | PRE_COMPILED_HEADER=StdAfx.h.gch 18 | 19 | LOCAL_LIBS=-s -lpthread 20 | LOCAL_LIBS_DLL=$(LOCAL_LIBS) -ldl 21 | 22 | CPU=x64 23 | OBJ_CRC32=$(OBJ_CRC32_x86_64) 24 | OBJ_AES=AesOpt.o 25 | 26 | -------------------------------------------------------------------------------- /p7zip_16.02/makefile.linux_clang_amd64_asm_sanitize: -------------------------------------------------------------------------------- 1 | 2 | OPTFLAGS=-g2 -fsanitize=undefined -ftrapv -fsanitize=address -fno-omit-frame-pointer -fno-sanitize=alignment 3 | 4 | 5 | ALLFLAGS=-m64 ${OPTFLAGS} -pipe \ 6 | -DDONT_REDEFINE_NEW \ 7 | -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE \ 8 | -DNDEBUG -D_REENTRANT -DENV_UNIX \ 9 | -D_7ZIP_LARGE_PAGES \ 10 | -D_7ZIP_ASM \ 11 | $(LOCAL_FLAGS) 12 | 13 | CXX=clang++ 14 | CC=clang 15 | CC_SHARED=-fPIC 16 | LINK_SHARED=-fPIC -shared 17 | ASM=yasm -f elf -m amd64 -Dx64 18 | 19 | PRE_COMPILED_HEADER=StdAfx.h.gch 20 | 21 | LOCAL_LIBS=-s -lpthread 22 | LOCAL_LIBS_DLL=$(LOCAL_LIBS) -ldl 23 | 24 | CPU=x64 25 | OBJ_CRC32=$(OBJ_CRC32_x86_64) 26 | OBJ_AES=AesOpt.o 27 | 28 | -------------------------------------------------------------------------------- /p7zip_16.02/makefile.linux_cross_aarch64: -------------------------------------------------------------------------------- 1 | # 2 | # makefile for Linux (CROSS ARM) 3 | # 4 | 5 | OPTFLAGS=-O -s 6 | 7 | ALLFLAGS=${OPTFLAGS} -pipe \ 8 | -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE \ 9 | -DNDEBUG -D_REENTRANT -DENV_UNIX \ 10 | -D_7ZIP_LARGE_PAGES \ 11 | $(LOCAL_FLAGS) 12 | 13 | CXX=aarch64-linux-gnu-g++ 14 | CC=aarch64-linux-gnu-gcc 15 | CC_SHARED=-fPIC -DPIC 16 | LINK_SHARED=-fPIC -DPIC -shared 17 | 18 | TOOLS=qemu-aarch64 /usr/aarch64-linux-gnu/lib/ld-linux-aarch64.so.1 --library-path /usr/aarch64-linux-gnu/lib 19 | 20 | LOCAL_LIBS=-lpthread 21 | LOCAL_LIBS_DLL=$(LOCAL_LIBS) -ldl 22 | 23 | OBJ_CRC32=$(OBJ_CRC32_C) 24 | OBJ_AES= 25 | 26 | -------------------------------------------------------------------------------- /p7zip_16.02/makefile.linux_cross_arm: -------------------------------------------------------------------------------- 1 | # 2 | # makefile for Linux (CROSS ARM) 3 | # 4 | 5 | OPTFLAGS=-O -s 6 | 7 | ALLFLAGS=${OPTFLAGS} -pipe \ 8 | -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE \ 9 | -DNDEBUG -D_REENTRANT -DENV_UNIX \ 10 | -D_7ZIP_LARGE_PAGES \ 11 | $(LOCAL_FLAGS) 12 | 13 | CXX=arm-linux-gnueabi-g++ 14 | CC=arm-linux-gnueabi-gcc 15 | CC_SHARED=-fPIC -DPIC 16 | LINK_SHARED=-fPIC -DPIC -shared 17 | 18 | TOOLS=qemu-arm /usr/arm-linux-gnueabi/lib/ld-linux.so.3 --library-path /usr/arm-linux-gnueabi/lib 19 | 20 | LOCAL_LIBS=-lpthread 21 | LOCAL_LIBS_DLL=$(LOCAL_LIBS) -ldl 22 | 23 | OBJ_CRC32=$(OBJ_CRC32_C) 24 | OBJ_AES= 25 | 26 | -------------------------------------------------------------------------------- /p7zip_16.02/makefile.linux_cross_djgpp: -------------------------------------------------------------------------------- 1 | # 2 | # makefile for DJGPP 3 | # (available targets for DJGPP : all test clean) 4 | # 5 | # 6 | # export DJGPP_HOME=/home/me/djgpp 7 | # 8 | 9 | 10 | OPTFLAGS=-O -s 11 | 12 | ALLFLAGS=${OPTFLAGS} \ 13 | -I${DJGPP_HOME}/include \ 14 | -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE \ 15 | -DNDEBUG -D_REENTRANT -DENV_UNIX \ 16 | $(LOCAL_FLAGS) 17 | 18 | CXX=${DJGPP_HOME}/bin/i586-pc-msdosdjgpp-g++ 19 | CC=${DJGPP_HOME}/bin/i586-pc-msdosdjgpp-gcc 20 | LINK_SHARED=-shared 21 | 22 | LOCAL_LIBS=-L${DJGPP_HOME}/lib -lpthread -lsocket 23 | LOCAL_LIBS_DLL=$(LOCAL_LIBS) 24 | 25 | OBJ_CRC32=$(OBJ_CRC32_C) 26 | OBJ_AES= 27 | 28 | -------------------------------------------------------------------------------- /p7zip_16.02/makefile.linux_cross_m68k: -------------------------------------------------------------------------------- 1 | # 2 | # makefile for Linux (CROSS M68K) 3 | # 4 | 5 | OPTFLAGS=-O -s 6 | 7 | ALLFLAGS=${OPTFLAGS} -pipe \ 8 | -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE \ 9 | -DNDEBUG -D_REENTRANT -DENV_UNIX \ 10 | -D_7ZIP_LARGE_PAGES \ 11 | $(LOCAL_FLAGS) 12 | 13 | # qemu support only ColdFire CPU ? 14 | CXX=m68k-linux-gnu-g++ -mcpu=5206 -msoft-float 15 | CC=m68k-linux-gnu-gcc -mcpu=5206 -msoft-float 16 | CC_SHARED=-fPIC -DPIC 17 | LINK_SHARED=-fPIC -DPIC -shared 18 | 19 | TOOLS=qemu-m68k /usr/m68k-linux-gnu/lib/ld.so.1 --library-path /usr/m68k-linux-gnu/lib 20 | 21 | LOCAL_LIBS=-lpthread 22 | LOCAL_LIBS_DLL=$(LOCAL_LIBS) -ldl 23 | 24 | OBJ_CRC32=$(OBJ_CRC32_C) 25 | OBJ_AES= 26 | 27 | -------------------------------------------------------------------------------- /p7zip_16.02/makefile.linux_cross_mipsel: -------------------------------------------------------------------------------- 1 | # 2 | # makefile for Linux (CROSS MIPSEL) 3 | # 4 | # 5 | 6 | 7 | OPTFLAGS=-O -s 8 | 9 | ALLFLAGS=${OPTFLAGS} -pipe \ 10 | -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE \ 11 | -DNDEBUG -D_REENTRANT -DENV_UNIX \ 12 | -D_7ZIP_LARGE_PAGES \ 13 | $(LOCAL_FLAGS) 14 | 15 | CXX=mipsel-linux-gnu-g++ 16 | CC=mipsel-linux-gnu-gcc 17 | CC_SHARED=-fPIC -DPIC 18 | LINK_SHARED=-fPIC -DPIC -shared 19 | 20 | TOOLS=qemu-mipsel /usr/mipsel-linux-gnu/lib/ld.so.1 --library-path /usr/mipsel-linux-gnu/lib 21 | 22 | LOCAL_LIBS=-lpthread 23 | LOCAL_LIBS_DLL=$(LOCAL_LIBS) -ldl 24 | 25 | OBJ_CRC32=$(OBJ_CRC32_C) 26 | OBJ_AES= 27 | 28 | -------------------------------------------------------------------------------- /p7zip_16.02/makefile.linux_cross_ppc: -------------------------------------------------------------------------------- 1 | # 2 | # makefile for Linux (CROSS ARM) 3 | # 4 | 5 | OPTFLAGS=-O -s 6 | 7 | ALLFLAGS=${OPTFLAGS} -pipe \ 8 | -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE \ 9 | -DNDEBUG -D_REENTRANT -DENV_UNIX \ 10 | -D_7ZIP_LARGE_PAGES \ 11 | $(LOCAL_FLAGS) 12 | 13 | CXX=powerpc-linux-gnu-g++ 14 | CC=powerpc-linux-gnu-gcc 15 | CC_SHARED=-fPIC -DPIC 16 | LINK_SHARED=-fPIC -DPIC -shared 17 | 18 | TOOLS=qemu-ppc /usr/powerpc-linux-gnu/lib/ld.so.1 --library-path /usr/powerpc-linux-gnu/lib 19 | 20 | LOCAL_LIBS=-lpthread 21 | LOCAL_LIBS_DLL=$(LOCAL_LIBS) -ldl 22 | 23 | OBJ_CRC32=$(OBJ_CRC32_C) 24 | OBJ_AES= 25 | 26 | -------------------------------------------------------------------------------- /p7zip_16.02/makefile.linux_cross_ppc64: -------------------------------------------------------------------------------- 1 | # 2 | # makefile for Linux (CROSS ARM) 3 | # 4 | 5 | OPTFLAGS=-O -s 6 | 7 | ALLFLAGS=${OPTFLAGS} -pipe \ 8 | -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE \ 9 | -DNDEBUG -D_REENTRANT -DENV_UNIX \ 10 | -D_7ZIP_LARGE_PAGES \ 11 | $(LOCAL_FLAGS) 12 | 13 | CXX=powerpc-linux-gnu-g++ -m64 14 | CC=powerpc-linux-gnu-gcc -m64 15 | CC_SHARED=-fPIC -DPIC 16 | LINK_SHARED=-fPIC -DPIC -shared 17 | 18 | TOOLS=qemu-ppc64 /usr/powerpc-linux-gnu/lib64/ld64.so.1 --library-path /usr/powerpc-linux-gnu/lib64 19 | 20 | LOCAL_LIBS=-lpthread 21 | LOCAL_LIBS_DLL=$(LOCAL_LIBS) -ldl 22 | 23 | OBJ_CRC32=$(OBJ_CRC32_C) 24 | OBJ_AES= 25 | 26 | -------------------------------------------------------------------------------- /p7zip_16.02/makefile.linux_cross_ppc64le: -------------------------------------------------------------------------------- 1 | # 2 | # makefile for Linux (CROSS ARM) 3 | # 4 | 5 | OPTFLAGS=-O -s 6 | 7 | ALLFLAGS=${OPTFLAGS} -pipe \ 8 | -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE \ 9 | -DNDEBUG -D_REENTRANT -DENV_UNIX \ 10 | -D_7ZIP_LARGE_PAGES \ 11 | $(LOCAL_FLAGS) 12 | 13 | CXX=powerpc64le-linux-gnu-g++ -m64 14 | CC=powerpc64le-linux-gnu-gcc -m64 15 | CC_SHARED=-fPIC -DPIC 16 | LINK_SHARED=-fPIC -DPIC -shared 17 | 18 | TOOLS=qemu-ppc64le /usr/powerpc64le-linux-gnu/lib/ld64.so.2 --library-path /usr/powerpc64le-linux-gnu/lib 19 | 20 | LOCAL_LIBS=-lpthread 21 | LOCAL_LIBS_DLL=$(LOCAL_LIBS) -ldl 22 | 23 | OBJ_CRC32=$(OBJ_CRC32_C) 24 | OBJ_AES= 25 | 26 | -------------------------------------------------------------------------------- /p7zip_16.02/makefile.linux_cross_s390x: -------------------------------------------------------------------------------- 1 | # 2 | # makefile for Linux (CROSS s390x) 3 | # 4 | 5 | OPTFLAGS=-O -s 6 | 7 | ALLFLAGS=${OPTFLAGS} -pipe \ 8 | -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE \ 9 | -DNDEBUG -D_REENTRANT -DENV_UNIX \ 10 | -D_7ZIP_LARGE_PAGES \ 11 | $(LOCAL_FLAGS) 12 | 13 | CXX=s390x-linux-gnu-g++ -m64 14 | CC=s390x-linux-gnu-gcc -m64 15 | CC_SHARED=-fPIC -DPIC 16 | LINK_SHARED=-fPIC -DPIC -shared 17 | 18 | TOOLS=qemu-s390x /usr/s390x-linux-gnu/lib/ld64.so.1 --library-path /usr/s390x-linux-gnu/lib 19 | 20 | LOCAL_LIBS=-lpthread 21 | LOCAL_LIBS_DLL=$(LOCAL_LIBS) -ldl 22 | 23 | OBJ_CRC32=$(OBJ_CRC32_C) 24 | OBJ_AES= 25 | 26 | -------------------------------------------------------------------------------- /p7zip_16.02/makefile.linux_cross_sparc64: -------------------------------------------------------------------------------- 1 | # 2 | # makefile for Linux (CROSS SPARC64) 3 | # 4 | 5 | OPTFLAGS=-O -s 6 | 7 | ALLFLAGS=${OPTFLAGS} -pipe \ 8 | -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE \ 9 | -DNDEBUG -D_REENTRANT -DENV_UNIX \ 10 | -D_7ZIP_LARGE_PAGES \ 11 | $(LOCAL_FLAGS) 12 | 13 | CXX=sparc64-linux-gnu-g++ 14 | CC=sparc64-linux-gnu-gcc 15 | CC_SHARED=-fPIC -DPIC 16 | LINK_SHARED=-fPIC -DPIC -shared 17 | 18 | TOOLS=qemu-sparc64 /usr/sparc64-linux-gnu/lib/ld-linux.so.2 --library-path /usr/sparc64-linux-gnu/lib 19 | 20 | LOCAL_LIBS=-lpthread 21 | LOCAL_LIBS_DLL=$(LOCAL_LIBS) -ldl 22 | 23 | OBJ_CRC32=$(OBJ_CRC32_C) 24 | OBJ_AES= 25 | 26 | -------------------------------------------------------------------------------- /p7zip_16.02/makefile.linux_gcc6_sanitize: -------------------------------------------------------------------------------- 1 | # 2 | # makefile for Linux (x86, PPC, alpha ...) 3 | # 4 | 5 | OPTFLAGS=-O3 -fsanitize=undefined -fsanitize=bounds-strict -Wshift-overflow=2 -fdelete-null-pointer-checks -Wnull-dereference -fsanitize=bounds-strict -fno-sanitize=alignment 6 | 7 | ALLFLAGS=${OPTFLAGS} -pipe \ 8 | -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE \ 9 | -DNDEBUG -D_REENTRANT -DENV_UNIX \ 10 | -D_7ZIP_LARGE_PAGES \ 11 | $(LOCAL_FLAGS) 12 | 13 | CXX=g++-6 14 | CC=gcc-6 15 | CC_SHARED=-fPIC 16 | LINK_SHARED=-fPIC -shared 17 | 18 | LOCAL_LIBS=-lpthread 19 | LOCAL_LIBS_DLL=$(LOCAL_LIBS) -ldl 20 | 21 | OBJ_CRC32=$(OBJ_CRC32_C) 22 | OBJ_AES= 23 | 24 | -------------------------------------------------------------------------------- /p7zip_16.02/makefile.linux_gcc_2.95_no_need_for_libstdc: -------------------------------------------------------------------------------- 1 | 2 | OPTFLAGS=-O2 -s 3 | 4 | ALLFLAGS=${OPTFLAGS} -pipe \ 5 | -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE \ 6 | -DNDEBUG -D_REENTRANT -DENV_UNIX \ 7 | -D_7ZIP_LARGE_PAGES \ 8 | -D_7ZIP_ASM \ 9 | $(LOCAL_FLAGS) 10 | 11 | CXX=gcc 12 | CC=gcc 13 | LINK_SHARED=-shared 14 | ASM=nasm -f elf 15 | 16 | LOCAL_LIBS=-lpthread 17 | LOCAL_LIBS_DLL=$(LOCAL_LIBS) -ldl 18 | 19 | CPU=x86 20 | OBJ_CRC32=$(OBJ_CRC32_x86) 21 | OBJ_AES=AesOpt.o 22 | 23 | -------------------------------------------------------------------------------- /p7zip_16.02/makefile.linux_other: -------------------------------------------------------------------------------- 1 | # 2 | # makefile for Linux (other) 3 | # 4 | 5 | OPTFLAGS=-O -s 6 | 7 | ALLFLAGS=${OPTFLAGS} -pipe \ 8 | -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE \ 9 | -DNDEBUG -D_REENTRANT -DENV_UNIX \ 10 | -D_7ZIP_LARGE_PAGES \ 11 | $(LOCAL_FLAGS) 12 | 13 | CXX=/home/me/BUILDROOT/buildroot-2010.11/output/staging/usr/bin/i386-unknown-linux-uclibc-g++ 14 | CC=/home/me/BUILDROOT/buildroot-2010.11/output/staging/usr/bin/i386-unknown-linux-uclibc-gcc 15 | CC_SHARED=-fPIC 16 | LINK_SHARED=-fPIC -shared 17 | 18 | #LOCAL_LIBS=-L,/home/me/BUILDROOT/buildroot-2010.11/output/staging/usr/lib -Wl,-rpath,/home/me/BUILDROOT/buildroot-2010.11/output/staging/usr/lib -lpthread 19 | LOCAL_LIBS=-lpthread 20 | LOCAL_LIBS_DLL=$(LOCAL_LIBS) -ldl 21 | 22 | OBJ_CRC32=$(OBJ_CRC32_C) 23 | OBJ_AES= 24 | 25 | -------------------------------------------------------------------------------- /p7zip_16.02/makefile.linux_s390x: -------------------------------------------------------------------------------- 1 | # 2 | # makefile for Linux (IBM z/Series Mainframe with s390x CPU) 3 | # 4 | # tested under SUSE Enterprise Linux 10 5 | 6 | OPTFLAGS=-O -m31 -s 7 | 8 | ALLFLAGS=${OPTFLAGS} -pipe \ 9 | -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE \ 10 | -DNDEBUG -D_REENTRANT -DENV_UNIX \ 11 | -D_7ZIP_LARGE_PAGES \ 12 | $(LOCAL_FLAGS) 13 | 14 | CXX=g++ 15 | CC=gcc 16 | CC_SHARED=-fPIC 17 | LINK_SHARED=-fPIC -shared 18 | 19 | LOCAL_LIBS=-lpthread 20 | LOCAL_LIBS_DLL=$(LOCAL_LIBS) -ldl 21 | 22 | OBJ_CRC32=$(OBJ_CRC32_C) 23 | OBJ_AES= 24 | 25 | -------------------------------------------------------------------------------- /p7zip_16.02/makefile.linux_scan-build: -------------------------------------------------------------------------------- 1 | # 2 | # makefile for Linux (x86, PPC, alpha ...) 3 | # 4 | 5 | #OPTFLAGS=-O -s 6 | 7 | ALLFLAGS=${OPTFLAGS} -pipe \ 8 | -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE \ 9 | -DNDEBUG -D_REENTRANT -DENV_UNIX \ 10 | -D_7ZIP_LARGE_PAGES \ 11 | $(LOCAL_FLAGS) 12 | 13 | #CXX=g++ 14 | #CC=gcc 15 | CC_SHARED=-fPIC 16 | LINK_SHARED=-fPIC -shared 17 | 18 | LOCAL_LIBS=-lpthread 19 | LOCAL_LIBS_DLL=$(LOCAL_LIBS) -ldl 20 | 21 | OBJ_CRC32=$(OBJ_CRC32_C) 22 | OBJ_AES= 23 | 24 | -------------------------------------------------------------------------------- /p7zip_16.02/makefile.linux_valgrind: -------------------------------------------------------------------------------- 1 | # 2 | # makefile for Linux (x86, PPC, alpha ...) 3 | # 4 | 5 | OPTFLAGS=-g1 6 | 7 | ALLFLAGS=${OPTFLAGS} -pipe \ 8 | -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE \ 9 | -DNDEBUG -D_REENTRANT -DENV_UNIX \ 10 | -D_7ZIP_LARGE_PAGES \ 11 | $(LOCAL_FLAGS) 12 | 13 | CXX=g++ 14 | CC=gcc 15 | CC_SHARED=-fPIC 16 | LINK_SHARED=-fPIC -shared 17 | 18 | LOCAL_LIBS=-lpthread 19 | LOCAL_LIBS_DLL=$(LOCAL_LIBS) -ldl 20 | 21 | TOOLS=valgrind --tool=memcheck --leak-check=full --show-reachable=yes --log-file="/tmp/traces_valgrind/valgrind_%p" 22 | 23 | OBJ_CRC32=$(OBJ_CRC32_C) 24 | OBJ_AES= 25 | 26 | -------------------------------------------------------------------------------- /p7zip_16.02/makefile.linux_x32: -------------------------------------------------------------------------------- 1 | 2 | OPTFLAGS=-O -s 3 | 4 | # use "-m32" to have a 32bits executable 5 | ALLFLAGS=-mx32 ${OPTFLAGS} -pipe \ 6 | -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE \ 7 | -DNDEBUG -D_REENTRANT -DENV_UNIX \ 8 | -D_7ZIP_LARGE_PAGES \ 9 | $(LOCAL_FLAGS) 10 | 11 | CXX=g++ 12 | CC=gcc 13 | CC_SHARED=-fPIC 14 | LINK_SHARED=-fPIC -shared 15 | 16 | PRE_COMPILED_HEADER=StdAfx.h.gch 17 | 18 | LOCAL_LIBS=-lpthread 19 | LOCAL_LIBS_DLL=$(LOCAL_LIBS) -ldl 20 | 21 | OBJ_CRC32=$(OBJ_CRC32_C) 22 | OBJ_AES= 23 | 24 | -------------------------------------------------------------------------------- /p7zip_16.02/makefile.linux_x86_asm_gcc_4.X: -------------------------------------------------------------------------------- 1 | # 2 | # makefile for Linux (x86, PPC, alpha ...) 3 | # 4 | 5 | # OPTFLAGS=-mfpmath=sse -Ofast -flto -march=native -funroll-loops -s 6 | OPTFLAGS=-O -s 7 | 8 | ALLFLAGS=${OPTFLAGS} -pipe -m32 \ 9 | -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE \ 10 | -DNDEBUG -D_REENTRANT -DENV_UNIX \ 11 | -D_7ZIP_LARGE_PAGES \ 12 | -D_7ZIP_ASM \ 13 | $(LOCAL_FLAGS) 14 | 15 | ALLFLAGS_CPP=-DENV_HAVE_GCCVISIBILITYPATCH -fvisibility=hidden -fvisibility-inlines-hidden 16 | 17 | CXX=g++ 18 | CC=gcc 19 | CC_SHARED=-fPIC 20 | LINK_SHARED=-fPIC -shared 21 | ASM=nasm -f elf 22 | 23 | PRE_COMPILED_HEADER=StdAfx.h.gch 24 | 25 | LOCAL_LIBS=-lpthread 26 | LOCAL_LIBS_DLL=$(LOCAL_LIBS) -ldl 27 | 28 | CPU=x86 29 | OBJ_CRC32=$(OBJ_CRC32_x86) 30 | OBJ_AES=AesOpt.o 31 | 32 | -------------------------------------------------------------------------------- /p7zip_16.02/makefile.linux_x86_asm_gcc_4.X_fltk: -------------------------------------------------------------------------------- 1 | # 2 | # makefile for Linux (x86, PPC, alpha ...) 3 | # 4 | 5 | OPTFLAGS=-O -s 6 | 7 | ALLFLAGS=${OPTFLAGS} -m32 -pipe \ 8 | -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE \ 9 | -DNDEBUG -D_REENTRANT -DENV_UNIX -DUSE_FLTK \ 10 | -D_7ZIP_LARGE_PAGES \ 11 | -D_7ZIP_ASM \ 12 | $(LOCAL_FLAGS) 13 | 14 | ALLFLAGS_CPP=-DENV_HAVE_GCCVISIBILITYPATCH -fvisibility=hidden -fvisibility-inlines-hidden `fltk-config --cxxflags` 15 | 16 | CXX=g++ 17 | CC=gcc 18 | CC_SHARED=-fPIC 19 | LINK_SHARED=-fPIC -shared 20 | ASM=nasm -f elf 21 | 22 | PRE_COMPILED_HEADER=StdAfx.h.gch 23 | 24 | LOCAL_LIBS=-lpthread `fltk-config --ldflags` 25 | LOCAL_LIBS_DLL=$(LOCAL_LIBS) -ldl 26 | 27 | CPU=x86 28 | OBJ_CRC32=$(OBJ_CRC32_x86) 29 | OBJ_AES=AesOpt.o 30 | 31 | -------------------------------------------------------------------------------- /p7zip_16.02/makefile.linux_x86_asm_gcc_mudflap_4.X: -------------------------------------------------------------------------------- 1 | # 2 | # makefile for Linux (x86, PPC, alpha ...) 3 | # 4 | 5 | OPTFLAGS=-g2 6 | 7 | ALLFLAGS=${OPTFLAGS} -m32 -pipe -pthread -fmudflapth \ 8 | -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE \ 9 | -DNDEBUG -DENV_UNIX \ 10 | -D_7ZIP_LARGE_PAGES \ 11 | -D_7ZIP_ASM \ 12 | $(LOCAL_FLAGS) 13 | 14 | CXX=g++ 15 | CC=gcc 16 | CC_SHARED=-fPIC 17 | LINK_SHARED=-fPIC -shared 18 | ASM=nasm -f elf 19 | 20 | PRE_COMPILED_HEADER=StdAfx.h.gch 21 | 22 | LOCAL_LIBS=-lmudflapth 23 | LOCAL_LIBS_DLL=$(LOCAL_LIBS) -ldl 24 | 25 | CPU=x86 26 | OBJ_CRC32=$(OBJ_CRC32_x86) 27 | OBJ_AES=AesOpt.o 28 | 29 | -------------------------------------------------------------------------------- /p7zip_16.02/makefile.linux_x86_asm_icc: -------------------------------------------------------------------------------- 1 | # 2 | # makefile for Linux (x86, PPC, alpha ...) 3 | # 4 | 5 | # OPTFLAGS=-fast -msse3 -s 6 | OPTFLAGS=-O2 -msse2 -s -Wcheck -fstack-security-check 7 | 8 | ALLFLAGS=${OPTFLAGS} \ 9 | -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE \ 10 | -DNDEBUG -D_REENTRANT -DENV_UNIX \ 11 | -D_7ZIP_LARGE_PAGES \ 12 | -D_7ZIP_ASM \ 13 | $(LOCAL_FLAGS) 14 | 15 | CXX=icpc -i-static 16 | CC=icc 17 | CC_SHARED=-fPIC 18 | LINK_SHARED=-fPIC -shared 19 | ASM=nasm -f elf 20 | 21 | LOCAL_LIBS=-lpthread 22 | LOCAL_LIBS_DLL=$(LOCAL_LIBS) -ldl 23 | 24 | CPU=x86 25 | OBJ_CRC32=$(OBJ_CRC32_x86) 26 | OBJ_AES=AesOpt.o 27 | 28 | -------------------------------------------------------------------------------- /p7zip_16.02/makefile.linux_x86_icc: -------------------------------------------------------------------------------- 1 | # 2 | # makefile for Linux (x86, PPC, alpha ...) 3 | # 4 | 5 | # OPTFLAGS=-fast -msse3 -s 6 | OPTFLAGS=-O2 -msse2 -s -Wcheck -fstack-security-check 7 | 8 | ALLFLAGS=${OPTFLAGS} \ 9 | -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE \ 10 | -DNDEBUG -D_REENTRANT -DENV_UNIX \ 11 | -D_7ZIP_LARGE_PAGES \ 12 | $(LOCAL_FLAGS) 13 | 14 | CXX=icpc -i-static 15 | CC=icc 16 | CC_SHARED=-fPIC 17 | LINK_SHARED=-fPIC -shared 18 | ASM=nasm -f elf 19 | 20 | LOCAL_LIBS=-lpthread 21 | LOCAL_LIBS_DLL=$(LOCAL_LIBS) -ldl 22 | 23 | OBJ_CRC32=$(OBJ_CRC32_C) 24 | OBJ_AES= 25 | 26 | -------------------------------------------------------------------------------- /p7zip_16.02/makefile.machine: -------------------------------------------------------------------------------- 1 | # 2 | # makefile for Linux (x86, PPC, alpha ...) 3 | # 4 | 5 | OPTFLAGS=-O -s 6 | 7 | ALLFLAGS=${OPTFLAGS} -pipe \ 8 | -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE \ 9 | -DNDEBUG -D_REENTRANT -DENV_UNIX \ 10 | -D_7ZIP_LARGE_PAGES \ 11 | $(LOCAL_FLAGS) 12 | 13 | CXX=g++ 14 | CC=gcc 15 | CC_SHARED=-fPIC 16 | LINK_SHARED=-fPIC -shared 17 | 18 | LOCAL_LIBS=-lpthread 19 | LOCAL_LIBS_DLL=$(LOCAL_LIBS) -ldl 20 | 21 | OBJ_CRC32=$(OBJ_CRC32_C) 22 | OBJ_AES= 23 | 24 | -------------------------------------------------------------------------------- /p7zip_16.02/makefile.macosx_gcc_32bits: -------------------------------------------------------------------------------- 1 | 2 | OPTFLAGS=-O 3 | 4 | # don't use -DNDEBUG in order to use MacOSX wxWidgets 5 | 6 | ALLFLAGS=-m32 ${OPTFLAGS} \ 7 | -DENV_MACOSX \ 8 | -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE \ 9 | -D_REENTRANT -DENV_UNIX \ 10 | $(LOCAL_FLAGS) 11 | 12 | CXX=c++ 13 | CC=cc 14 | LINK_SHARED=-bundle 15 | 16 | LOCAL_LIBS=-framework CoreFoundation 17 | LOCAL_LIBS_DLL=$(LOCAL_LIBS) 18 | 19 | OBJ_CRC32=$(OBJ_CRC32_C) 20 | OBJ_AES= 21 | 22 | -------------------------------------------------------------------------------- /p7zip_16.02/makefile.macosx_gcc_32bits_asm: -------------------------------------------------------------------------------- 1 | 2 | OPTFLAGS=-O 3 | 4 | # don't use -DNDEBUG in order to use MacOSX wxWidgets 5 | 6 | ALLFLAGS=${OPTFLAGS} \ 7 | -mmacosx-version-min=10.4 -arch i386 \ 8 | -DENV_MACOSX \ 9 | -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE \ 10 | -D_REENTRANT -DENV_UNIX \ 11 | -D_7ZIP_ASM \ 12 | $(LOCAL_FLAGS) 13 | 14 | CXX=c++ 15 | CC=cc 16 | LINK_SHARED=-bundle 17 | ASM=nasm -f macho 18 | 19 | LOCAL_LIBS=-framework CoreFoundation 20 | LOCAL_LIBS_DLL=$(LOCAL_LIBS) 21 | 22 | CPU=x86 23 | OBJ_CRC32=$(OBJ_CRC32_x86) 24 | OBJ_AES=AesOpt.o 25 | 26 | -------------------------------------------------------------------------------- /p7zip_16.02/makefile.macosx_gcc_32bits_ppc: -------------------------------------------------------------------------------- 1 | 2 | OPTFLAGS=-O 3 | 4 | # don't use -DNDEBUG in order to use MacOSX wxWidgets 5 | 6 | ALLFLAGS= ${OPTFLAGS} \ 7 | -mmacosx-version-min=10.4 -arch ppc \ 8 | -DENV_MACOSX \ 9 | -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE \ 10 | -D_REENTRANT -DENV_UNIX \ 11 | $(LOCAL_FLAGS) 12 | 13 | CXX=c++ 14 | CC=cc 15 | LINK_SHARED=-bundle 16 | 17 | LOCAL_LIBS=-framework CoreFoundation 18 | LOCAL_LIBS_DLL=$(LOCAL_LIBS) 19 | 20 | OBJ_CRC32=$(OBJ_CRC32_C) 21 | OBJ_AES= 22 | 23 | -------------------------------------------------------------------------------- /p7zip_16.02/makefile.macosx_gcc_64bits: -------------------------------------------------------------------------------- 1 | 2 | OPTFLAGS=-O 3 | 4 | # don't use -DNDEBUG in order to use MacOSX wxWidgets 5 | 6 | ALLFLAGS=-m64 ${OPTFLAGS} \ 7 | -DENV_MACOSX \ 8 | -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE \ 9 | -D_REENTRANT -DENV_UNIX \ 10 | $(LOCAL_FLAGS) 11 | 12 | CXX=c++ 13 | CC=cc 14 | LINK_SHARED=-bundle 15 | 16 | LOCAL_LIBS=-framework CoreFoundation 17 | LOCAL_LIBS_DLL=$(LOCAL_LIBS) 18 | 19 | OBJ_CRC32=$(OBJ_CRC32_C) 20 | OBJ_AES= 21 | 22 | -------------------------------------------------------------------------------- /p7zip_16.02/makefile.macosx_llvm_64bits: -------------------------------------------------------------------------------- 1 | 2 | OPTFLAGS=-O 3 | 4 | # don't use -DNDEBUG in order to use MacOSX wxWidgets 5 | 6 | ALLFLAGS=-m64 ${OPTFLAGS} \ 7 | -DENV_MACOSX \ 8 | -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE \ 9 | -D_REENTRANT -DENV_UNIX \ 10 | $(LOCAL_FLAGS) 11 | 12 | # For old Mac OS X : 13 | # CXX=/Developer/usr/bin/llvm-g++ 14 | # CC=/Developer/usr/bin/llvm-gcc 15 | 16 | # For new Mac OS X : 17 | XX=/usr/bin/llvm-g++ 18 | CC=/usr/bin/llvm-gcc 19 | 20 | LINK_SHARED=-bundle 21 | 22 | LOCAL_LIBS=-framework CoreFoundation 23 | LOCAL_LIBS_DLL=$(LOCAL_LIBS) 24 | 25 | OBJ_CRC32=$(OBJ_CRC32_C) 26 | OBJ_AES= 27 | 28 | -------------------------------------------------------------------------------- /p7zip_16.02/makefile.netbsd: -------------------------------------------------------------------------------- 1 | # 2 | # NetBSD >= 1.5.2 (which has no libc_r -- use libpthread) 3 | # makefile for NetBSD (x86, PPC, alpha ...) 4 | # 5 | 6 | OPTFLAGS=-O -s 7 | 8 | ALLFLAGS=${OPTFLAGS} \ 9 | -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE \ 10 | -DNDEBUG -D_REENTRANT -DENV_UNIX \ 11 | $(LOCAL_FLAGS) 12 | 13 | CXX=g++ 14 | CC=gcc 15 | LINK_SHARED=-shared 16 | 17 | LOCAL_LIBS=-lpthread 18 | LOCAL_LIBS_DLL=$(LOCAL_LIBS) 19 | 20 | OBJ_CRC32=$(OBJ_CRC32_C) 21 | OBJ_AES= 22 | 23 | -------------------------------------------------------------------------------- /p7zip_16.02/makefile.openbsd: -------------------------------------------------------------------------------- 1 | # 2 | # makefile for OpenBSD (x86, PPC, alpha ...) 3 | # 4 | 5 | MYCFLAGS?=-O 6 | MYCXXFLAGS?=-O 7 | 8 | ALLFLAGS=-D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE \ 9 | -DNDEBUG -D_REENTRANT -DENV_UNIX -fPIC \ 10 | $(LOCAL_FLAGS) 11 | 12 | ALLFLAGS_CPP=-DENV_HAVE_GCCVISIBILITYPATCH -fvisibility=hidden -fvisibility-inlines-hidden 13 | 14 | CXX=$(MYCXX) $(MYCXXFLAGS) 15 | CC=$(MYCC) $(MYCFLAGS) 16 | CC_SHARED=-fPIC 17 | LINK_SHARED=-fPIC -shared 18 | 19 | LOCAL_LIBS=-lpthread 20 | LOCAL_LIBS_DLL=$(LOCAL_LIBS) 21 | 22 | OBJ_CRC32=$(OBJ_CRC32_C) 23 | OBJ_AES= 24 | 25 | -------------------------------------------------------------------------------- /p7zip_16.02/makefile.openbsd_no_port: -------------------------------------------------------------------------------- 1 | # 2 | # makefile for OpenBSD (x86, PPC, alpha ...) 3 | # 4 | 5 | OPTFLAGS=-O -s 6 | 7 | ALLFLAGS=${OPTFLAGS} \ 8 | -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE \ 9 | -DNDEBUG -D_REENTRANT -DENV_UNIX \ 10 | $(LOCAL_FLAGS) 11 | 12 | ALLFLAGS_CPP=-DENV_HAVE_GCCVISIBILITYPATCH -fvisibility=hidden -fvisibility-inlines-hidden 13 | 14 | CXX=g++ 15 | CC=gcc 16 | CC_SHARED=-fPIC 17 | LINK_SHARED=-fPIC -shared 18 | 19 | LOCAL_LIBS=-lpthread 20 | LOCAL_LIBS_DLL=$(LOCAL_LIBS) 21 | 22 | OBJ_CRC32=$(OBJ_CRC32_C) 23 | OBJ_AES= 24 | 25 | -------------------------------------------------------------------------------- /p7zip_16.02/makefile.qnx_shared.bin: -------------------------------------------------------------------------------- 1 | ################################################### 2 | # makefile.machine for "7z , 7za , 7zr , 7zCon.sfx " : 3 | # tested with p7zip-4.47_beta on qnx-6.3.0 sp3 x86 target 4 | 5 | OPTFLAGS=-O -s 6 | 7 | ALLFLAGS=${OPTFLAGS} \ 8 | -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE \ 9 | -DNDEBUG -D_REENTRANT -DENV_UNIX \ 10 | $(LOCAL_FLAGS) 11 | 12 | CXX=QCC -V3.3.5,gcc_ntox86 13 | CC=qcc -V3.3.5,gcc_ntox86 14 | LINK_SHARED=-shared 15 | 16 | #LOCAL_LIBS=-lpthread 17 | #LOCAL_LIBS_DLL=$(LOCAL_LIBS) -ldl 18 | LOCAL_LIBS_DLL=$(LOCAL_LIBS) 19 | 20 | OBJ_CRC32=$(OBJ_CRC32_C) 21 | OBJ_AES= 22 | 23 | -------------------------------------------------------------------------------- /p7zip_16.02/makefile.qnx_shared.so: -------------------------------------------------------------------------------- 1 | ################################################### 2 | # makefile.machine for "7z.so , Codecs/Rar.so" : 3 | # tested with p7zip-4.47_beta on qnx-6.3.0 sp3 x86 target 4 | 5 | OPTFLAGS=-O -s 6 | 7 | ALLFLAGS=${OPTFLAGS} \ 8 | -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE \ 9 | -DNDEBUG -D_REENTRANT -DENV_UNIX \ 10 | $(LOCAL_FLAGS) 11 | 12 | CXX=QCC -V3.3.5,gcc_ntox86 13 | CC=qcc -V3.3.5,gcc_ntox86 14 | CC_SHARED=-fPIC 15 | LINK_SHARED=-fPIC -shared 16 | 17 | #LOCAL_LIBS=-lpthread 18 | #LOCAL_LIBS_DLL=$(LOCAL_LIBS) -ldl 19 | LOCAL_LIBS_DLL=$(LOCAL_LIBS) 20 | 21 | OBJ_CRC32=$(OBJ_CRC32_C) 22 | OBJ_AES= 23 | 24 | -------------------------------------------------------------------------------- /p7zip_16.02/makefile.qnx_static: -------------------------------------------------------------------------------- 1 | ################################################## 2 | # makefile.machine for "static 7za 7zr 7zCon.sfx" : 3 | # tested with p7zip-4.47_beta on qnx-6.3.0 sp3 x86 target 4 | 5 | OPTFLAGS=-O -s 6 | 7 | ALLFLAGS=${OPTFLAGS} \ 8 | -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE \ 9 | -DNDEBUG -D_REENTRANT -DENV_UNIX \ 10 | $(LOCAL_FLAGS) -Bstatic 11 | 12 | CXX=QCC -V3.3.5,gcc_ntox86 13 | CC=qcc -V3.3.5,gcc_ntox86 14 | LINK_SHARED=-Bstatic 15 | 16 | #LOCAL_LIBS=-lpthread 17 | #LOCAL_LIBS_DLL=$(LOCAL_LIBS) -ldl 18 | LOCAL_LIBS_DLL=$(LOCAL_LIBS) 19 | 20 | OBJ_CRC32=$(OBJ_CRC32_C) 21 | OBJ_AES= 22 | 23 | -------------------------------------------------------------------------------- /p7zip_16.02/makefile.solaris_sparc_CC_32: -------------------------------------------------------------------------------- 1 | 2 | OPTFLAGS=-fast -s 3 | 4 | ALLFLAGS=${OPTFLAGS} -mt \ 5 | -DHAVE_LONG_LONG \ 6 | -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE \ 7 | -DENV_UNIX \ 8 | -DNDEBUG -D_REENTRANT \ 9 | $(LOCAL_FLAGS) 10 | 11 | CXX=CC 12 | CC=cc 13 | CC_SHARED=-KPIC 14 | LINK_SHARED=-KPIC -G 15 | 16 | # -lCrun : standard C++ library (for new/delete) 17 | LOCAL_LIBS=-lpthread -lCrun 18 | LOCAL_LIBS_DLL=$(LOCAL_LIBS) -ldl 19 | 20 | OBJ_CRC32=$(OBJ_CRC32_C) 21 | OBJ_AES= 22 | 23 | -------------------------------------------------------------------------------- /p7zip_16.02/makefile.solaris_sparc_CC_64: -------------------------------------------------------------------------------- 1 | 2 | #-fast -xarch=v9 => 64 bits 3 | # use "isainfo -v" to set the flag "-xarch" 4 | 5 | OPTFLAGS=-fast -xarch=v9 -s 6 | 7 | ALLFLAGS=${OPTFLAGS} -mt \ 8 | -DHAVE_LONG_LONG \ 9 | -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE \ 10 | -DENV_UNIX \ 11 | -DNDEBUG -D_REENTRANT \ 12 | $(LOCAL_FLAGS) 13 | 14 | CXX=CC 15 | CC=cc 16 | CC_SHARED=-KPIC 17 | LINK_SHARED=-KPIC -G 18 | 19 | # -lCrun : standard C++ library (for new/delete) 20 | LOCAL_LIBS=-lpthread -lCrun 21 | LOCAL_LIBS_DLL=$(LOCAL_LIBS) -ldl 22 | 23 | OBJ_CRC32=$(OBJ_CRC32_C) 24 | OBJ_AES= 25 | 26 | -------------------------------------------------------------------------------- /p7zip_16.02/makefile.solaris_sparc_gcc: -------------------------------------------------------------------------------- 1 | 2 | OPTFLAGS=-O -s 3 | 4 | ALLFLAGS=${OPTFLAGS} \ 5 | -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE \ 6 | -DENV_UNIX \ 7 | -DNDEBUG -D_REENTRANT \ 8 | $(LOCAL_FLAGS) 9 | 10 | #CXX=/opt/sfw/bin/g++ 11 | #CC=/opt/sfw/bin/gcc 12 | CXX=g++ 13 | CC=gcc 14 | CC_SHARED=-fPIC 15 | LINK_SHARED=-fPIC -shared 16 | 17 | LOCAL_LIBS=-lpthread -lrt 18 | LOCAL_LIBS_DLL=$(LOCAL_LIBS) -ldl 19 | 20 | OBJ_CRC32=$(OBJ_CRC32_C) 21 | OBJ_AES= 22 | 23 | -------------------------------------------------------------------------------- /p7zip_16.02/makefile.solaris_x86: -------------------------------------------------------------------------------- 1 | 2 | OPTFLAGS=-O -s 3 | 4 | ALLFLAGS=${OPTFLAGS} \ 5 | -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE \ 6 | -DENV_UNIX \ 7 | -DNDEBUG -D_REENTRANT \ 8 | $(LOCAL_FLAGS) 9 | 10 | CXX=g++ 11 | CC=gcc 12 | CC_SHARED=-fPIC 13 | LINK_SHARED=-fPIC -shared 14 | 15 | LOCAL_LIBS=-lpthread -lrt 16 | LOCAL_LIBS_DLL=$(LOCAL_LIBS) -ldl 17 | 18 | OBJ_CRC32=$(OBJ_CRC32_C) 19 | OBJ_AES= 20 | 21 | -------------------------------------------------------------------------------- /p7zip_16.02/makefile.tru64: -------------------------------------------------------------------------------- 1 | # 2 | # makefile for Tru64 3 | # tested with OSF 5.1 and g++ 3.4.2 4 | # 5 | 6 | OPTFLAGS=-O -s 7 | 8 | ALLFLAGS=${OPTFLAGS} \ 9 | -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE \ 10 | -DNDEBUG -D_REENTRANT -DENV_UNIX \ 11 | $(LOCAL_FLAGS) 12 | 13 | CXX=g++ 14 | CC=gcc 15 | CC_SHARED=-fPIC 16 | LINK_SHARED=-fPIC -shared 17 | 18 | LOCAL_LIBS=-lpthread 19 | LOCAL_LIBS_DLL=$(LOCAL_LIBS) -ldl 20 | 21 | OBJ_CRC32=$(OBJ_CRC32_C) 22 | OBJ_AES= 23 | 24 | --------------------------------------------------------------------------------