forked from jingruhou/mediapipe-master
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathopencv_ios.BUILD
48 lines (42 loc) · 1.14 KB
/
opencv_ios.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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
# Description:
# OpenCV libraries for video/image processing on iOS
licenses(["notice"]) # BSD license
exports_files(["LICENSE"])
load(
"@build_bazel_rules_apple//apple:apple.bzl",
"apple_static_framework_import",
)
apple_static_framework_import(
name = "OpencvFramework",
framework_imports = glob(["opencv2.framework/**"]),
visibility = ["//visibility:public"],
)
objc_library(
name = "opencv_objc_lib",
deps = [":OpencvFramework"],
)
cc_library(
name = "opencv",
hdrs = glob([
"opencv2.framework/Versions/A/Headers/**/*.h*",
]),
copts = [
"-std=c++11",
"-x objective-c++",
],
include_prefix = "opencv2",
linkopts = [
"-framework AssetsLibrary",
"-framework CoreFoundation",
"-framework CoreGraphics",
"-framework CoreMedia",
"-framework Accelerate",
"-framework CoreImage",
"-framework AVFoundation",
"-framework CoreVideo",
"-framework QuartzCore",
],
strip_include_prefix = "opencv2.framework/Versions/A/Headers",
visibility = ["//visibility:public"],
deps = [":opencv_objc_lib"],
)