mediapipe/third_party/opencv_macos.BUILD
MediaPipe Team d68f5e4169 Project import generated by Copybara.
PiperOrigin-RevId: 253489161
2019-06-16 16:06:57 -07:00

28 lines
937 B
Plaintext

# 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",
"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"],
)