-
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathPackage.swift
61 lines (59 loc) · 1.38 KB
/
Package.swift
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
// swift-tools-version: 6.0
import PackageDescription
import CompilerPluginSupport
let package = Package(
name: "Empire",
platforms: [
.macOS(.v14),
.iOS(.v17),
.macCatalyst(.v17),
.watchOS(.v10),
.tvOS(.v17),
.visionOS(.v1),
],
products: [
.library(name: "Empire", targets: ["Empire"]),
.library(name: "LMDB", targets: ["LMDB"]),
],
dependencies: [
.package(url: "https://github.com/swiftlang/swift-syntax.git", from: "600.0.0-latest"),
],
targets: [
.target(
name: "CLMDB",
path: "lmdb/libraries/liblmdb",
sources: [
"mdb.c",
"midl.c"
],
publicHeadersPath: "."
),
.target(name: "LMDB", dependencies: ["CLMDB"]),
.testTarget(name: "LMDBTests", dependencies: ["LMDB"]),
.target(name: "PackedSerialize"),
.testTarget(name: "PackedSerializeTests", dependencies: ["PackedSerialize"]),
.macro(
name: "EmpireMacros",
dependencies: [
.product(name: "SwiftSyntaxMacros", package: "swift-syntax"),
.product(name: "SwiftCompilerPlugin", package: "swift-syntax")
]
),
.testTarget(
name: "EmpireMacrosTests",
dependencies: [
"EmpireMacros",
.product(name: "SwiftSyntaxMacrosTestSupport", package: "swift-syntax"),
]
),
.target(
name: "Empire",
dependencies: ["LMDB", "EmpireMacros", "PackedSerialize"]
),
.testTarget(
name: "EmpireTests",
dependencies: ["Empire"]
),
],
swiftLanguageModes: [.v6]
)