-
Notifications
You must be signed in to change notification settings - Fork 1
/
Package@swift-5.9.swift
151 lines (147 loc) · 5.23 KB
/
Package@swift-5.9.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
// swift-tools-version:5.9
// The swift-tools-version declares the minimum version of Swift required to build this package.
import PackageDescription
let package = Package(
name: "opentelemetry-objc-extension",
// defaultLocalization: "en",
platforms: [
.macOS(.v10_15),
.iOS(.v13),
.tvOS(.v13)
],
products: [
.library(
name: "OpenTelemetrySdkObjc",
type: .static,
targets: ["OpenTelemetrySdkObjc"]
),
.library(
name: "OpenTelemetryApiObjc",
type: .static,
targets: ["OpenTelemetryApiObjc"]
),
.library(
name: "URLSessionInstrumentationObjc",
type: .static,
targets: ["URLSessionInstrumentationObjc"]
),
.library(
name: "OpenTelemetryProtocolExporterCommonObjc",
type: .static,
targets: ["OpenTelemetryProtocolExporterCommonObjc"]
),
.library(
name: "OpenTelemetryProtocolExporterObjc",
type: .static,
targets: [
"OpenTelemetryProtocolExporterObjc"
]
),
.library(
name: "OpenTelemetryProtocolExporterHTTPObjc",
type: .static,
targets: ["OpenTelemetryProtocolExporterHTTPObjc"]
),
.library(
name: "StdoutExporterObjc",
type: .static,
targets: ["StdoutExporterObjc"]
),
.library(
name: "ResourceExtensionObjc",
type: .static,
targets: ["ResourceExtensionObjc"]
),
.executable(
name: "OTelSample",
targets: ["OTelSample"]
)
],
dependencies: [
.package(url:"https://github.com/open-telemetry/opentelemetry-swift", from: "1.9.1"),
.package(url: "https://github.com/grpc/grpc-swift.git", from: "1.0.0"),
],
targets: [
.target(
name: "OpenTelemetryApiObjc",
dependencies: [
.product(name: "OpenTelemetryApi", package: "opentelemetry-swift")
],
path: "Sources/",
sources: ["OpenTelemetryApi/"]
),
.target(
name: "OpenTelemetrySdkObjc",
dependencies: [
.product(name: "OpenTelemetrySdk", package: "opentelemetry-swift"),
.target(name: "OpenTelemetryApiObjc")
],
path: "Sources/",
sources: ["OpenTelemetrySdk/"]
),
.target(
name: "OpenTelemetryProtocolExporterCommonObjc",
dependencies: [
.product(name: "OpenTelemetryProtocolExporter", package: "opentelemetry-swift")
],
path: "Sources/Exporters/OpenTelemetryProtocolCommon"
),
.target(
name: "OpenTelemetryProtocolExporterHTTPObjc",
dependencies: [
.byName(name: "OpenTelemetrySdkObjc"),
.product(name: "OpenTelemetryProtocolExporterHTTP", package: "opentelemetry-swift")
],
path: "Sources/Exporters/OpenTelemetryProtocolHttp"
),
.target(
name: "OpenTelemetryProtocolExporterObjc",
dependencies: [
.byName(name: "OpenTelemetrySdkObjc"),
.byName(name: "OpenTelemetryProtocolExporterCommonObjc"),
.product(name: "OpenTelemetryProtocolExporter", package: "opentelemetry-swift"),
.product(name: "GRPC", package: "grpc-swift")
],
path: "Sources/Exporters/OpenTelemetryProtocolGrpc"
),
.target(
name: "StdoutExporterObjc",
dependencies: [
.byName(name: "OpenTelemetrySdkObjc"),
.product(name: "StdoutExporter", package: "opentelemetry-swift")
],
path: "Sources/Exporters/Stdout"
),
.target(
name: "URLSessionInstrumentationObjc",
dependencies: [
.product(name: "URLSessionInstrumentation", package: "opentelemetry-swift")
],
path: "Sources/Instrumentation/URLSession"
),
.target(
name: "ResourceExtensionObjc",
dependencies: [
.byName(name: "OpenTelemetrySdkObjc"),
.product(name: "ResourceExtension", package: "opentelemetry-swift")
],
path: "Sources/Instrumentation/SDKResourceExtension"
),
.target(
name: "OTelSample",
dependencies: [
.product(name: "OpenTelemetryApi", package:"opentelemetry-swift"),
.product(name: "OpenTelemetrySdk", package:"opentelemetry-swift"),
.product(name: "OpenTelemetryProtocolExporter", package:"opentelemetry-swift"),
.product(name: "StdoutExporter", package:"opentelemetry-swift"),
.product(name: "URLSessionInstrumentation", package:"opentelemetry-swift")
],
path: "Examples/OTelSample/"
),
.testTarget(
name: "OpenTelemetryApiTest",
dependencies: ["OpenTelemetryApiObjc"],
path: "Tests/OpenTelemetryApiTest"
),
]
)