-
Notifications
You must be signed in to change notification settings - Fork 0
/
Package.swift
77 lines (74 loc) · 2.28 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
65
66
67
68
69
70
71
72
73
74
75
76
77
// swift-tools-version:5.6
// Copyright 2023 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
import PackageDescription
let package = Package(
name: "gRPC",
products: [
.library(
name: "gRPC-Core",
targets: ["grpcWrapper"]
),
.library(
name: "gRPC-C++",
targets: ["grpcppWrapper"]
),
],
dependencies: [
.package(
url: "https://github.com/google/abseil-cpp-binary.git",
"1.2024011601.1" ..< "1.2024011700.0"
)
],
targets: [
.target(
name: "grpcWrapper",
dependencies: ["grpc"],
path: "grpc-Wrapper",
resources: [.process("Resources/PrivacyInfo.xcprivacy")]
),
.target(
name: "opensslWrapper",
dependencies: ["openssl_grpc"],
path: "openssl-grpc-Wrapper",
resources: [.process("Resources/PrivacyInfo.xcprivacy")]
),
.target(
name: "grpcppWrapper",
dependencies: [
"grpcpp",
"grpcWrapper",
"opensslWrapper",
.product(name: "abseil", package: "abseil-cpp-binary"),
],
path: "grpcpp-Wrapper",
resources: [.process("Resources/PrivacyInfo.xcprivacy")]
),
.binaryTarget(
name: "grpc",
url: "https://dl.google.com/firebase/ios/bin/grpc/1.62.2/rc0/grpc.zip",
checksum: "033336c8811628d66186486f3c26934afdedd15f01b6079b6e98d1236b39ed31"
),
.binaryTarget(
name: "grpcpp",
url: "https://dl.google.com/firebase/ios/bin/grpc/1.62.2/rc0/grpcpp.zip",
checksum: "99ad505db238c66d4173d01d9efa4bc14aee80a94c96a28c0a86c4ead2c467d2"
),
.binaryTarget(
name: "openssl_grpc",
url: "https://dl.google.com/firebase/ios/bin/grpc/1.62.2/rc0/openssl_grpc.zip",
checksum: "4bced0ddb0c8866877c2ad95c106e4b0afbec6fce7c7bc5341a636f2e7ea4521"
)
]
)