blob: 7f34afe90d572fbe0c8505dd1570dd7a1e40ae78 [file] [log] [blame]
Philipp Schrader3de4dfc2023-02-15 20:18:25 -08001load("//tools/build_rules:js.bzl", "rollup_bundle", "ts_project")
Austin Schuhaa3b0862022-07-15 14:38:41 -07002
3package(default_visibility = ["//visibility:public"])
4
Philipp Schrader3de4dfc2023-02-15 20:18:25 -08005ts_project(
Austin Schuhaa3b0862022-07-15 14:38:41 -07006 name = "cpp_plot",
7 srcs = ["cpp_plot.ts"],
8 target_compatible_with = ["@platforms//os:linux"],
9 deps = [
10 "//aos:configuration_ts_fbs",
11 "//aos/network/www:proxy",
12 "//frc971/analysis:plot_data_utils",
13 ],
14)
15
16rollup_bundle(
17 name = "cpp_plot_bundle",
18 entry_point = "cpp_plot.ts",
19 target_compatible_with = ["@platforms//os:linux"],
20 deps = [
21 ":cpp_plot",
22 ],
23)
24
Austin Schuhfcd56942022-07-18 17:41:32 -070025genrule(
26 name = "copy_css",
27 srcs = [
28 "//aos/network/www:styles.css",
29 ],
30 outs = ["styles.css"],
31 cmd = "cp $< $@",
32)
33
Austin Schuhaa3b0862022-07-15 14:38:41 -070034filegroup(
35 name = "cpp_plot_files",
36 srcs = [
Austin Schuhfcd56942022-07-18 17:41:32 -070037 "cpp_plot_bundle.js",
Austin Schuhaa3b0862022-07-15 14:38:41 -070038 "cpp_plot_bundle.min.js",
39 "index.html",
Austin Schuhfcd56942022-07-18 17:41:32 -070040 "styles.css",
Austin Schuhaa3b0862022-07-15 14:38:41 -070041 ],
42)