forked from google/grpc-binary
-
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.2024011602.0" ..< "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.65.1/rc1/grpc.zip",
checksum: "c91f3cfeb4d51a3871c46d33a575bdf6ed2e83007390cc9007248cf987e5ac85"
),
.binaryTarget(
name: "grpcpp",
url: "https://dl.google.com/firebase/ios/bin/grpc/1.65.1/rc1/grpcpp.zip",
checksum: "795c9f19309e8d4e2a143aec6336ce58df388253f04fdcc0d059a55e2f0ec0d8"
),
.binaryTarget(
name: "openssl_grpc",
url: "https://dl.google.com/firebase/ios/bin/grpc/1.65.1/rc1/openssl_grpc.zip",
checksum: "59f6b801c7ea99c5aff09ad9142972982f26548214707684d2f5f1500d4a4490"
)
]
)