-
Notifications
You must be signed in to change notification settings - Fork 0
/
Package.swift
63 lines (62 loc) · 2.16 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
// swift-tools-version:5.7
import PackageDescription
import Foundation
let package = Package(
name: "libmobilecoin",
platforms: [
.iOS(.v13),
.macOS(.v11)
],
products: [
.library(
name: "LibMobileCoinCore",
targets: ["LibMobileCoinTestVector", "LibMobileCoinHTTP", "LibMobileCoinGRPC", "LibMobileCoinCommon", "LibMobileCoinLibrary"]),
.library(
name: "LibMobileCoinCoreCommon",
targets: ["LibMobileCoinTestVector", "LibMobileCoinCommon", "LibMobileCoinLibrary"]),
.library(
name: "LibMobileCoinCoreGRPC",
targets: ["LibMobileCoinTestVector", "LibMobileCoinGRPC", "LibMobileCoinCommon", "LibMobileCoinLibrary"]),
.library(
name: "LibMobileCoinCoreHTTP",
targets: ["LibMobileCoinTestVector", "LibMobileCoinHTTP", "LibMobileCoinCommon", "LibMobileCoinLibrary"])
],
dependencies: [
// Here we define our package's external dependencies
// and from where they can be fetched:
.package(
url: "https://github.com/apple/swift-protobuf.git",
from: "1.5.0"
),
.package(url: "https://github.com/grpc/grpc-swift.git", from: "1.15.0")
],
targets: [
.target(
name: "LibMobileCoinTestVector",
dependencies: [],
path: "Sources/TestVector",
resources: [
.copy("vectors")
]
),
.target(
name: "LibMobileCoinCommon",
dependencies: [.product(name: "SwiftProtobuf", package: "swift-protobuf")],
path: "Sources/Common"
),
.target(
name: "LibMobileCoinHTTP",
dependencies: [.target(name: "LibMobileCoinCommon")],
path: "Sources/HTTP"
),
.target(
name: "LibMobileCoinGRPC",
dependencies: [.target(name: "LibMobileCoinCommon"), .product(name: "GRPC", package: "grpc-swift")],
path: "Sources/GRPC"
),
.binaryTarget(
name: "LibMobileCoinLibrary",
path: "Artifacts/LibMobileCoinLibrary.xcframework"
)
]
)