-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathBUILD.bazel
63 lines (57 loc) · 1.33 KB
/
BUILD.bazel
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
load("@buildifier_prebuilt//:rules.bzl", "buildifier")
load("@rules_cc//cc:defs.bzl", "cc_binary")
package(default_visibility = ["//visibility:public"])
buildifier(
name = "buildifier",
exclude_patterns = [
"./bazel-*/*",
"./.git/*",
],
lint_mode = "fix",
)
cc_library(
name = "sdk",
srcs = ["third_party/rplidar/libsl_lidar_sdk.a"],
hdrs = glob(["third_party/rplidar/include/**/*.h"]),
)
cc_binary(
name = "playground_main",
srcs = ["playground_main.cc"],
# TODO: This should work //qt:plot.qml, but it does not.
data = ["plot.qml"],
deps = [
"sdk",
"//qt:plot",
":lidar",
"//proto:lidar_proto_cc",
"@absl//absl/flags:flag",
"@absl//absl/flags:parse",
"@absl//absl/memory",
"@absl//absl/status",
"@absl//absl/strings:str_format",
"@gflags",
"@glog",
],
)
cc_library(
name = "lidar",
srcs = ["lidar.cc"],
hdrs = ["lidar.h"],
deps = [
":sdk",
"@absl//absl/memory",
"@absl//absl/status:statusor",
"@absl//absl/strings:str_format",
],
)
cc_library(
name = "qt",
hdrs = glob(["third_party/qt/include/**/*.h"]),
linkopts = [
"-lQt6Widgets",
"-lQt6Core",
"-lQt6Gui",
"-lQt6Quick",
"-lQt6Qml",
],
)