Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make the reflection service a product #1732

Merged
merged 2 commits into from
Dec 4, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ extension Target.Dependency {
static let grpc: Self = .target(name: grpcTargetName)
static let cgrpcZlib: Self = .target(name: cgrpcZlibTargetName)
static let protocGenGRPCSwift: Self = .target(name: "protoc-gen-grpc-swift")
static let reflectionService: Self = .target(name: "GRPCReflectionService")
static let grpcCodeGen: Self = .target(name: "GRPCCodeGen")

// Target dependencies; internal
Expand All @@ -98,7 +99,6 @@ extension Target.Dependency {
static let interopTestModels: Self = .target(name: "GRPCInteroperabilityTestModels")
static let interopTestImplementation: Self =
.target(name: "GRPCInteroperabilityTestsImplementation")
static let reflectionService: Self = .target(name: "GRPCReflectionService")

// Product dependencies
static let argumentParser: Self = .product(
Expand Down Expand Up @@ -528,6 +528,11 @@ extension Product {
targets: [cgrpcZlibTargetName]
)

static let grpcReflectionService: Product = .library(
name: "GRPCReflectionService",
targets: ["GRPCReflectionService"]
)

static let protocGenGRPCSwift: Product = .executable(
name: "protoc-gen-grpc-swift",
targets: ["protoc-gen-grpc-swift"]
Expand All @@ -547,6 +552,7 @@ let package = Package(
.grpc,
.grpcCore,
.cgrpcZlib,
.grpcReflectionService,
.protocGenGRPCSwift,
.grpcSwiftPlugin,
],
Expand Down