-
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathPackage.swift
More file actions
32 lines (30 loc) · 976 Bytes
/
Package.swift
File metadata and controls
32 lines (30 loc) · 976 Bytes
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
// swift-tools-version: 5.9
// The swift-tools-version declares the minimum version of Swift required to build this package.
import PackageDescription
import CompilerPluginSupport
let package = Package(
name: "Injection",
platforms: [
.iOS(.v14),
.macOS(.v10_15),
.watchOS(.v5),
.tvOS(.v12)
],
products: [
.library(
name: "Injection",
targets: ["Injection"]),
],
dependencies: [
.package(url: "https://github.com/apple/swift-syntax", from: "510.0.0")
],
targets: [
.macro(name: "Macros", dependencies: [
.product(name: "SwiftSyntaxMacros", package: "swift-syntax"),
.product(name: "SwiftCompilerPlugin", package: "swift-syntax")
]),
.target(name: "Injection", dependencies: ["Macros"]),
.testTarget(name: "InjectionTests", dependencies: ["Injection"]),
.testTarget(name: "MacrosTest", dependencies: ["Macros", .product(name: "SwiftSyntaxMacrosTestSupport", package: "swift-syntax")])
]
)