2019-06-17 01:03:25 +02:00
|
|
|
# Description:
|
|
|
|
# OpenCV libraries for video/image processing on Linux
|
|
|
|
|
|
|
|
licenses(["notice"]) # BSD license
|
|
|
|
|
|
|
|
exports_files(["LICENSE"])
|
|
|
|
|
|
|
|
# The following build rule assumes that OpenCV is installed by
|
|
|
|
# 'apt-get install libopencv-core-dev libopencv-highgui-dev \'
|
2019-12-07 00:33:11 +01:00
|
|
|
# ' libopencv-calib3d-dev libopencv-features2d-dev \'
|
2020-04-07 04:10:12 +02:00
|
|
|
# ' libopencv-imgproc-dev libopencv-video-dev'
|
|
|
|
# on Debian buster/Ubuntu 18.04.
|
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 03:19:36 +02:00
|
|
|
"lib/x86_64-linux-gnu/libopencv_core.so",
|
2019-11-15 20:38:21 +01:00
|
|
|
"lib/x86_64-linux-gnu/libopencv_calib3d.so",
|
|
|
|
"lib/x86_64-linux-gnu/libopencv_features2d.so",
|
2019-09-05 03:19:36 +02:00
|
|
|
"lib/x86_64-linux-gnu/libopencv_highgui.so",
|
|
|
|
"lib/x86_64-linux-gnu/libopencv_imgcodecs.so",
|
|
|
|
"lib/x86_64-linux-gnu/libopencv_imgproc.so",
|
|
|
|
"lib/x86_64-linux-gnu/libopencv_video.so",
|
|
|
|
"lib/x86_64-linux-gnu/libopencv_videoio.so",
|
2019-06-17 01:03:25 +02:00
|
|
|
],
|
|
|
|
),
|
2019-08-17 03:49:25 +02:00
|
|
|
hdrs = glob(["include/opencv2/**/*.h*"]),
|
2019-06-17 01:03:25 +02:00
|
|
|
includes = ["include"],
|
|
|
|
linkstatic = 1,
|
|
|
|
visibility = ["//visibility:public"],
|
|
|
|
)
|