Maxwell Henderson | ad31234 | 2023-01-10 12:07:47 -0800 | [diff] [blame] | 1 | package(default_visibility = ["//y2023:__subpackages__"]) |
| 2 | |
| 3 | py_binary( |
| 4 | name = "drivetrain", |
| 5 | srcs = [ |
| 6 | "drivetrain.py", |
| 7 | ], |
| 8 | legacy_create_init = False, |
| 9 | target_compatible_with = ["@platforms//cpu:x86_64"], |
| 10 | deps = [ |
| 11 | ":python_init", |
| 12 | "//frc971/control_loops/python:drivetrain", |
| 13 | "@pip//glog", |
| 14 | "@pip//python_gflags", |
| 15 | ], |
| 16 | ) |
| 17 | |
| 18 | py_binary( |
| 19 | name = "polydrivetrain", |
| 20 | srcs = [ |
| 21 | "drivetrain.py", |
| 22 | "polydrivetrain.py", |
| 23 | ], |
| 24 | legacy_create_init = False, |
| 25 | target_compatible_with = ["@platforms//cpu:x86_64"], |
| 26 | deps = [ |
| 27 | ":python_init", |
| 28 | "//frc971/control_loops/python:polydrivetrain", |
| 29 | "@pip//glog", |
| 30 | "@pip//python_gflags", |
| 31 | ], |
| 32 | ) |
| 33 | |
Maxwell Henderson | 7af0098 | 2023-02-04 12:42:07 -0800 | [diff] [blame] | 34 | py_binary( |
| 35 | name = "graph_edit", |
| 36 | srcs = [ |
| 37 | "graph_edit.py", |
Maxwell Henderson | f5123fe | 2023-02-04 13:44:41 -0800 | [diff] [blame] | 38 | "graph_paths.py", |
| 39 | "graph_tools.py", |
Maxwell Henderson | 7af0098 | 2023-02-04 12:42:07 -0800 | [diff] [blame] | 40 | ], |
| 41 | legacy_create_init = False, |
| 42 | target_compatible_with = ["@platforms//cpu:x86_64"], |
| 43 | deps = [ |
| 44 | ":python_init", |
| 45 | "//frc971/control_loops/python:basic_window", |
| 46 | "//frc971/control_loops/python:color", |
| 47 | "@pip//numpy", |
| 48 | "@pip//pygobject", |
| 49 | "@pip//shapely", |
| 50 | ], |
| 51 | ) |
| 52 | |
milind-u | a7af516 | 2023-02-20 15:13:48 -0800 | [diff] [blame^] | 53 | py_binary( |
| 54 | name = "graph_codegen", |
| 55 | srcs = [ |
| 56 | "graph_codegen.py", |
| 57 | "graph_paths.py", |
| 58 | ], |
| 59 | legacy_create_init = False, |
| 60 | target_compatible_with = ["@platforms//os:linux"], |
| 61 | deps = [ |
| 62 | ":python_init", |
| 63 | "//frc971/control_loops/python:basic_window", |
| 64 | "//frc971/control_loops/python:color", |
| 65 | "@pip//numpy", |
| 66 | ], |
| 67 | ) |
| 68 | |
Maxwell Henderson | ad31234 | 2023-01-10 12:07:47 -0800 | [diff] [blame] | 69 | py_library( |
| 70 | name = "polydrivetrain_lib", |
| 71 | srcs = [ |
| 72 | "drivetrain.py", |
| 73 | "polydrivetrain.py", |
| 74 | ], |
| 75 | target_compatible_with = ["@platforms//cpu:x86_64"], |
| 76 | visibility = ["//visibility:public"], |
| 77 | deps = [ |
| 78 | "//frc971/control_loops/python:controls", |
| 79 | "//frc971/control_loops/python:drivetrain", |
| 80 | "//frc971/control_loops/python:polydrivetrain", |
| 81 | "@pip//glog", |
| 82 | "@pip//python_gflags", |
| 83 | ], |
| 84 | ) |
| 85 | |
| 86 | py_library( |
| 87 | name = "python_init", |
| 88 | srcs = ["__init__.py"], |
| 89 | target_compatible_with = ["@platforms//os:linux"], |
| 90 | visibility = ["//visibility:public"], |
| 91 | deps = ["//y2023/control_loops:python_init"], |
| 92 | ) |