mirror of
https://github.com/yonaskolb/XcodeGen.git
synced 2024-09-19 08:37:53 +03:00
69b1368013
XcodeGen now supports "External Build Tool" target type (internally called PBXLegacyTarget in Xcode). This is implied when the target provides a `LegacyTarget` field in its spec. PBXLegacyTargets are just like normal targets but the `isa` is different and they have a notion of a buildTool. Most of the target logic doesn't have to change.
44 lines
1.4 KiB
Swift
44 lines
1.4 KiB
Swift
// swift-tools-version:4.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", .revision("a667cd3")),
|
|
.package(url: "https://github.com/kylef/Commander.git", from: "0.8.0"),
|
|
.package(url: "https://github.com/jpsim/Yams.git", from: "0.3.6"),
|
|
.package(url: "https://github.com/yonaskolb/JSONUtilities.git", from: "3.3.0"),
|
|
.package(url: "https://github.com/kylef/Spectre.git", from: "0.8.0"),
|
|
.package(url: "https://github.com/onevcat/Rainbow.git", from: "3.0.0"),
|
|
.package(url: "https://github.com/xcodeswift/xcproj.git", from: "1.7.0")
|
|
],
|
|
targets: [
|
|
.target(name: "XcodeGen", dependencies: [
|
|
"XcodeGenKit",
|
|
"Commander",
|
|
"Rainbow",
|
|
]),
|
|
.target(name: "XcodeGenKit", dependencies: [
|
|
"ProjectSpec",
|
|
"JSONUtilities",
|
|
"xcproj",
|
|
"PathKit",
|
|
]),
|
|
.target(name: "ProjectSpec", dependencies: [
|
|
"JSONUtilities",
|
|
"xcproj",
|
|
"Yams",
|
|
]),
|
|
.testTarget(name: "XcodeGenKitTests", dependencies: [
|
|
"XcodeGenKit",
|
|
"Spectre"
|
|
])
|
|
]
|
|
)
|