forked from kewlbear/TensorFlowLiteC
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Package.swift.in
25 lines (23 loc) · 1.05 KB
/
Package.swift.in
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
// swift-tools-version:5.3
import PackageDescription
let package = Package(
name: "TensorFlowLiteC",
products: [
.library(
name: "TensorFlowLiteC",
targets: [
"TensorFlowLiteC",
"TensorFlowLiteCCoreML",
"TensorFlowLiteCMetal",
"Link",
]
),
],
targets: [
.binaryTarget(name: "TensorFlowLiteC", url: "https://github.com/polyguard-ai/TensorFlowLiteC/releases/download/VERSION/TensorFlowLiteC.xcframework.zip", checksum: "CORE_CHECKSUM"),
.binaryTarget(name: "TensorFlowLiteCCoreML", url: "https://github.com/polyguard-ai/TensorFlowLiteC/releases/download/VERSION/TensorFlowLiteCCoreML.xcframework.zip", checksum: "COREML_CHECKSUM"),
.binaryTarget(name: "TensorFlowLiteCMetal", url: "https://github.com/polyguard-ai/TensorFlowLiteC/releases/download/VERSION/TensorFlowLiteCMetal.xcframework.zip", checksum: "METAL_CHECKSUM"),
.target(name: "Link",
linkerSettings: [.linkedLibrary("c++")]),
]
)