-
Notifications
You must be signed in to change notification settings - Fork 1
/
Package.swift
92 lines (90 loc) · 3.93 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
// swift-tools-version: 5.9
import PackageDescription
let package = Package(
name: "ThorVGSwift",
platforms: [
.iOS(.v13)
],
products: [
.library(
name: "ThorVGSwift",
targets: ["ThorVGSwift"]),
],
dependencies: [
.package(url: "https://github.com/pointfreeco/swift-snapshot-testing", .upToNextMinor(from: "1.15.0")),
],
targets: [
.target(
name: "ThorVGSwift",
dependencies: ["thorvg"],
path: "swift"
),
.target(
name: "thorvg",
path: "thorvg",
exclude: [
"cross",
"docs",
"examples",
"pc",
"res",
"src/bindings/wasm",
"src/loaders/external_jpg",
"src/loaders/external_png",
"src/loaders/external_webp",
"src/renderer/gl_engine",
"src/renderer/wg_engine",
"src/savers/gif",
"test",
"tools"
],
publicHeadersPath: "src/bindings/capi",
cxxSettings: [
.headerSearchPath("inc"),
.headerSearchPath("src/common"),
.headerSearchPath("src/bindings"),
.headerSearchPath("src/loaders/jpg"),
.headerSearchPath("src/loaders/lottie"),
.headerSearchPath("src/loaders/lottie"),
.headerSearchPath("src/loaders/lottie/jerryscript"),
.headerSearchPath("src/loaders/lottie/rapidjson"),
.headerSearchPath("src/loaders/lottie/jerryscript/jerry-core"),
.headerSearchPath("src/loaders/lottie/jerryscript/jerry-core/jcontext"),
.headerSearchPath("src/loaders/lottie/jerryscript/jerry-core/lit"),
.headerSearchPath("src/loaders/lottie/jerryscript/jerry-core/include"),
.headerSearchPath("src/loaders/lottie/jerryscript/jerry-core/parser"),
.headerSearchPath("src/loaders/lottie/jerryscript/jerry-core/jrt"),
.headerSearchPath("src/loaders/lottie/jerryscript/jerry-core/vm"),
.headerSearchPath("src/loaders/lottie/jerryscript/jerry-core/ecma"),
.headerSearchPath("src/loaders/lottie/jerryscript/jerry-core/jmem"),
.headerSearchPath("src/loaders/lottie/jerryscript/jerry-core/api"),
.headerSearchPath("src/loaders/lottie/jerryscript/jerry-core/parser/regexp"),
.headerSearchPath("src/loaders/lottie/jerryscript/jerry-core/parser/js"),
.headerSearchPath("src/loaders/lottie/jerryscript/jerry-core/ecma/builtin-objects"),
.headerSearchPath("src/loaders/lottie/jerryscript/jerry-core/ecma/operations"),
.headerSearchPath("src/loaders/lottie/jerryscript/jerry-core/ecma/base"),
.headerSearchPath("src/loaders/lottie/jerryscript/jerry-core/ecma/builtin-objects/typedarray"),
.headerSearchPath("src/loaders/lottie/rapidjson/internal"),
.headerSearchPath("src/loaders/lottie/rapidjson/error"),
.headerSearchPath("src/loaders/png"),
.headerSearchPath("src/loaders/raw"),
.headerSearchPath("src/loaders/svg"),
.headerSearchPath("src/loaders/ttf"),
.headerSearchPath("src/loaders/tvg"),
.headerSearchPath("src/renderer"),
.headerSearchPath("src/renderer/sw_engine"),
]
),
.testTarget(
name: "ThorVGSwift-tests",
dependencies: [
"ThorVGSwift",
.product(name: "SnapshotTesting", package: "swift-snapshot-testing"),
],
path: "swift-tests",
exclude: ["SnapshotTests/__Snapshots__"],
resources: [.process("Resources")]
),
],
cxxLanguageStandard: .cxx14
)