Skip to content

Commit 9dae269

Browse files
committed
added more platforms to package
1 parent 1812c5c commit 9dae269

File tree

1 file changed

+55
-49
lines changed

1 file changed

+55
-49
lines changed

Package.swift

Lines changed: 55 additions & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -5,53 +5,59 @@ import CompilerPluginSupport
55
import PackageDescription
66

77
let package = Package(
8-
name: "SwiftMCP",
9-
platforms: [.macOS(.v13)],
10-
products: [
11-
.library(
12-
name: "SwiftMCP",
13-
targets: ["SwiftMCP"]
14-
),
15-
.executable(
16-
name: "SwiftMCPDemo",
17-
targets: ["SwiftMCPDemo"]
18-
),
19-
],
20-
dependencies: [
21-
.package(url: "https://github.com/apple/swift-syntax.git", from: "600.0.1"),
22-
.package(url: "https://github.com/Flight-School/AnyCodable", from: "0.6.0"),
23-
.package(url: "https://github.com/apple/swift-argument-parser", from: "1.2.0"),
24-
],
25-
targets: [
26-
// Library that exposes a macro as part of its API, which is used in client programs.
27-
.target(
28-
name: "SwiftMCP",
29-
dependencies: ["AnyCodable", "SwiftMCPMacros"]
30-
),
31-
32-
// A client of the library, which is able to use the macro in its own code.
33-
.executableTarget(
34-
name: "SwiftMCPDemo",
35-
dependencies: [
36-
"SwiftMCP",
37-
.product(name: "ArgumentParser", package: "swift-argument-parser")
38-
]
39-
),
40-
41-
// Test target for unit tests
42-
.testTarget(
43-
name: "SwiftMCPTests",
44-
dependencies: ["SwiftMCP", "SwiftMCPMacros"]
45-
),
46-
47-
// The implementation of the macro, which is a separate target so that it
48-
// can be compiled separately from the rest of the code.
49-
.macro(
50-
name: "SwiftMCPMacros",
51-
dependencies: [
52-
.product(name: "SwiftSyntaxMacros", package: "swift-syntax"),
53-
.product(name: "SwiftCompilerPlugin", package: "swift-syntax")
54-
]
55-
)
56-
]
8+
name: "SwiftMCP",
9+
platforms: [
10+
.macOS("11.0"),
11+
.iOS("14.0"),
12+
.tvOS("14.0"),
13+
.watchOS("7.0"),
14+
.macCatalyst("14.0")
15+
],
16+
products: [
17+
.library(
18+
name: "SwiftMCP",
19+
targets: ["SwiftMCP"]
20+
),
21+
.executable(
22+
name: "SwiftMCPDemo",
23+
targets: ["SwiftMCPDemo"]
24+
),
25+
],
26+
dependencies: [
27+
.package(url: "https://github.com/apple/swift-syntax.git", from: "600.0.1"),
28+
.package(url: "https://github.com/Flight-School/AnyCodable", from: "0.6.0"),
29+
.package(url: "https://github.com/apple/swift-argument-parser", from: "1.2.0"),
30+
],
31+
targets: [
32+
// Library that exposes a macro as part of its API, which is used in client programs.
33+
.target(
34+
name: "SwiftMCP",
35+
dependencies: ["AnyCodable", "SwiftMCPMacros"]
36+
),
37+
38+
// A client of the library, which is able to use the macro in its own code.
39+
.executableTarget(
40+
name: "SwiftMCPDemo",
41+
dependencies: [
42+
"SwiftMCP",
43+
.product(name: "ArgumentParser", package: "swift-argument-parser")
44+
]
45+
),
46+
47+
// Test target for unit tests
48+
.testTarget(
49+
name: "SwiftMCPTests",
50+
dependencies: ["SwiftMCP", "SwiftMCPMacros"]
51+
),
52+
53+
// The implementation of the macro, which is a separate target so that it
54+
// can be compiled separately from the rest of the code.
55+
.macro(
56+
name: "SwiftMCPMacros",
57+
dependencies: [
58+
.product(name: "SwiftSyntaxMacros", package: "swift-syntax"),
59+
.product(name: "SwiftCompilerPlugin", package: "swift-syntax")
60+
]
61+
)
62+
]
5763
)

0 commit comments

Comments
 (0)