-
Notifications
You must be signed in to change notification settings - Fork 2
/
BUILD
61 lines (61 loc) · 2.41 KB
/
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
49
50
51
52
53
54
55
56
57
58
59
60
61
cc_library(
name = "opencv_lib",
srcs = select({
"@deepmap//:darwin": [
"mac/lib/libopencv_calib3d.a",
"mac/lib/libopencv_features2d.a",
"mac/lib/libopencv_xfeatures2d.a",
"mac/lib/libopencv_flann.a",
"mac/lib/libopencv_highgui.a",
"mac/lib/libopencv_imgcodecs.a",
"mac/lib/libopencv_ml.a",
"mac/lib/libopencv_objdetect.a",
"mac/lib/libopencv_photo.a",
"mac/lib/libopencv_shape.a",
"mac/lib/libopencv_stitching.a",
"mac/lib/libopencv_superres.a",
"mac/lib/libopencv_video.a",
"mac/lib/libopencv_videoio.a",
"mac/lib/libopencv_videostab.a",
"mac/lib/libopencv_imgproc.a",
"mac/lib/libopencv_core.a",
"mac/3rdparty/lib/liblibjasper.a",
"mac/3rdparty/lib/liblibjpeg.a",
"mac/3rdparty/lib/liblibpng.a",
"mac/3rdparty/lib/liblibtiff.a",],
"//conditions:default": [
"linux/lib/libopencv_calib3d.a",
"linux/lib/libopencv_features2d.a",
"linux/lib/libopencv_xfeatures2d.a",
"linux/lib/libopencv_viz.a",
"linux/lib/libopencv_flann.a",
"linux/lib/libopencv_highgui.a",
"linux/lib/libopencv_imgcodecs.a",
"linux/lib/libopencv_ml.a",
"linux/lib/libopencv_objdetect.a",
"linux/lib/libopencv_photo.a",
"linux/lib/libopencv_shape.a",
"linux/lib/libopencv_stitching.a",
"linux/lib/libopencv_superres.a",
"linux/lib/libopencv_video.a",
"linux/lib/libopencv_videoio.a",
"linux/lib/libopencv_videostab.a",
"linux/lib/libopencv_imgproc.a",
"linux/lib/libopencv_core.a",
"linux/3rdparty/lib/liblibjasper.a",
"linux/3rdparty/lib/liblibjpeg.a",
"linux/3rdparty/lib/liblibpng.a",
"linux/3rdparty/lib/liblibtiff.a",],
}),
hdrs = select({
"@deepmap//:darwin": glob(["mac/**/*.hpp", "mac/**/*.h"]),
"//conditions:default": glob(["linux/**/*.hpp", "linux/**/*.h"])
}),
includes = select({
"@deepmap//:darwin": ["mac/include"],
"//conditions:default": ["linux/include"]
}),
visibility = ["//visibility:public"],
linkstatic = 1,
linkopts = ["-lstdc++", "-ldl", "-lm", "-pthread", "-lz"],
)