blob: dc5ac9c9605ca547d8046125ed384e39d7b1cf28 [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",
32 "//aos:queues",
33 "//aos/logging",
34 ],
Parker Schuhe4a70d62017-12-27 20:10:20 -080035)
36
37cc_test(
Austin Schuha1654ed2019-01-27 17:24:54 -080038 name = "shm-event-loop_test",
39 srcs = ["shm-event-loop_test.cc"],
40 deps = [
41 ":event-loop_param_test",
42 ":shm-event-loop",
43 "//aos/testing:test_shm",
44 ],
Parker Schuhe4a70d62017-12-27 20:10:20 -080045)
46
47cc_library(
Austin Schuha1654ed2019-01-27 17:24:54 -080048 name = "event-loop_param_test",
49 testonly = True,
50 srcs = ["event-loop_param_test.cc"],
51 hdrs = ["event-loop_param_test.h"],
52 deps = [
53 "event-loop",
54 "//aos/testing:googletest",
55 ],
Parker Schuhe4a70d62017-12-27 20:10:20 -080056)
Neil Balchc8f41ed2018-01-20 22:06:53 -080057
58cc_test(
Austin Schuh7267c532019-05-19 19:55:53 -070059 name = "simulated_event_loop_test",
Austin Schuha1654ed2019-01-27 17:24:54 -080060 testonly = True,
61 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 Schuha1654ed2019-01-27 17:24:54 -080071 srcs = ["simulated-event-loop.cc"],
72 hdrs = ["simulated-event-loop.h"],
Austin Schuh7267c532019-05-19 19:55:53 -070073 visibility = ["//visibility:public"],
Austin Schuha1654ed2019-01-27 17:24:54 -080074 deps = [
75 ":event-loop",
76 "//aos:queues",
James Kuszmaulc79768b2019-02-18 15:08:44 -080077 "//aos/logging",
Austin Schuha1654ed2019-01-27 17:24:54 -080078 ],
Neil Balchc8f41ed2018-01-20 22:06:53 -080079)