blob: d6e74c3e089d6fec1766acf2e821ddf432d3a746 [file] [log] [blame]
Austin Schuhaa3b0862022-07-15 14:38:41 -07001load("@npm//@bazel/typescript:index.bzl", "ts_library")
2load("//tools/build_rules:js.bzl", "rollup_bundle")
3
4package(default_visibility = ["//visibility:public"])
5
6ts_library(
7 name = "cpp_plot",
8 srcs = ["cpp_plot.ts"],
9 target_compatible_with = ["@platforms//os:linux"],
10 deps = [
11 "//aos:configuration_ts_fbs",
12 "//aos/network/www:proxy",
13 "//frc971/analysis:plot_data_utils",
14 ],
15)
16
17rollup_bundle(
18 name = "cpp_plot_bundle",
19 entry_point = "cpp_plot.ts",
20 target_compatible_with = ["@platforms//os:linux"],
21 deps = [
22 ":cpp_plot",
23 ],
24)
25
Austin Schuhfcd56942022-07-18 17:41:32 -070026genrule(
27 name = "copy_css",
28 srcs = [
29 "//aos/network/www:styles.css",
30 ],
31 outs = ["styles.css"],
32 cmd = "cp $< $@",
33)
34
Austin Schuhaa3b0862022-07-15 14:38:41 -070035filegroup(
36 name = "cpp_plot_files",
37 srcs = [
Austin Schuhfcd56942022-07-18 17:41:32 -070038 "cpp_plot_bundle.js",
Austin Schuhaa3b0862022-07-15 14:38:41 -070039 "cpp_plot_bundle.min.js",
40 "index.html",
Austin Schuhfcd56942022-07-18 17:41:32 -070041 "styles.css",
Austin Schuhaa3b0862022-07-15 14:38:41 -070042 ],
43)