-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathBUILD
44 lines (42 loc) · 1.04 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
load("@rules_foreign_cc//tools/build_defs:cmake.bzl", "cmake_external")
cmake_external(
name = "opencv",
cmake_options = [
"-GNinja",
"-DBUILD_LIST=core,highgui,imgcodecs,imgproc",
],
lib_source = "@opencv//:all",
make_commands = [
"ninja",
"ninja install",
],
out_include_dir = "include/opencv4",
shared_libraries = [
"libopencv_core.so",
"libopencv_highgui.so",
"libopencv_imgcodecs.so",
"libopencv_imgproc.so",
],
visibility = ["//visibility:public"],
)
cmake_external(
name = "sfml",
cmake_options = [
"-GNinja",
"-DCMAKE_BUILD_TYPE=Release",
"-DSFML_BUILD_EXAMPLES=OFF",
],
lib_source = "@sfml//:all",
make_commands = [
"ninja",
"ninja install",
],
out_include_dir = "include",
shared_libraries = [
"libsfml-audio.so.2.5",
"libsfml-graphics.so.2.5",
"libsfml-system.so.2.5",
"libsfml-window.so.2.5",
],
visibility = ["//visibility:public"],
)