blob: 1e3ed58c097929a4df3a060d8c6883d8eea3abee [file] [log] [blame]
Jim Ostrowski977850f2022-01-22 21:04:22 -08001load("@com_github_google_flatbuffers//:build_defs.bzl", "flatbuffer_cc_library", "flatbuffer_ts_library")
2
3flatbuffer_cc_library(
4 name = "vision_fbs",
5 srcs = ["vision.fbs"],
6 gen_reflections = 1,
7 target_compatible_with = ["@platforms//os:linux"],
8 visibility = ["//visibility:public"],
9)
10
11flatbuffer_ts_library(
12 name = "vision_ts_fbs",
13 srcs = ["vision.fbs"],
14 target_compatible_with = ["@platforms//os:linux"],
15 visibility = ["//visibility:public"],
16)
17
18cc_library(
19 name = "v4l2_reader",
20 srcs = [
21 "v4l2_reader.cc",
22 ],
23 hdrs = [
24 "v4l2_reader.h",
25 ],
26 target_compatible_with = ["@platforms//os:linux"],
27 visibility = ["//visibility:public"],
28 deps = [
29 ":vision_fbs",
30 "//aos/events:event_loop",
31 "//aos/scoped:scoped_fd",
32 "@com_github_google_glog//:glog",
33 "@com_google_absl//absl/base",
34 ],
35)