Files
grpc-binary/Package.swift
T

78 lines
2.3 KiB
Swift

// 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.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.62.1/grpc.zip",
checksum: "e008506fd5b0670906e17db3faf9b5b470894bae4a770b2b87d549cacdf61370"
),
.binaryTarget(
name: "grpcpp",
url: "https://dl.google.com/firebase/ios/bin/grpc/1.62.1/grpcpp.zip",
checksum: "01c4873d96fdf9b22d9f2e80e30f54a303c6628fda1b98dead5c0be942e5ca4e"
),
.binaryTarget(
name: "openssl_grpc",
url: "https://dl.google.com/firebase/ios/bin/grpc/1.62.1/openssl_grpc.zip",
checksum: "e827b278ed27a7b425394fe477c76af5b0c26cb594d1bb031d3a61251407f4dd"
)
]
)