XcodeGen/Package.swift
2019-06-26 16:49:10 +10:00

55 lines
1.8 KiB
Swift

// swift-tools-version:5.0
import PackageDescription
let package = Package(
name: "XcodeGen",
products: [
.executable(name: "xcodegen", targets: ["XcodeGen"]),
.library(name: "XcodeGenKit", targets: ["XcodeGenKit"]),
.library(name: "ProjectSpec", targets: ["ProjectSpec"]),
],
dependencies: [
.package(url: "https://github.com/kylef/PathKit.git", from: "1.0.0"),
.package(url: "https://github.com/jpsim/Yams.git", from: "2.0.0"),
.package(url: "https://github.com/yonaskolb/JSONUtilities.git", from: "4.2.0"),
.package(url: "https://github.com/kylef/Spectre.git", from: "0.9.0"),
.package(url: "https://github.com/onevcat/Rainbow.git", from: "3.0.0"),
.package(url: "https://github.com/tuist/xcodeproj.git", .exact("7.0.0")),
.package(url: "https://github.com/jakeheis/SwiftCLI.git", .exact("5.2.2")),
],
targets: [
.target(name: "XcodeGen", dependencies: [
"XcodeGenCLI",
]),
.target(name: "XcodeGenCLI", dependencies: [
"XcodeGenKit",
"ProjectSpec",
"SwiftCLI",
"Rainbow",
"PathKit",
]),
.target(name: "XcodeGenKit", dependencies: [
"ProjectSpec",
"JSONUtilities",
"XcodeProj",
"PathKit",
]),
.target(name: "ProjectSpec", dependencies: [
"JSONUtilities",
"XcodeProj",
"Yams",
]),
.testTarget(name: "XcodeGenKitTests", dependencies: [
"XcodeGenKit",
"Spectre",
"PathKit",
]),
.testTarget(name: "PerformanceTests", dependencies: [
"XcodeGenKit",
"Spectre",
"PathKit",
]),
]
)