forked from jingruhou/mediapipe-master
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathopencv_macos.BUILD
27 lines (24 loc) · 947 Bytes
/
opencv_macos.BUILD
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# 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@3' command on macos.
# If you install OpenCV separately, please modify the build rule accordingly.
cc_library(
name = "opencv",
srcs = glob(
[
"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",
],
),
hdrs = glob(["local/opt/opencv@3/include/opencv2/**/*.h*"]),
includes = ["local/opt/opencv@3/include/"],
linkstatic = 1,
visibility = ["//visibility:public"],
)