2019-06-17 01:03:25 +02:00
|
|
|
# Description:
|
|
|
|
# OpenCV libraries for video/image processing on MacOS
|
|
|
|
|
|
|
|
licenses(["notice"]) # BSD license
|
|
|
|
|
|
|
|
exports_files(["LICENSE"])
|
|
|
|
|
2022-05-04 00:29:57 +02:00
|
|
|
load("@bazel_skylib//lib:paths.bzl", "paths")
|
|
|
|
|
|
|
|
# The path to OpenCV is a combination of the path set for "macos_opencv"
|
|
|
|
# in the WORKSPACE file and the prefix here.
|
|
|
|
PREFIX = "opt/opencv@3"
|
|
|
|
|
2019-06-17 01:03:25 +02:00
|
|
|
cc_library(
|
|
|
|
name = "opencv",
|
|
|
|
srcs = glob(
|
|
|
|
[
|
2022-05-04 00:29:57 +02:00
|
|
|
paths.join(PREFIX, "lib/libopencv_core.dylib"),
|
|
|
|
paths.join(PREFIX, "lib/libopencv_calib3d.dylib"),
|
|
|
|
paths.join(PREFIX, "lib/libopencv_features2d.dylib"),
|
|
|
|
paths.join(PREFIX, "lib/libopencv_highgui.dylib"),
|
|
|
|
paths.join(PREFIX, "lib/libopencv_imgcodecs.dylib"),
|
|
|
|
paths.join(PREFIX, "lib/libopencv_imgproc.dylib"),
|
|
|
|
paths.join(PREFIX, "lib/libopencv_video.dylib"),
|
|
|
|
paths.join(PREFIX, "lib/libopencv_videoio.dylib"),
|
2019-06-17 01:03:25 +02:00
|
|
|
],
|
|
|
|
),
|
2022-05-04 00:29:57 +02:00
|
|
|
hdrs = glob([paths.join(PREFIX, "include/opencv2/**/*.h*")]),
|
|
|
|
includes = [paths.join(PREFIX, "include/")],
|
2019-06-17 01:03:25 +02:00
|
|
|
linkstatic = 1,
|
|
|
|
visibility = ["//visibility:public"],
|
|
|
|
)
|