forked from getsentry/sentry-cocoa
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Package.swift
64 lines (63 loc) · 2.36 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
// swift-tools-version:5.1
import PackageDescription
let package = Package(
name: "Sentry",
platforms: [.iOS(.v11), .macOS(.v10_13), .tvOS(.v11), .watchOS(.v4)],
products: [
.library(name: "Sentry", targets: ["Sentry"]),
.library(name: "Sentry-Dynamic", type: .dynamic, targets: ["Sentry"]),
.library(name: "SentrySwiftUI", targets: ["SentrySwiftUI"])
],
targets: [
.target(
name: "Sentry",
dependencies: ["SentryPrivate"],
path: "Sources",
sources: [
"Sentry/",
"SentryCrash/"
],
publicHeadersPath: "Sentry/Public/",
cxxSettings: [
.define("GCC_ENABLE_CPP_EXCEPTIONS", to: "YES"),
.headerSearchPath("Sentry/include"),
.headerSearchPath("Sentry/include/HybridPublic"),
.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++")
]
),
.target( name: "SentryPrivate",
path: "Sources",
sources: [
"Swift"
]
),
.target ( name: "SentrySwiftUI",
dependencies: ["Sentry", "SentryInternal"],
path: "Sources",
exclude: ["SentrySwiftUI/SentryInternal/"],
sources: [
"SentrySwiftUI"
]
),
//SentryInternal is how we expose some internal Sentry SDK classes to SentrySwiftUI.
.target( name: "SentryInternal",
path: "Sources",
sources: [
"SentrySwiftUI/SentryInternal/"
],
publicHeadersPath: "SentrySwiftUI/SentryInternal/"
)
],
cxxLanguageStandard: .cxx14
)