milind-u | 086d726 | 2022-01-19 20:44:18 -0800 | [diff] [blame] | 1 | load("//frc971:downloader.bzl", "robot_downloader") |
| 2 | load("//aos:config.bzl", "aos_config") |
Henry Speiser | 0b9b005 | 2022-03-02 23:07:40 -0800 | [diff] [blame] | 3 | load("@com_github_google_flatbuffers//:build_defs.bzl", "flatbuffer_cc_library") |
milind-u | f2f59aa | 2022-01-23 21:06:12 -0800 | [diff] [blame] | 4 | load("//tools/build_rules:template.bzl", "jinja2_template") |
milind-u | 086d726 | 2022-01-19 20:44:18 -0800 | [diff] [blame] | 5 | |
| 6 | robot_downloader( |
milind-u | f2f59aa | 2022-01-23 21:06:12 -0800 | [diff] [blame] | 7 | binaries = [ |
Henry Speiser | 0b9b005 | 2022-03-02 23:07:40 -0800 | [diff] [blame] | 8 | ":setpoint_setter", |
milind-u | f2f59aa | 2022-01-23 21:06:12 -0800 | [diff] [blame] | 9 | "//aos/network:web_proxy_main", |
Austin Schuh | 3d3707a | 2022-04-02 22:39:50 -0700 | [diff] [blame] | 10 | "//aos/events/logging:log_cat", |
milind-u | f2f59aa | 2022-01-23 21:06:12 -0800 | [diff] [blame] | 11 | ], |
milind-u | 086d726 | 2022-01-19 20:44:18 -0800 | [diff] [blame] | 12 | data = [ |
Austin Schuh | c5fa6d9 | 2022-02-25 14:36:28 -0800 | [diff] [blame] | 13 | ":aos_config", |
Austin Schuh | 6b2edc6 | 2022-03-27 13:32:09 -0700 | [diff] [blame] | 14 | ":message_bridge_client.sh", |
Austin Schuh | de605f1 | 2022-02-23 23:08:19 -0800 | [diff] [blame] | 15 | "@ctre_phoenix_api_cpp_athena//:shared_libraries", |
| 16 | "@ctre_phoenix_cci_athena//:shared_libraries", |
James Kuszmaul | 9776b39 | 2023-01-14 14:08:08 -0800 | [diff] [blame] | 17 | "@ctre_phoenixpro_api_cpp_athena//:shared_libraries", |
| 18 | "@ctre_phoenixpro_tools_athena//:shared_libraries", |
milind-u | 086d726 | 2022-01-19 20:44:18 -0800 | [diff] [blame] | 19 | ], |
Austin Schuh | 76f227c | 2022-02-23 16:34:08 -0800 | [diff] [blame] | 20 | dirs = [ |
Ravago Jones | 81e5063 | 2022-03-11 16:23:51 -0800 | [diff] [blame] | 21 | "//y2022/actors:splines", |
Austin Schuh | 76f227c | 2022-02-23 16:34:08 -0800 | [diff] [blame] | 22 | "//y2022/www:www_files", |
| 23 | ], |
milind-u | 086d726 | 2022-01-19 20:44:18 -0800 | [diff] [blame] | 24 | start_binaries = [ |
milind-u | f2f59aa | 2022-01-23 21:06:12 -0800 | [diff] [blame] | 25 | "//aos/events/logging:logger_main", |
| 26 | "//aos/network:web_proxy_main", |
milind-u | 086d726 | 2022-01-19 20:44:18 -0800 | [diff] [blame] | 27 | ":joystick_reader", |
| 28 | ":wpilib_interface", |
milind-u | f2f59aa | 2022-01-23 21:06:12 -0800 | [diff] [blame] | 29 | "//aos/network:message_bridge_client", |
| 30 | "//aos/network:message_bridge_server", |
| 31 | "//y2022/actors:binaries", |
milind-u | 086d726 | 2022-01-19 20:44:18 -0800 | [diff] [blame] | 32 | "//y2022/control_loops/drivetrain:drivetrain", |
Milind Upadhyay | b8abf02 | 2022-02-22 21:07:44 -0800 | [diff] [blame] | 33 | "//y2022/control_loops/drivetrain:trajectory_generator", |
milind-u | 086d726 | 2022-01-19 20:44:18 -0800 | [diff] [blame] | 34 | "//y2022/control_loops/superstructure:superstructure", |
milind-u | 086d726 | 2022-01-19 20:44:18 -0800 | [diff] [blame] | 35 | ], |
milind-u | f2f59aa | 2022-01-23 21:06:12 -0800 | [diff] [blame] | 36 | target_compatible_with = ["@platforms//os:linux"], |
milind-u | 086d726 | 2022-01-19 20:44:18 -0800 | [diff] [blame] | 37 | ) |
| 38 | |
milind-u | 6b6e100 | 2022-01-22 13:26:42 -0800 | [diff] [blame] | 39 | robot_downloader( |
| 40 | name = "pi_download", |
| 41 | binaries = [ |
Jim Ostrowski | b9135a9 | 2022-02-06 22:49:11 -0800 | [diff] [blame] | 42 | "//y2020/vision:calibration", |
milind-u | 6b6e100 | 2022-01-22 13:26:42 -0800 | [diff] [blame] | 43 | "//y2022/vision:viewer", |
Ravago Jones | e12b790 | 2022-02-04 22:50:44 -0800 | [diff] [blame] | 44 | "//y2022/localizer:imu_main", |
James Kuszmaul | 51fa1ae | 2022-02-26 00:49:57 -0800 | [diff] [blame] | 45 | "//y2022/localizer:localizer_main", |
James Kuszmaul | 3eb753d | 2022-03-12 15:21:12 -0800 | [diff] [blame] | 46 | "//y2022/vision:image_decimator", |
Tyler Chatow | b3850c1 | 2020-02-26 20:55:48 -0800 | [diff] [blame] | 47 | "//y2022/image_streamer:image_streamer", |
Austin Schuh | 63f6516 | 2022-04-01 22:31:19 -0700 | [diff] [blame] | 48 | "//aos/events/logging:log_cat", |
milind-u | 6b6e100 | 2022-01-22 13:26:42 -0800 | [diff] [blame] | 49 | ], |
| 50 | data = [ |
Austin Schuh | c5fa6d9 | 2022-02-25 14:36:28 -0800 | [diff] [blame] | 51 | ":aos_config", |
Austin Schuh | 3755916 | 2022-11-09 09:45:15 -0800 | [diff] [blame] | 52 | ":message_bridge_client.sh", |
Tyler Chatow | b3850c1 | 2020-02-26 20:55:48 -0800 | [diff] [blame] | 53 | "//y2022/image_streamer:image_streamer_start", |
milind-u | 6b6e100 | 2022-01-22 13:26:42 -0800 | [diff] [blame] | 54 | ], |
James Kuszmaul | b35e234 | 2022-03-06 15:44:00 -0800 | [diff] [blame] | 55 | dirs = [ |
| 56 | "//y2022/www:www_files", |
Tyler Chatow | b3850c1 | 2020-02-26 20:55:48 -0800 | [diff] [blame] | 57 | "//y2022/image_streamer/www:www_files", |
James Kuszmaul | b35e234 | 2022-03-06 15:44:00 -0800 | [diff] [blame] | 58 | ], |
milind-u | 6b6e100 | 2022-01-22 13:26:42 -0800 | [diff] [blame] | 59 | start_binaries = [ |
| 60 | "//aos/events/logging:logger_main", |
| 61 | "//aos/network:message_bridge_client", |
| 62 | "//aos/network:message_bridge_server", |
| 63 | "//aos/network:web_proxy_main", |
| 64 | "//y2022/vision:camera_reader", |
Ravago Jones | 32bd3cb | 2022-03-26 15:45:03 -0700 | [diff] [blame] | 65 | "//y2022/vision:ball_color_detector", |
milind-u | 6b6e100 | 2022-01-22 13:26:42 -0800 | [diff] [blame] | 66 | ], |
| 67 | target_compatible_with = ["//tools/platforms/hardware:raspberry_pi"], |
| 68 | target_type = "pi", |
| 69 | ) |
| 70 | |
milind-u | f2f59aa | 2022-01-23 21:06:12 -0800 | [diff] [blame] | 71 | aos_config( |
Austin Schuh | c5fa6d9 | 2022-02-25 14:36:28 -0800 | [diff] [blame] | 72 | name = "aos_config", |
milind-u | f2f59aa | 2022-01-23 21:06:12 -0800 | [diff] [blame] | 73 | src = "y2022.json", |
| 74 | flatbuffers = [ |
| 75 | "//aos/network:message_bridge_client_fbs", |
| 76 | "//aos/network:message_bridge_server_fbs", |
| 77 | "//aos/network:timestamp_fbs", |
| 78 | "//frc971/input:robot_state_fbs", |
| 79 | "//frc971/vision:vision_fbs", |
Jim Ostrowski | 007e2ea | 2022-01-30 13:13:26 -0800 | [diff] [blame] | 80 | "//y2022/vision:calibration_fbs", |
milind-u | f2f59aa | 2022-01-23 21:06:12 -0800 | [diff] [blame] | 81 | ], |
| 82 | target_compatible_with = ["@platforms//os:linux"], |
| 83 | visibility = ["//visibility:public"], |
| 84 | deps = [ |
James Kuszmaul | ef35d73 | 2022-02-12 16:37:32 -0800 | [diff] [blame] | 85 | ":config_imu", |
milind-u | f2f59aa | 2022-01-23 21:06:12 -0800 | [diff] [blame] | 86 | ":config_logger", |
| 87 | ":config_pi1", |
| 88 | ":config_pi2", |
| 89 | ":config_pi3", |
| 90 | ":config_pi4", |
milind-u | f2f59aa | 2022-01-23 21:06:12 -0800 | [diff] [blame] | 91 | ":config_roborio", |
| 92 | ], |
| 93 | ) |
| 94 | |
| 95 | [ |
| 96 | aos_config( |
| 97 | name = "config_" + pi, |
| 98 | src = "y2022_" + pi + ".json", |
| 99 | flatbuffers = [ |
| 100 | "//aos/network:message_bridge_client_fbs", |
| 101 | "//aos/network:message_bridge_server_fbs", |
| 102 | "//aos/network:timestamp_fbs", |
| 103 | "//aos/network:remote_message_fbs", |
| 104 | "//frc971/vision:vision_fbs", |
Milind Upadhyay | d67e9cf | 2022-03-13 13:56:57 -0700 | [diff] [blame] | 105 | "//y2022/localizer:localizer_output_fbs", |
Jim Ostrowski | 007e2ea | 2022-01-30 13:13:26 -0800 | [diff] [blame] | 106 | "//y2022/vision:calibration_fbs", |
milind-u | f2f59aa | 2022-01-23 21:06:12 -0800 | [diff] [blame] | 107 | "//y2022/vision:target_estimate_fbs", |
Ravago Jones | 32bd3cb | 2022-03-26 15:45:03 -0700 | [diff] [blame] | 108 | "//y2022/vision:ball_color_fbs", |
milind-u | f2f59aa | 2022-01-23 21:06:12 -0800 | [diff] [blame] | 109 | ], |
| 110 | target_compatible_with = ["@platforms//os:linux"], |
| 111 | visibility = ["//visibility:public"], |
| 112 | deps = [ |
Austin Schuh | c5fa6d9 | 2022-02-25 14:36:28 -0800 | [diff] [blame] | 113 | "//aos/events:aos_config", |
| 114 | "//frc971/control_loops/drivetrain:aos_config", |
| 115 | "//frc971/input:aos_config", |
milind-u | f2f59aa | 2022-01-23 21:06:12 -0800 | [diff] [blame] | 116 | ], |
| 117 | ) |
| 118 | for pi in [ |
| 119 | "pi1", |
| 120 | "pi2", |
| 121 | "pi3", |
| 122 | "pi4", |
milind-u | f2f59aa | 2022-01-23 21:06:12 -0800 | [diff] [blame] | 123 | ] |
| 124 | ] |
| 125 | |
| 126 | aos_config( |
James Kuszmaul | ef35d73 | 2022-02-12 16:37:32 -0800 | [diff] [blame] | 127 | name = "config_imu", |
| 128 | src = "y2022_imu.json", |
| 129 | flatbuffers = [ |
| 130 | "//aos/network:message_bridge_client_fbs", |
| 131 | "//aos/network:message_bridge_server_fbs", |
| 132 | "//aos/network:timestamp_fbs", |
| 133 | "//aos/network:remote_message_fbs", |
James Kuszmaul | 51fa1ae | 2022-02-26 00:49:57 -0800 | [diff] [blame] | 134 | "//y2022/localizer:localizer_status_fbs", |
| 135 | "//y2022/localizer:localizer_output_fbs", |
James Kuszmaul | 0dedb5e | 2022-03-05 16:02:20 -0800 | [diff] [blame] | 136 | "//y2022/localizer:localizer_visualization_fbs", |
James Kuszmaul | ef35d73 | 2022-02-12 16:37:32 -0800 | [diff] [blame] | 137 | ], |
| 138 | target_compatible_with = ["@platforms//os:linux"], |
| 139 | visibility = ["//visibility:public"], |
| 140 | deps = [ |
Austin Schuh | c5fa6d9 | 2022-02-25 14:36:28 -0800 | [diff] [blame] | 141 | "//aos/events:aos_config", |
| 142 | "//frc971/control_loops/drivetrain:aos_config", |
James Kuszmaul | ef35d73 | 2022-02-12 16:37:32 -0800 | [diff] [blame] | 143 | ], |
| 144 | ) |
| 145 | |
| 146 | aos_config( |
milind-u | f2f59aa | 2022-01-23 21:06:12 -0800 | [diff] [blame] | 147 | name = "config_logger", |
| 148 | src = "y2022_logger.json", |
| 149 | flatbuffers = [ |
| 150 | "//aos/network:message_bridge_client_fbs", |
| 151 | "//aos/network:message_bridge_server_fbs", |
| 152 | "//aos/network:timestamp_fbs", |
| 153 | "//aos/network:remote_message_fbs", |
| 154 | "//frc971/vision:vision_fbs", |
Jim Ostrowski | 007e2ea | 2022-01-30 13:13:26 -0800 | [diff] [blame] | 155 | "//y2022/vision:calibration_fbs", |
Ravago Jones | 32bd3cb | 2022-03-26 15:45:03 -0700 | [diff] [blame] | 156 | "//y2022/vision:ball_color_fbs", |
milind-u | f2f59aa | 2022-01-23 21:06:12 -0800 | [diff] [blame] | 157 | ], |
| 158 | target_compatible_with = ["@platforms//os:linux"], |
| 159 | visibility = ["//visibility:public"], |
| 160 | deps = [ |
Austin Schuh | c5fa6d9 | 2022-02-25 14:36:28 -0800 | [diff] [blame] | 161 | "//aos/events:aos_config", |
| 162 | "//frc971/control_loops/drivetrain:aos_config", |
| 163 | "//frc971/input:aos_config", |
milind-u | f2f59aa | 2022-01-23 21:06:12 -0800 | [diff] [blame] | 164 | ], |
| 165 | ) |
| 166 | |
| 167 | aos_config( |
| 168 | name = "config_roborio", |
| 169 | src = "y2022_roborio.json", |
| 170 | flatbuffers = [ |
Henry Speiser | 0b9b005 | 2022-03-02 23:07:40 -0800 | [diff] [blame] | 171 | ":setpoint_fbs", |
milind-u | f2f59aa | 2022-01-23 21:06:12 -0800 | [diff] [blame] | 172 | "//aos/network:remote_message_fbs", |
| 173 | "//aos/network:message_bridge_client_fbs", |
| 174 | "//aos/network:message_bridge_server_fbs", |
| 175 | "//aos/network:timestamp_fbs", |
Ravago Jones | 32bd3cb | 2022-03-26 15:45:03 -0700 | [diff] [blame] | 176 | "//y2022/vision:ball_color_fbs", |
milind-u | f2f59aa | 2022-01-23 21:06:12 -0800 | [diff] [blame] | 177 | "//y2019/control_loops/drivetrain:target_selector_fbs", |
| 178 | "//y2022/control_loops/superstructure:superstructure_goal_fbs", |
| 179 | "//y2022/control_loops/superstructure:superstructure_output_fbs", |
| 180 | "//y2022/control_loops/superstructure:superstructure_position_fbs", |
Milind Upadhyay | 482b0ba | 2022-02-26 21:51:59 -0800 | [diff] [blame] | 181 | "//y2022/control_loops/superstructure:superstructure_can_position_fbs", |
milind-u | f2f59aa | 2022-01-23 21:06:12 -0800 | [diff] [blame] | 182 | "//y2022/control_loops/superstructure:superstructure_status_fbs", |
| 183 | ], |
| 184 | target_compatible_with = ["@platforms//os:linux"], |
| 185 | deps = [ |
Austin Schuh | c5fa6d9 | 2022-02-25 14:36:28 -0800 | [diff] [blame] | 186 | "//aos/events:aos_config", |
| 187 | "//frc971/autonomous:aos_config", |
| 188 | "//frc971/control_loops/drivetrain:aos_config", |
| 189 | "//frc971/input:aos_config", |
| 190 | "//frc971/wpilib:aos_config", |
milind-u | f2f59aa | 2022-01-23 21:06:12 -0800 | [diff] [blame] | 191 | ], |
| 192 | ) |
| 193 | |
| 194 | [ |
| 195 | jinja2_template( |
| 196 | name = "y2022_pi" + str(num) + ".json", |
| 197 | src = "y2022_pi_template.json", |
| 198 | parameters = {"NUM": str(num)}, |
| 199 | target_compatible_with = ["@platforms//os:linux"], |
| 200 | ) |
| 201 | for num in range(1, 6) |
| 202 | ] |
| 203 | |
milind-u | 086d726 | 2022-01-19 20:44:18 -0800 | [diff] [blame] | 204 | cc_library( |
| 205 | name = "constants", |
| 206 | srcs = [ |
| 207 | "constants.cc", |
| 208 | ], |
| 209 | hdrs = [ |
| 210 | "constants.h", |
| 211 | ], |
| 212 | visibility = ["//visibility:public"], |
| 213 | deps = [ |
| 214 | "//aos/mutex", |
| 215 | "//aos/network:team_number", |
| 216 | "//frc971:constants", |
| 217 | "//frc971/control_loops:pose", |
| 218 | "//frc971/control_loops:static_zeroing_single_dof_profiled_subsystem", |
Ravago Jones | 3283ce0 | 2022-03-09 19:31:29 -0800 | [diff] [blame] | 219 | "//frc971/shooter_interpolation:interpolation", |
milind-u | 086d726 | 2022-01-19 20:44:18 -0800 | [diff] [blame] | 220 | "//y2022/control_loops/drivetrain:polydrivetrain_plants", |
Austin Schuh | 39f26f6 | 2022-02-24 21:34:46 -0800 | [diff] [blame] | 221 | "//y2022/control_loops/superstructure/catapult:catapult_plants", |
Siddhant Kanwar | 0e37f59 | 2022-02-21 19:26:50 -0800 | [diff] [blame] | 222 | "//y2022/control_loops/superstructure/climber:climber_plants", |
Yash Chainani | 997a749 | 2022-01-29 15:48:56 -0800 | [diff] [blame] | 223 | "//y2022/control_loops/superstructure/intake:intake_plants", |
Henry Speiser | 55aa3ba | 2022-02-21 23:21:12 -0800 | [diff] [blame] | 224 | "//y2022/control_loops/superstructure/turret:turret_plants", |
milind-u | 086d726 | 2022-01-19 20:44:18 -0800 | [diff] [blame] | 225 | "@com_github_google_glog//:glog", |
| 226 | "@com_google_absl//absl/base", |
| 227 | ], |
| 228 | ) |
| 229 | |
| 230 | cc_binary( |
| 231 | name = "wpilib_interface", |
| 232 | srcs = [ |
| 233 | "wpilib_interface.cc", |
| 234 | ], |
| 235 | target_compatible_with = ["//tools/platforms/hardware:roborio"], |
| 236 | deps = [ |
| 237 | ":constants", |
| 238 | "//aos:init", |
| 239 | "//aos:math", |
| 240 | "//aos/events:shm_event_loop", |
| 241 | "//aos/logging", |
| 242 | "//aos/stl_mutex", |
| 243 | "//aos/time", |
| 244 | "//aos/util:log_interval", |
| 245 | "//aos/util:phased_loop", |
| 246 | "//aos/util:wrapping_counter", |
| 247 | "//frc971/autonomous:auto_mode_fbs", |
| 248 | "//frc971/control_loops:control_loop", |
| 249 | "//frc971/control_loops:control_loops_fbs", |
| 250 | "//frc971/control_loops/drivetrain:drivetrain_position_fbs", |
| 251 | "//frc971/input:robot_state_fbs", |
Ravago Jones | 0e86e24 | 2022-02-12 18:38:14 -0800 | [diff] [blame] | 252 | "//frc971/queues:gyro_fbs", |
milind-u | 086d726 | 2022-01-19 20:44:18 -0800 | [diff] [blame] | 253 | "//frc971/wpilib:ADIS16448", |
| 254 | "//frc971/wpilib:buffered_pcm", |
| 255 | "//frc971/wpilib:drivetrain_writer", |
| 256 | "//frc971/wpilib:encoder_and_potentiometer", |
| 257 | "//frc971/wpilib:interrupt_edge_counting", |
| 258 | "//frc971/wpilib:joystick_sender", |
| 259 | "//frc971/wpilib:logging_fbs", |
| 260 | "//frc971/wpilib:loop_output_handler", |
| 261 | "//frc971/wpilib:pdp_fetcher", |
| 262 | "//frc971/wpilib:sensor_reader", |
| 263 | "//frc971/wpilib:wpilib_interface", |
| 264 | "//frc971/wpilib:wpilib_robot_base", |
| 265 | "//third_party:phoenix", |
James Kuszmaul | 9776b39 | 2023-01-14 14:08:08 -0800 | [diff] [blame] | 266 | "//third_party:phoenixpro", |
milind-u | 086d726 | 2022-01-19 20:44:18 -0800 | [diff] [blame] | 267 | "//third_party:wpilib", |
Henry Speiser | 77747b7 | 2022-03-06 17:18:29 -0800 | [diff] [blame] | 268 | "//y2022/control_loops/superstructure:led_indicator_lib", |
Milind Upadhyay | 482b0ba | 2022-02-26 21:51:59 -0800 | [diff] [blame] | 269 | "//y2022/control_loops/superstructure:superstructure_can_position_fbs", |
milind-u | 086d726 | 2022-01-19 20:44:18 -0800 | [diff] [blame] | 270 | "//y2022/control_loops/superstructure:superstructure_output_fbs", |
| 271 | "//y2022/control_loops/superstructure:superstructure_position_fbs", |
| 272 | ], |
| 273 | ) |
| 274 | |
| 275 | cc_binary( |
| 276 | name = "joystick_reader", |
| 277 | srcs = [ |
| 278 | ":joystick_reader.cc", |
| 279 | ], |
| 280 | deps = [ |
Henry Speiser | 0b9b005 | 2022-03-02 23:07:40 -0800 | [diff] [blame] | 281 | ":constants", |
| 282 | ":setpoint_fbs", |
milind-u | 086d726 | 2022-01-19 20:44:18 -0800 | [diff] [blame] | 283 | "//aos:init", |
| 284 | "//aos/actions:action_lib", |
| 285 | "//aos/logging", |
| 286 | "//frc971/autonomous:auto_fbs", |
| 287 | "//frc971/autonomous:base_autonomous_actor", |
| 288 | "//frc971/control_loops:profiled_subsystem_fbs", |
| 289 | "//frc971/input:action_joystick_input", |
| 290 | "//frc971/input:drivetrain_input", |
| 291 | "//frc971/input:joystick_input", |
| 292 | "//y2022/control_loops/drivetrain:drivetrain_base", |
| 293 | "//y2022/control_loops/superstructure:superstructure_goal_fbs", |
| 294 | "//y2022/control_loops/superstructure:superstructure_status_fbs", |
| 295 | ], |
| 296 | ) |
Milo Lin | 5d49af0 | 2022-02-05 12:50:32 -0800 | [diff] [blame] | 297 | |
Henry Speiser | 0b9b005 | 2022-03-02 23:07:40 -0800 | [diff] [blame] | 298 | flatbuffer_cc_library( |
| 299 | name = "setpoint_fbs", |
| 300 | srcs = [ |
| 301 | "setpoint.fbs", |
| 302 | ], |
| 303 | gen_reflections = 1, |
| 304 | target_compatible_with = ["@platforms//os:linux"], |
| 305 | ) |
| 306 | |
| 307 | cc_binary( |
| 308 | name = "setpoint_setter", |
| 309 | srcs = ["setpoint_setter.cc"], |
| 310 | target_compatible_with = ["@platforms//os:linux"], |
| 311 | deps = [ |
| 312 | ":constants", |
| 313 | ":setpoint_fbs", |
| 314 | "//aos:init", |
| 315 | "//aos/events:shm_event_loop", |
| 316 | ], |
| 317 | ) |
| 318 | |
Milo Lin | 5d49af0 | 2022-02-05 12:50:32 -0800 | [diff] [blame] | 319 | py_library( |
| 320 | name = "python_init", |
| 321 | srcs = ["__init__.py"], |
| 322 | target_compatible_with = ["@platforms//os:linux"], |
| 323 | visibility = ["//visibility:public"], |
| 324 | ) |
James Kuszmaul | f3ef9e1 | 2022-03-05 17:13:00 -0800 | [diff] [blame] | 325 | |
| 326 | sh_binary( |
| 327 | name = "log_web_proxy", |
| 328 | srcs = ["log_web_proxy.sh"], |
| 329 | data = [ |
| 330 | ":aos_config", |
| 331 | "//aos/network:log_web_proxy_main", |
| 332 | "//y2022/www:field_main_bundle.min.js", |
| 333 | "//y2022/www:files", |
| 334 | ], |
| 335 | target_compatible_with = ["@platforms//os:linux"], |
| 336 | ) |