-
Notifications
You must be signed in to change notification settings - Fork 11
/
Project.swift
227 lines (226 loc) · 8.56 KB
/
Project.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
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
import ProjectDescription
let project = Project(
name: "EmbraceIO",
organizationName: "com.embraceio",
targets: [
.target(
name: "EmbraceIO",
destinations: .iOS,
product: .framework,
bundleId: "com.embraceio.EmbraceIO",
deploymentTargets: .iOS("13.0"),
sources: ["Sources/EmbraceIO/**"],
dependencies: [
.target(name: "EmbraceCaptureService"),
.target(name: "EmbraceCore"),
.target(name: "EmbraceCommonInternal"),
.target(name: "EmbraceCrash"),
.target(name: "EmbraceSemantics"),
.target(name: "EmbraceConfiguration")
],
settings: .settings(base: [
"SKIP_INSTALL": "NO",
"BUILD_LIBRARY_FOR_DISTRIBUTION": "YES"
])
),
.target(
name: "EmbraceCore",
destinations: .iOS,
product: .framework,
bundleId: "com.embraceio.EmbraceCore",
deploymentTargets: .iOS("13.0"),
sources: ["Sources/EmbraceCore/**"],
resources: ["Sources/EmbraceCore/PrivacyInfo.xcprivacy"],
dependencies: [
.target(name: "EmbraceCaptureService"),
.target(name: "EmbraceCommonInternal"),
.target(name: "EmbraceConfigInternal"),
.target(name: "EmbraceOTelInternal"),
.target(name: "EmbraceStorageInternal"),
.target(name: "EmbraceUploadInternal"),
.target(name: "EmbraceObjCUtilsInternal"),
.target(name: "EmbraceSemantics"),
.target(name: "EmbraceConfiguration")
],
settings: .settings(base: [
"HEADER_SEARCH_PATHS": ["$(SRCROOT)/Sources/EmbraceObjCUtilsInternal/include"],
// See if `-lz` is really necessary
"OTHER_LDFLAGS": ["-lc++ -lz"],
"SKIP_INSTALL": "NO",
"BUILD_LIBRARY_FOR_DISTRIBUTION": "YES"
])
),
.target(
name: "EmbraceCommonInternal",
destinations: .iOS,
product: .framework,
bundleId: "com.embraceio.EmbraceCommonInternal",
deploymentTargets: .iOS("13.0"),
sources: ["Sources/EmbraceCommonInternal/**"],
settings: .settings(base: [
"SKIP_INSTALL": "NO",
"BUILD_LIBRARY_FOR_DISTRIBUTION": "YES"
])
),
.target(
name: "EmbraceSemantics",
destinations: .iOS,
product: .framework,
bundleId: "com.embraceio.EmbraceSemantics",
deploymentTargets: .iOS("13.0"),
sources: ["Sources/EmbraceSemantics/**"],
dependencies: [
.target(name: "EmbraceCommonInternal"),
.external(name: "OpenTelemetrySdk")
],
settings: .settings(base: [
"SKIP_INSTALL": "NO",
"BUILD_LIBRARY_FOR_DISTRIBUTION": "YES"
])
),
.target(
name: "EmbraceCaptureService",
destinations: .iOS,
product: .framework,
bundleId: "com.embraceio.EmbraceCaptureService",
deploymentTargets: .iOS("13.0"),
sources: ["Sources/EmbraceCaptureService/**"],
dependencies: [
.target(name: "EmbraceOTelInternal"),
.external(name: "OpenTelemetrySdk")
],
settings: .settings(base: [
"SKIP_INSTALL": "NO",
"BUILD_LIBRARY_FOR_DISTRIBUTION": "YES"
])
),
.target(
name: "EmbraceConfigInternal",
destinations: .iOS,
product: .framework,
bundleId: "com.embraceio.EmbraceConfigInternal",
deploymentTargets: .iOS("13.0"),
sources: ["Sources/EmbraceConfigInternal/**"],
dependencies: [
.target(name: "EmbraceCommonInternal"),
.target(name: "EmbraceConfiguration")
],
settings: .settings(base: [
"SKIP_INSTALL": "NO",
"BUILD_LIBRARY_FOR_DISTRIBUTION": "YES"
])
),
.target(
name: "EmbraceConfiguration",
destinations: .iOS,
product: .framework,
bundleId: "com.embraceio.EmbraceConfiguration",
deploymentTargets: .iOS("13.0"),
sources: ["Sources/EmbraceConfiguration/**"],
dependencies: [],
settings: .settings(base: [
"SKIP_INSTALL": "NO",
"BUILD_LIBRARY_FOR_DISTRIBUTION": "YES"
])
),
.target(
name: "EmbraceOTelInternal",
destinations: .iOS,
product: .framework,
bundleId: "com.embraceio.EmbraceOTelInternal",
deploymentTargets: .iOS("13.0"),
sources: ["Sources/EmbraceOTelInternal/**"],
dependencies: [
.target(name: "EmbraceCommonInternal"),
.target(name: "EmbraceSemantics"),
.external(name: "OpenTelemetrySdk")
],
settings: .settings(base: [
"SKIP_INSTALL": "NO",
"BUILD_LIBRARY_FOR_DISTRIBUTION": "YES"
])
),
.target(
name: "EmbraceStorageInternal",
destinations: .iOS,
product: .framework,
bundleId: "com.embraceio.EmbraceStorageInternal",
deploymentTargets: .iOS("13.0"),
sources: ["Sources/EmbraceStorageInternal/**"],
dependencies: [
.target(name: "EmbraceCommonInternal"),
.target(name: "EmbraceSemantics"),
.external(name: "OpenTelemetryApi"),
.external(name: "GRDB")
],
settings: .settings(base: [
"SKIP_INSTALL": "NO",
"BUILD_LIBRARY_FOR_DISTRIBUTION": "YES"
])
),
.target(
name: "EmbraceUploadInternal",
destinations: .iOS,
product: .framework,
bundleId: "com.embraceio.EmbraceUploadInternal",
deploymentTargets: .iOS("13.0"),
sources: ["Sources/EmbraceUploadInternal/**"],
dependencies: [
.target(name: "EmbraceCommonInternal"),
.target(name: "EmbraceOTelInternal"),
.external(name: "GRDB")
],
settings: .settings(base: [
"SKIP_INSTALL": "NO",
"BUILD_LIBRARY_FOR_DISTRIBUTION": "YES"
])
),
.target(
name: "EmbraceCrashlyticsSupport",
destinations: .iOS,
product: .framework,
bundleId: "com.embraceio.EmbraceCrashlyticsSupport",
deploymentTargets: .iOS("13.0"),
sources: ["Sources/ThirdParty/EmbraceCrashlyticsSupport/**"],
dependencies: [
.target(name: "EmbraceCommonInternal")
],
settings: .settings(base: [
"SKIP_INSTALL": "NO",
"BUILD_LIBRARY_FOR_DISTRIBUTION": "YES"
])
),
.target(
name: "EmbraceCrash",
destinations: .iOS,
product: .framework,
bundleId: "com.embraceio.EmbraceCrash",
deploymentTargets: .iOS("13.0"),
sources: ["Sources/EmbraceCrash/**"],
dependencies: [
.target(name: "EmbraceCommonInternal"),
.external(name: "Recording")
],
settings: .settings(base: [
"OTHER_LDFLAGS": ["-lc++"],
"SKIP_INSTALL": "NO",
"BUILD_LIBRARY_FOR_DISTRIBUTION": "YES"
])
),
.target(
name: "EmbraceObjCUtilsInternal",
destinations: .iOS,
product: .framework,
bundleId: "com.embraceio.EmbraceObjCUtilsInternal",
deploymentTargets: .iOS("13.0"),
sources: ["Sources/EmbraceObjCUtilsInternal/**"],
headers: .headers(public: "Sources/EmbraceObjCUtilsInternal/include/**/*.h"),
settings: .settings(base: [
"HEADER_SEARCH_PATHS": ["$(SRCROOT)/Sources/EmbraceObjCUtilsInternal/include"],
"MODULEMAP_FILE": "$(SRCROOT)/Sources/EmbraceObjCUtilsInternal/include/module.modulemap",
"SKIP_INSTALL": "NO",
"BUILD_LIBRARY_FOR_DISTRIBUTION": "YES"
])
)
]
)