Skip to content

Commit

Permalink
Add binary xcframework URL
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisballinger committed Nov 18, 2020
1 parent 01250ae commit 9c38ca1
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -25,17 +25,17 @@ let package = Package(
]
),
// Recompute checksum via `swift package --package-path /path/to/opencv compute-checksum /path/to/opencv2.xcframework.zip`
// .binaryTarget(
// name: "opencv2",
// url: "https://url/to/some/remote/opencv2.xcframework.zip",
// checksum: "The checksum of the ZIP archive that contains the XCFramework."
// ),
// If you are compiling OpenCV locally, you can uncomment the below block to use a custom copy
// e.g. `$ python platforms/apple/build_xcframework.py platforms/apple/xcframework-build/`
.binaryTarget(
name: "opencv2",
path: "platforms/apple/xcframework-build/opencv2.xcframework"
url: "https://github.com/Rightpoint/opencv/releases/download/4.5.1/opencv-4.5.1-xcframework.zip",
checksum: "891e8756cb7e4073ff7d319c1edbff907eab022408f3ca639320d3d660ac9873"
),
// If you are compiling OpenCV locally, you can uncomment the below block to use a custom copy
// e.g. `$ python platforms/apple/build_xcframework.py platforms/apple/xcframework-build/`
// .binaryTarget(
// name: "opencv2",
// path: "platforms/apple/xcframework-build/opencv2.xcframework"
// ),
.testTarget(
name: "OpenCVTests",
dependencies: ["OpenCV"],
Expand Down

0 comments on commit 9c38ca1

Please sign in to comment.