// swift-tools-version: 6.0 import PackageDescription let package = Package( name: "madcat-say", platforms: [.macOS(.v15)], dependencies: [ .package(path: "../speech-swift"), .package(url: "https://github.com/apple/swift-argument-parser", from: "1.5.0"), // MLX core — used by `gpu-check` to query the Metal device and run a // GPU compute probe. Same package speech-swift resolves (pinned 0.31.x). .package(url: "https://github.com/ml-explore/mlx-swift", from: "0.30.0"), // Hummingbird — loopback HTTP server for the `serve` resident TTS daemon. // Same range speech-swift pins; HTTP only, no WebSocket. .package(url: "https://github.com/hummingbird-project/hummingbird.git", "2.5.0"..<"2.17.0"), ], targets: [ .executableTarget( name: "madcat-say", dependencies: [ .product(name: "VoxCPM2TTS", package: "speech-swift"), .product(name: "AudioCommon", package: "speech-swift"), .product(name: "ArgumentParser", package: "swift-argument-parser"), .product(name: "MLX", package: "mlx-swift"), .product(name: "Hummingbird", package: "hummingbird"), ], path: "Sources", swiftSettings: [.swiftLanguageMode(.v5)] ), ] )