-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathPackage.swift
More file actions
31 lines (29 loc) · 776 Bytes
/
Copy pathPackage.swift
File metadata and controls
31 lines (29 loc) · 776 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
// swift-tools-version: 5.9
import PackageDescription
let packageDir = Context.packageDirectory
let package = Package(
name: "Typeless",
platforms: [
.macOS(.v14)
],
targets: [
.target(
name: "CSherpaOnnx",
path: "Sources/CSherpaOnnx",
publicHeadersPath: "."
),
.executableTarget(
name: "Typeless",
dependencies: [
"CSherpaOnnx"
],
path: "Sources",
exclude: ["CSherpaOnnx"],
linkerSettings: [
.unsafeFlags(["-L\(packageDir)/Frameworks/sherpa-onnx/lib"]),
.linkedLibrary("sherpa-onnx-c-api"),
.linkedLibrary("onnxruntime")
]
)
]
)