forked from christopherkarani/Hive
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathPackage.swift
More file actions
60 lines (57 loc) · 1.72 KB
/
Copy pathPackage.swift
File metadata and controls
60 lines (57 loc) · 1.72 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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
// swift-tools-version: 6.2
import Foundation
import PackageDescription
let packageDependencies: [Package.Dependency] = [
.package(url: "https://github.com/apple/swift-crypto.git", from: "3.7.0"),
.package(url: "https://github.com/swiftlang/swift-docc-plugin", from: "1.4.3"),
]
let package = Package(
name: "Hive",
platforms: [
.iOS(.v26),
.macOS(.v26),
],
products: [
.library(name: "Hive", targets: ["Hive"]),
.library(name: "HiveCore", targets: ["HiveCore"]),
.executable(name: "HiveTinyGraphExample", targets: ["HiveTinyGraphExample"]),
],
dependencies: packageDependencies,
targets: [
.target(
name: "HiveCore",
dependencies: [
.product(name: "Crypto", package: "swift-crypto"),
],
path: "Sources/Hive/Sources/HiveCore",
exclude: ["README.md"]
),
.target(
name: "Hive",
dependencies: ["HiveCore"],
path: "Sources/Hive/Sources/Hive",
exclude: ["README.md"]
),
.executableTarget(
name: "HiveTinyGraphExample",
dependencies: ["HiveCore"],
path: "Sources/Hive/Examples/TinyGraph"
),
.testTarget(
name: "HiveCoreTests",
dependencies: ["HiveCore"],
path: "Sources/Hive/Tests/HiveCoreTests",
resources: [
.process("Runtime/Fixtures"),
],
swiftSettings: [
.define("HIVE_V11_TRIGGERS"),
]
),
.testTarget(
name: "HiveTests",
dependencies: ["Hive"],
path: "Sources/Hive/Tests/HiveTests"
),
]
)