2019-06-17 01:03:25 +02:00
|
|
|
# Description:
|
|
|
|
# OpenCV libraries for video/image processing on MacOS
|
|
|
|
|
|
|
|
licenses(["notice"]) # BSD license
|
|
|
|
|
|
|
|
exports_files(["LICENSE"])
|
|
|
|
|
|
|
|
# The following build rule assumes that OpenCV is installed by
|
2019-09-05 23:51:00 +02:00
|
|
|
# 'brew install opencv@3' command on macos.
|
2019-06-17 01:03:25 +02:00
|
|
|
# If you install OpenCV separately, please modify the build rule accordingly.
|
|
|
|
cc_library(
|
|
|
|
name = "opencv",
|
|
|
|
srcs = glob(
|
|
|
|
[
|
2019-09-05 23:51:00 +02:00
|
|
|
"local/opt/opencv@3/lib/libopencv_core.dylib",
|
|
|
|
"local/opt/opencv@3/lib/libopencv_highgui.dylib",
|
|
|
|
"local/opt/opencv@3/lib/libopencv_imgcodecs.dylib",
|
|
|
|
"local/opt/opencv@3/lib/libopencv_imgproc.dylib",
|
|
|
|
"local/opt/opencv@3/lib/libopencv_video.dylib",
|
|
|
|
"local/opt/opencv@3/lib/libopencv_videoio.dylib",
|
2019-06-17 01:03:25 +02:00
|
|
|
],
|
|
|
|
),
|
2019-09-05 23:51:00 +02:00
|
|
|
hdrs = glob(["local/opt/opencv@3/include/opencv2/**/*.h*"]),
|
|
|
|
includes = ["local/opt/opencv@3/include/"],
|
2019-06-17 01:03:25 +02:00
|
|
|
linkstatic = 1,
|
|
|
|
visibility = ["//visibility:public"],
|
|
|
|
)
|