-
Notifications
You must be signed in to change notification settings - Fork 0
/
Package.swift
43 lines (40 loc) · 1.06 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
// swift-tools-version:5.3
// This file is generated. Do not edit.
import PackageDescription
let onnxRuntimeBinaryTarget: Target
#if ONNX_RUNTIME_USE_LOCAL_FRAMEWORK
onnxRuntimeBinaryTarget = .binaryTarget(
name: "ONNXRuntimeBinary",
path: "onnxruntime.xcframework"
)
#else
onnxRuntimeBinaryTarget = .binaryTarget(
name: "ONNXRuntimeBinary",
url: "https://github.com/readdle/swift-onnxruntime/releases/download/1.20.1/onnxruntime-1.20.1-xcframework.zip",
checksum: "31017531ebb064f1903a73ca5d55597ac49b6ae32360eb2482fb2f435342fdad"
)
#endif
let package = Package(
name: "ONNXRuntime",
platforms: [
.macOS(.v11),
],
products: [
.library(name: "CONNXRuntime", targets: ["CONNXRuntime"]),
],
targets: [
onnxRuntimeBinaryTarget,
.target(
name: "CONNXRuntime",
dependencies: [
"ONNXRuntimeBinary",
]
),
.testTarget(
name: "CONNXRuntimeTests",
dependencies: [
"CONNXRuntime",
]
),
]
)