blob: 21e9677535dabc72b365948d02eca52deec87069 [file] [log] [blame]
Parker Schuhe4a70d62017-12-27 20:10:20 -08001cc_library(
Austin Schuha1654ed2019-01-27 17:24:54 -08002 name = "raw-event-loop",
3 hdrs = ["raw-event-loop.h"],
4 deps = [
5 "//aos:queues",
6 "//aos/time",
7 ],
Parker Schuhe4a70d62017-12-27 20:10:20 -08008)
9
10cc_library(
Austin Schuha1654ed2019-01-27 17:24:54 -080011 name = "event-loop",
12 srcs = ["event-loop-tmpl.h"],
13 hdrs = [
14 "event-loop.h",
15 "raw-event-loop.h",
16 ],
17 visibility = ["//visibility:public"],
18 deps = [
19 ":raw-event-loop",
20 "//aos:queues",
21 "//aos/time",
22 ],
Parker Schuhe4a70d62017-12-27 20:10:20 -080023)
24
25cc_library(
Austin Schuha1654ed2019-01-27 17:24:54 -080026 name = "shm-event-loop",
27 srcs = ["shm-event-loop.cc"],
28 hdrs = ["shm-event-loop.h"],
29 visibility = ["//visibility:public"],
30 deps = [
31 ":event-loop",
Austin Schuh3115a202019-05-27 21:02:14 -070032 "//aos:init",
Austin Schuha1654ed2019-01-27 17:24:54 -080033 "//aos:queues",
34 "//aos/logging",
35 ],
Parker Schuhe4a70d62017-12-27 20:10:20 -080036)
37
38cc_test(
Austin Schuha1654ed2019-01-27 17:24:54 -080039 name = "shm-event-loop_test",
40 srcs = ["shm-event-loop_test.cc"],
41 deps = [
42 ":event-loop_param_test",
43 ":shm-event-loop",
44 "//aos/testing:test_shm",
45 ],
Parker Schuhe4a70d62017-12-27 20:10:20 -080046)
47
48cc_library(
Austin Schuha1654ed2019-01-27 17:24:54 -080049 name = "event-loop_param_test",
50 testonly = True,
51 srcs = ["event-loop_param_test.cc"],
52 hdrs = ["event-loop_param_test.h"],
53 deps = [
54 "event-loop",
55 "//aos/testing:googletest",
56 ],
Parker Schuhe4a70d62017-12-27 20:10:20 -080057)
Neil Balchc8f41ed2018-01-20 22:06:53 -080058
59cc_test(
Austin Schuh7267c532019-05-19 19:55:53 -070060 name = "simulated_event_loop_test",
Austin Schuha1654ed2019-01-27 17:24:54 -080061 srcs = ["simulated-event-loop_test.cc"],
62 deps = [
63 ":event-loop_param_test",
Austin Schuh7267c532019-05-19 19:55:53 -070064 ":simulated_event_loop",
Austin Schuha1654ed2019-01-27 17:24:54 -080065 "//aos/testing:googletest",
66 ],
Neil Balchc8f41ed2018-01-20 22:06:53 -080067)
68
69cc_library(
Austin Schuh7267c532019-05-19 19:55:53 -070070 name = "simulated_event_loop",
Austin Schuh82c0c822019-05-27 19:55:20 -070071 testonly = True,
Austin Schuha1654ed2019-01-27 17:24:54 -080072 srcs = ["simulated-event-loop.cc"],
73 hdrs = ["simulated-event-loop.h"],
Austin Schuh7267c532019-05-19 19:55:53 -070074 visibility = ["//visibility:public"],
Austin Schuha1654ed2019-01-27 17:24:54 -080075 deps = [
76 ":event-loop",
77 "//aos:queues",
James Kuszmaulc79768b2019-02-18 15:08:44 -080078 "//aos/logging",
Austin Schuh82c0c822019-05-27 19:55:20 -070079 "//aos/testing:test_logging",
Austin Schuha1654ed2019-01-27 17:24:54 -080080 ],
Neil Balchc8f41ed2018-01-20 22:06:53 -080081)