-
Notifications
You must be signed in to change notification settings - Fork 237
/
Package.swift
60 lines (58 loc) · 2.11 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
// swift-tools-version:5.3
// The swift-tools-version declares the minimum version of Swift required to build this package.
import PackageDescription
let package = Package(
name: "DTFoundation",
platforms: [
.iOS(.v9), //.v8 - .v13
.macOS(.v10_10), //.v10_10 - .v10_15
.tvOS(.v9), //.v9 - .v13
],
products: [
// Products define the executables and libraries produced by a package, and make them visible to other packages.
.library(
name: "DTFoundation",
targets: ["DTFoundation"]),
],
targets: [
.target(
name: "DTFoundation",
dependencies: [],
path: "Core",
exclude: ["DTFoundation-Info.plist", "DTFoundation-Prefix.pch"],
cSettings: [
.headerSearchPath("include/DTFoundation"),
.headerSearchPath("Source/Externals/minizip"),
.define("BITCODE_GENERATION_MODE", to: "bitcode"),
.define("ENABLE_BITCODE", to: "YES")
]
),
.testTarget(
name: "DTFoundationTests",
dependencies: ["DTFoundation"],
path: "Test",
exclude: ["UnitTests-Info.plist", "UnitTests-Prefix.pch"],
resources: [.copy("Resources/zipContent/Franz.txt"),
.copy("Resources/zipContent/Oliver.txt"),
.copy("Resources/zipContent/Stefan.txt"),
.copy("Resources/gzip_sample.txt.original"),
.copy("Resources/gzip_sample.txt-z"),
.copy("Resources/zipContent/Rene"),
.copy("Resources/gzip_sample.txt.gz"),
.copy("Resources/gzip_sample_invalid.gz"),
.copy("Resources/gzip_sample.txt.foo"),
.copy("Resources/processing_instruction.html"),
.copy("Resources/gzip_sample.txt-gz"),
.copy("Resources/html_doctype.html"),
.copy("Resources/DictionarySample.plist"),
.copy("Resources/ArraySample.plist"),
.copy("Resources/screenshot.png.dat"),
.copy("Resources/sample.zip"),
.copy("Resources/SelfSigned.der")
],
cSettings: [
.headerSearchPath("include"),
]
)
]
)