-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathPackage.swift
111 lines (108 loc) · 3.35 KB
/
Package.swift
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
// swift-tools-version:5.5
// SPDX-FileCopyrightText: 2021 mtgto <[email protected]>
// SPDX-License-Identifier: MIT
import PackageDescription
let package = Package(
name: "SevenZip",
platforms: [
.iOS(.v13), .macOS(.v10_15), .tvOS(.v13), .watchOS(.v6) // Using SHA256 of CryptoKit
],
products: [
.library(
name: "SevenZip",
targets: ["SevenZip"])
],
targets: [
.target(
name: "SevenZip",
dependencies: ["CsevenZip"]),
.target(
name: "CsevenZip",
exclude: [
"7zVersion.rc",
"Util/7z/7z.dsp",
"Util/7z/7z.dsw",
"Util/7z/makefile",
"Util/7z/makefile.gcc",
"Util/Lzma/LzmaUtil.dsp",
"Util/Lzma/LzmaUtil.dsw",
"Util/Lzma/makefile",
"Util/Lzma/makefile.gcc",
"Util/LzmaLib/LzmaLib.def",
"Util/LzmaLib/LzmaLib.dsp",
"Util/LzmaLib/LzmaLib.dsw",
"Util/LzmaLib/makefile",
"Util/LzmaLib/resource.rc",
"Util/SfxSetup/SfxSetup.dsp",
"Util/SfxSetup/SfxSetup.dsw",
"Util/SfxSetup/makefile",
"Util/SfxSetup/makefile_con",
"Util/SfxSetup/resource.rc",
"Util/SfxSetup/setup.ico",
"Aes.c",
"AesOpt.c",
"Alloc.c",
"Bcj2Enc.c",
"DllSecur.c",
"LzmaEnc.c",
"Lzma2DecMt.c",
"Lzma2Enc.c",
"Lzma86Dec.c",
"Lzma86Enc.c",
"LzmaLib.c",
"LzFind.c",
"LzFindMt.c",
"LzFindOpt.c",
"MtCoder.c",
"MtDec.c",
"Ppmd7Enc.c",
"Sha256.c",
"Sha256Opt.c",
"Sort.c",
"SwapBytes.c",
"Threads.c",
"XzDec.c",
"XzEnc.c",
"XzIn.c",
"Xz.c",
"XzCrc64.c",
"XzCrc64Opt.c",
"Util/7z/7zMain.c",
"Util/7z/Precomp.c",
"Util/Lzma/LzmaUtil.c",
"Util/LzmaLib/LzmaLibExports.c",
"Util/SfxSetup/Precomp.c",
"Util/SfxSetup/SfxSetup.c",
],
sources: [
"7zAlloc.c",
"7zArcIn.c",
"7zBuf.c",
"7zBuf2.c",
"7zCrc.c",
"7zCrcOpt.c",
"7zDec.c",
"CpuArch.c",
"Delta.c",
"LzmaDec.c",
"Lzma2Dec.c",
"Bra.c",
"Bra86.c",
"BraIA64.c",
"Bcj2.c",
"Ppmd7.c",
"Ppmd7Dec.c",
"7zFile.c",
"7zStream.c",
],
cSettings: [
// .define("_SZ_ALLOC_DEBUG") // if you want to debug alloc/free operations to stderr.
.unsafeFlags(["-mcrc"], .when(platforms: [.iOS]))
]
),
.testTarget(
name: "SevenZipTests",
dependencies: ["SevenZip"],
resources: [.process("fixture")]),
]
)