Project import generated by Copybara.
GitOrigin-RevId: ff83882955f1a1e2a043ff4e71278be9d7217bbe
This commit is contained in:
Vendored
+20
-4
@@ -7,15 +7,31 @@ exports_files(["LICENSE"])
|
||||
|
||||
OPENCV_VERSION = "3410" # 3.4.10
|
||||
|
||||
config_setting(
|
||||
name = "opt_build",
|
||||
values = {"compilation_mode": "opt"},
|
||||
)
|
||||
|
||||
config_setting(
|
||||
name = "dbg_build",
|
||||
values = {"compilation_mode": "dbg"},
|
||||
)
|
||||
|
||||
# The following build rule assumes that the executable "opencv-3.4.10-vc14_vc15.exe"
|
||||
# is downloaded and the files are extracted to local.
|
||||
# If you install OpenCV separately, please modify the build rule accordingly.
|
||||
cc_library(
|
||||
name = "opencv",
|
||||
srcs = [
|
||||
"x64/vc15/lib/opencv_world" + OPENCV_VERSION + ".lib",
|
||||
"x64/vc15/bin/opencv_world" + OPENCV_VERSION + ".dll",
|
||||
],
|
||||
srcs = select({
|
||||
":opt_build": [
|
||||
"x64/vc15/lib/opencv_world" + OPENCV_VERSION + ".lib",
|
||||
"x64/vc15/bin/opencv_world" + OPENCV_VERSION + ".dll",
|
||||
],
|
||||
":dbg_build": [
|
||||
"x64/vc15/lib/opencv_world" + OPENCV_VERSION + "d.lib",
|
||||
"x64/vc15/bin/opencv_world" + OPENCV_VERSION + "d.dll",
|
||||
],
|
||||
}),
|
||||
hdrs = glob(["include/opencv2/**/*.h*"]),
|
||||
includes = ["include/"],
|
||||
linkstatic = 1,
|
||||
|
||||
Reference in New Issue
Block a user