-
Notifications
You must be signed in to change notification settings - Fork 0
/
BUILD
72 lines (66 loc) · 1.78 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
62
63
64
65
66
67
68
69
70
71
72
load("@com_google_protobuf//:protobuf.bzl", "py_proto_library")
load(
"//build/toolchain:cross_compilation.bzl",
CROSS_COMPILATION_COPTS = "COPTS",
CROSS_COMPILATION_DEPS = "DEPS",
CROSS_COMPILATION_LINKOPTS = "LINKOPTS",
)
load(
"@rules_python//python/pip_install:requirements.bzl",
"compile_pip_requirements",
)
package(default_visibility = ["//:__subpackages__"])
config_setting(
name = "pi_build",
values = {
"cpu": "armeabihf",
"compiler": "clang",
},
)
config_setting(
name = "clang_build",
values = {"compiler": "clang"},
)
compile_pip_requirements(
name = "requirements",
extra_args = [
"--allow-unsafe",
"--no-emit-index-url",
],
)
cc_binary(
name = "main",
copts = CROSS_COMPILATION_COPTS,
linkopts = CROSS_COMPILATION_LINKOPTS,
linkstatic = 1,
deps = [
":main_lib",
] + CROSS_COMPILATION_DEPS,
)
cc_library(
name = "main_lib",
srcs = ["main.cc"],
linkstatic = 1,
deps = [
"//application:open_drop_controller",
"//application:open_drop_controller_interface",
"//debug:signal_scope",
"//preset:preset_list",
"//util:cleanup",
"//util/audio:pulseaudio_interface",
"//util/graphics:gl_interface",
"//util/graphics/sdl:sdl_gl_interface",
"//util/logging",
"//util/time:performance_timer",
"//util/time:rate_limiter",
"@com_google_absl//absl/debugging:failure_signal_handler",
"@com_google_absl//absl/flags:flag",
"@com_google_absl//absl/flags:parse",
"@com_google_absl//absl/time",
"@com_google_absl//absl/types:span",
"@imgui",
"@imgui//:imgui_backend_opengl2",
"@imgui//:imgui_backend_sdl",
"@implot",
],
)