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
|
|
|
|
# 'brew install opencv' command on macos.
|
|
|
|
# If you install OpenCV separately, please modify the build rule accordingly.
|
|
|
|
cc_library(
|
|
|
|
name = "opencv",
|
|
|
|
srcs = glob(
|
|
|
|
[
|
|
|
|
"local/opt/opencv/lib/libopencv_core.dylib",
|
|
|
|
"local/opt/opencv/lib/libopencv_highgui.dylib",
|
|
|
|
"local/opt/opencv/lib/libopencv_imgcodecs.dylib",
|
|
|
|
"local/opt/opencv/lib/libopencv_imgproc.dylib",
|
2019-08-17 03:49:25 +02:00
|
|
|
"local/opt/opencv/lib/libopencv_optflow.dylib",
|
2019-06-17 01:03:25 +02:00
|
|
|
"local/opt/opencv/lib/libopencv_video.dylib",
|
|
|
|
"local/opt/opencv/lib/libopencv_videoio.dylib",
|
|
|
|
],
|
|
|
|
),
|
|
|
|
hdrs = glob(["local/opt/opencv/include/opencv4/**/*.h*"]),
|
|
|
|
includes = ["local/opt/opencv/include/opencv4/"],
|
|
|
|
linkstatic = 1,
|
|
|
|
visibility = ["//visibility:public"],
|
|
|
|
)
|