forked from getsentry/sentry-cocoa
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathPackage.swift
58 lines (56 loc) · 1.71 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
// swift-tools-version:5.1
import PackageDescription
let package = Package(
name: "Sentry",
platforms: [.iOS(.v9), .macOS(.v10_10), .tvOS(.v9), .watchOS(.v2)],
products: [
.library(
name: "Sentry",
targets: ["Sentry"]
)
],
dependencies: [],
targets: [
.target(
name: "Sentry",
path: "Sources",
exclude: [
"Samples",
"scripts",
"Tests",
"Utils"
],
sources: [
"Sentry/",
"SentryCrash/"
],
publicHeadersPath: "Sentry/Public/",
cxxSettings: [
.define("GCC_ENABLE_CPP_EXCEPTIONS", to: "YES"),
.headerSearchPath("Sentry/include"),
.headerSearchPath("Sentry/Public"),
.headerSearchPath("SentryCrash/Installations"),
.headerSearchPath("SentryCrash/Recording"),
.headerSearchPath("SentryCrash/Recording/Monitors"),
.headerSearchPath("SentryCrash/Recording/Tools"),
.headerSearchPath("SentryCrash/Reporting/Filters"),
.headerSearchPath("SentryCrash/Reporting/Filters/Tools"),
.headerSearchPath("SentryCrash/Reporting/Tools")
],
linkerSettings: [
.linkedLibrary("z"),
.linkedLibrary("c++")
]
),
.testTarget(
name: "SentrySwiftTests",
dependencies: [
"Sentry"
],
path: "Tests/SentryTests",
sources: [
"SentrySwiftTests.swift"
]
)
]
)