Austin Schuh | 1bf8a21 | 2019-05-26 22:13:14 -0700 | [diff] [blame] | 1 | package(default_visibility = ["//visibility:public"]) |
Brian Silverman | 100534c | 2015-09-07 15:51:23 -0400 | [diff] [blame] | 2 | |
Alex Perry | cb7da4b | 2019-08-28 19:35:56 -0700 | [diff] [blame^] | 3 | load("@com_github_google_flatbuffers//:build_defs.bzl", "flatbuffer_cc_library") |
Brian Silverman | 100534c | 2015-09-07 15:51:23 -0400 | [diff] [blame] | 4 | |
| 5 | cc_library( |
Austin Schuh | 1bf8a21 | 2019-05-26 22:13:14 -0700 | [diff] [blame] | 6 | name = "action_lib", |
| 7 | srcs = [ |
| 8 | "actions.cc", |
| 9 | "actor.cc", |
| 10 | ], |
| 11 | hdrs = [ |
| 12 | "actions.h", |
| 13 | "actor.h", |
| 14 | ], |
| 15 | deps = [ |
Alex Perry | cb7da4b | 2019-08-28 19:35:56 -0700 | [diff] [blame^] | 16 | ":actions_fbs", |
Austin Schuh | 1bf8a21 | 2019-05-26 22:13:14 -0700 | [diff] [blame] | 17 | "//aos/controls:control_loop", |
| 18 | "//aos/logging", |
Austin Schuh | 1bf8a21 | 2019-05-26 22:13:14 -0700 | [diff] [blame] | 19 | "//aos/time", |
| 20 | "//aos/util:phased_loop", |
| 21 | ], |
Brian Silverman | 100534c | 2015-09-07 15:51:23 -0400 | [diff] [blame] | 22 | ) |
| 23 | |
Alex Perry | cb7da4b | 2019-08-28 19:35:56 -0700 | [diff] [blame^] | 24 | flatbuffer_cc_library( |
| 25 | name = "actions_fbs", |
| 26 | srcs = ["actions.fbs"], |
Brian Silverman | 100534c | 2015-09-07 15:51:23 -0400 | [diff] [blame] | 27 | ) |
| 28 | |
Alex Perry | cb7da4b | 2019-08-28 19:35:56 -0700 | [diff] [blame^] | 29 | flatbuffer_cc_library( |
| 30 | name = "test_action_fbs", |
| 31 | srcs = ["test_action.fbs"], |
Brian Silverman | 100534c | 2015-09-07 15:51:23 -0400 | [diff] [blame] | 32 | ) |
| 33 | |
| 34 | cc_test( |
Austin Schuh | 1bf8a21 | 2019-05-26 22:13:14 -0700 | [diff] [blame] | 35 | name = "action_test", |
| 36 | srcs = [ |
| 37 | "action_test.cc", |
| 38 | ], |
Alex Perry | cb7da4b | 2019-08-28 19:35:56 -0700 | [diff] [blame^] | 39 | data = ["action_test_config.json"], |
Austin Schuh | 1bf8a21 | 2019-05-26 22:13:14 -0700 | [diff] [blame] | 40 | deps = [ |
| 41 | ":action_lib", |
Alex Perry | cb7da4b | 2019-08-28 19:35:56 -0700 | [diff] [blame^] | 42 | ":actions_fbs", |
| 43 | ":test_action_fbs", |
Austin Schuh | 1bf8a21 | 2019-05-26 22:13:14 -0700 | [diff] [blame] | 44 | "//aos:event", |
Austin Schuh | 1bf8a21 | 2019-05-26 22:13:14 -0700 | [diff] [blame] | 45 | "//aos/events:simulated_event_loop", |
| 46 | "//aos/logging", |
Austin Schuh | 1bf8a21 | 2019-05-26 22:13:14 -0700 | [diff] [blame] | 47 | "//aos/testing:googletest", |
| 48 | "//aos/testing:test_shm", |
| 49 | "//aos/time", |
| 50 | ], |
Brian Silverman | 100534c | 2015-09-07 15:51:23 -0400 | [diff] [blame] | 51 | ) |