diff --git a/Package.swift b/Package.swift new file mode 100644 index 0000000..f77ebd1 --- /dev/null +++ b/Package.swift @@ -0,0 +1,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.17.3/onnxruntime-1.17.3-xcframework.zip", + checksum: "f0ab4046ec89d855aab45835b96b45c0bb5c46b49c72f11aae99178be48dc4fc" +) +#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", + ] + ), + ] +)