Tyler Chatow | b3850c1 | 2020-02-26 20:55:48 -0800 | [diff] [blame] | 1 | load("//aos/seasocks:gen_embedded.bzl", "gen_embedded") |
| 2 | |
| 3 | gen_embedded( |
| 4 | name = "gen_embedded", |
| 5 | srcs = glob( |
| 6 | include = ["www_defaults/**/*"], |
| 7 | exclude = ["www/**/*"], |
| 8 | ), |
| 9 | ) |
| 10 | |
| 11 | filegroup( |
| 12 | name = "image_streamer_start", |
| 13 | srcs = ["image_streamer_start.sh"], |
| 14 | visibility = ["//visibility:public"], |
| 15 | ) |
| 16 | |
| 17 | cc_binary( |
| 18 | name = "image_streamer", |
| 19 | srcs = ["image_streamer.cc"], |
| 20 | args = [ |
| 21 | "--data_dir=y2022/image_streamer/www", |
| 22 | ], |
| 23 | copts = [ |
| 24 | "-Wno-cast-align", |
| 25 | ], |
| 26 | data = [ |
| 27 | "//y2022:aos_config", |
| 28 | "//y2022/image_streamer/www:files", |
| 29 | "//y2022/image_streamer/www:main_bundle.min.js", |
| 30 | ], |
| 31 | target_compatible_with = select({ |
| 32 | "@platforms//cpu:x86_64": [], |
| 33 | "@platforms//cpu:aarch64": [], |
| 34 | "//conditions:default": ["@platforms//:incompatible"], |
| 35 | }) + [ |
| 36 | "@platforms//os:linux", |
| 37 | ], |
| 38 | visibility = ["//visibility:public"], |
| 39 | deps = [ |
| 40 | ":gen_embedded", |
| 41 | "//aos:configuration_fbs", |
| 42 | "//aos:init", |
| 43 | "//aos/events:glib_main_loop", |
| 44 | "//aos/events:shm_event_loop", |
| 45 | "//aos/network:connect_fbs", |
| 46 | "//aos/network:web_proxy_fbs", |
| 47 | "//aos/seasocks:seasocks_logger", |
| 48 | "//frc971/vision:vision_fbs", |
| 49 | "//third_party:gstreamer", |
| 50 | "//third_party/seasocks", |
| 51 | "@com_github_google_flatbuffers//:flatbuffers", |
| 52 | "@com_github_google_glog//:glog", |
| 53 | "@com_google_absl//absl/strings:str_format", |
| 54 | ], |
| 55 | ) |