-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathPackage.swift
61 lines (54 loc) · 1.82 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:5.3
// The swift-tools-version declares the minimum version of
// Swift required to build this package.
import PackageDescription
let package = Package(
name: "SwiftRT",
products: [
.library(name: "SwiftRT", targets: ["SwiftRT"]),
.library(name: "SwiftRTCore", targets: ["SwiftRTCore"]),
.library(name: "SwiftRTLayers", targets: ["SwiftRTLayers"]),
],
dependencies: [
.package(url: "https://github.com/apple/swift-numerics",
.branch("main"))
],
targets: [
// umbrella import
.target(
name: "SwiftRT",
dependencies: ["SwiftRTCore", "SwiftRTLayers"],
exclude: ["CMakeLists.txt", "README.md"]),
// neural net layers
.target(
name: "SwiftRTLayers",
dependencies: ["SwiftRTCore"],
exclude: ["CMakeLists.txt"]),
// core platform and base types
.target(
name: "SwiftRTCore",
dependencies: [.product(name: "Numerics", package: "swift-numerics")],
exclude: [
"CMakeLists.txt",
"platform/cuda",
"numpy/RankFunctions.swift.gyb",
"numpy/array.swift.gyb",
"numpy/arrayInit.swift.gyb",
"tensor/Subscripts.swift.gyb",
]),
// tests
.testTarget(
name: "BenchmarkTests",
dependencies: ["SwiftRT"],
exclude: ["CMakeLists.txt"]),
.testTarget(
name: "SwiftRTCoreTests",
dependencies: ["SwiftRT"],
exclude: ["CMakeLists.txt"]),
.testTarget(
name: "SwiftRTLayerTests",
dependencies: ["SwiftRT"],
exclude: ["CMakeLists.txt"]),
],
cxxLanguageStandard: .cxx1z
)