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'
|
2021-08-19 00:18:12 +02:00
|
|
|
# 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",
|
2020-07-30 02:33:39 +02:00
|
|
|
hdrs = glob([
|
|
|
|
# For OpenCV 4.x
|
2021-08-19 00:18:12 +02:00
|
|
|
#"include/aarch64-linux-gnu/opencv4/opencv2/cvconfig.h",
|
|
|
|
#"include/arm-linux-gnueabihf/opencv4/opencv2/cvconfig.h",
|
|
|
|
#"include/x86_64-linux-gnu/opencv4/opencv2/cvconfig.h",
|
|
|
|
#"include/opencv4/opencv2/**/*.h*",
|
2020-07-30 02:33:39 +02:00
|
|
|
]),
|
|
|
|
includes = [
|
|
|
|
# For OpenCV 4.x
|
2021-08-19 00:18:12 +02:00
|
|
|
#"include/aarch64-linux-gnu/opencv4/",
|
|
|
|
#"include/arm-linux-gnueabihf/opencv4/",
|
|
|
|
#"include/x86_64-linux-gnu/opencv4/",
|
|
|
|
#"include/opencv4/",
|
|
|
|
],
|
|
|
|
linkopts = [
|
|
|
|
"-l:libopencv_core.so",
|
|
|
|
"-l:libopencv_calib3d.so",
|
|
|
|
"-l:libopencv_features2d.so",
|
|
|
|
"-l:libopencv_highgui.so",
|
|
|
|
"-l:libopencv_imgcodecs.so",
|
|
|
|
"-l:libopencv_imgproc.so",
|
|
|
|
"-l:libopencv_video.so",
|
|
|
|
"-l:libopencv_videoio.so",
|
2020-07-30 02:33:39 +02:00
|
|
|
],
|
2019-06-17 01:03:25 +02:00
|
|
|
visibility = ["//visibility:public"],
|
|
|
|
)
|