Files
stable-diffusion-rpc/Package.swift

42 lines
2.0 KiB
Swift
Raw Normal View History

2023-04-22 14:52:27 -07:00
// swift-tools-version: 5.7
import PackageDescription
let package = Package(
name: "stable-diffusion-rpc",
platforms: [.macOS("13.1"), .iOS("16.2")],
products: [
2023-04-22 23:24:36 -07:00
.executable(name: "stable-diffusion-rpc", targets: ["StableDiffusionServer"]),
2023-04-22 14:52:27 -07:00
.library(name: "StableDiffusionProtos", targets: ["StableDiffusionProtos"]),
2023-04-22 23:24:36 -07:00
.executable(name: "stable-diffusion-ctl", targets: ["StableDiffusionControl"])
2023-04-22 14:52:27 -07:00
],
dependencies: [
2023-04-28 20:12:44 -07:00
.package(url: "https://github.com/apple/ml-stable-diffusion.git", revision: "5d2744e38297b01662b8bdfb41e899ac98036d8b"),
.package(url: "https://github.com/apple/swift-protobuf.git", from: "1.6.0"),
2023-04-22 14:52:27 -07:00
.package(url: "https://github.com/grpc/grpc-swift.git", from: "1.15.0"),
2023-04-28 20:12:44 -07:00
.package(url: "https://github.com/apple/swift-argument-parser.git", from: "1.2.0")
2023-04-22 14:52:27 -07:00
],
targets: [
.target(name: "StableDiffusionProtos", dependencies: [
.product(name: "SwiftProtobuf", package: "swift-protobuf"),
.product(name: "GRPC", package: "grpc-swift")
]),
.target(name: "StableDiffusionCore", dependencies: [
.product(name: "StableDiffusion", package: "ml-stable-diffusion"),
.target(name: "StableDiffusionProtos")
]),
2023-04-22 14:52:27 -07:00
.executableTarget(name: "StableDiffusionServer", dependencies: [
.product(name: "StableDiffusion", package: "ml-stable-diffusion"),
.product(name: "SwiftProtobuf", package: "swift-protobuf"),
.product(name: "GRPC", package: "grpc-swift"),
.target(name: "StableDiffusionProtos"),
.target(name: "StableDiffusionCore"),
2023-04-22 14:52:27 -07:00
.product(name: "ArgumentParser", package: "swift-argument-parser")
]),
2023-04-22 23:24:36 -07:00
.executableTarget(name: "StableDiffusionControl", dependencies: [
2023-04-22 14:52:27 -07:00
.target(name: "StableDiffusionProtos"),
.target(name: "StableDiffusionCore"),
2023-04-22 14:52:27 -07:00
.product(name: "GRPC", package: "grpc-swift")
])
]
)