-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathPackage.swift
More file actions
43 lines (39 loc) · 1.58 KB
/
Package.swift
File metadata and controls
43 lines (39 loc) · 1.58 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
// swift-tools-version: 5.7
// The swift-tools-version declares the minimum version of Swift required to build this package.
import PackageDescription
let env = Context.environment["ALLUI_ENV"]
let dependencies: [Package.Dependency]
let targetDeps: [Target.Dependency]
if env == "LOCAL" {
dependencies = [
.package(path: "../SwiftLangUI"),
.package(path: "../../../research/OpenAPIKit")
]
} else {
dependencies = [
.package(url: "https://github.com/Everything-as-UI/SwiftLangUI.git", branch: "main"),
.package(url: "https://github.com/Everything-as-UI/OpenAPIKit.git", branch: "working_branch")
]
}
let package = Package(
name: "openapi",
platforms: [.macOS(.v10_15)],
products: [
.executable(name: "openapi-generator", targets: ["openapi-generator"]),
.library(name: "openapi", targets: ["openapi"])
],
dependencies: dependencies + [
.package(url: "https://github.com/jpsim/Yams.git", "4.0.0"..<"6.0.0")
],
targets: [
.executableTarget(name: "openapi-generator", dependencies: ["openapi"]),
.target(name: "openapi", dependencies: [
.product(name: "OpenAPIKit30", package: "OpenAPIKit"),
.product(name: "OpenAPIKit", package: "OpenAPIKit"),
.product(name: "OpenAPIKitCompat", package: "OpenAPIKit"),
.product(name: "SwiftLangUI", package: "SwiftLangUI"),
.product(name: "Yams", package: "Yams")
]),
.testTarget(name: "openapiTests", dependencies: ["openapi", "OpenAPIKit"], resources: [.process("ExpectedResults")])
]
)