blob: b3372b78ad82a1032e997d94a4c855068707c26e [file] [log] [blame]
Greg Hartmane08d8b22017-08-08 16:44:29 -07001cc_library(
2 name = "vsoc_lib",
3 srcs = [
4 "common/vsoc/lib/compat.cpp",
5 "common/vsoc/lib/e2e_test_region_layout.cpp",
6 "common/vsoc/lib/lock_common.cpp",
7 "common/vsoc/lib/region_view.cpp",
8 "host/vsoc/lib/host_lock.cpp",
9 "host/vsoc/lib/region_control.cpp",
10 "host/vsoc/lib/region_view.cpp",
11 ],
12 hdrs = [
13 "common/vsoc/lib/circqueue_impl.h",
14 "common/vsoc/lib/compat.h",
15 "common/vsoc/lib/e2e_test_region_view.h",
16 "common/vsoc/lib/graphics_common.h",
Jorge E. Moreira7a8dadd2017-08-22 17:01:39 -070017 "common/vsoc/lib/lock_guard.h",
Greg Hartmane08d8b22017-08-08 16:44:29 -070018 "common/vsoc/lib/region_control.h",
19 "common/vsoc/lib/region_view.h",
20 "common/vsoc/lib/single_sided_signal.h",
21 "common/vsoc/lib/typed_region_view.h",
22 ],
23 copts = ["-Wno-unused-private-field"],
24 visibility = ["//visibility:public"],
25 deps = [
26 "//common/libs/fs",
27 "//common/vsoc/shm",
28 "@cuttlefish_kernel//:uapi",
29 ],
30)
31
Jorge E. Moreirafc7847d2017-09-13 16:24:37 -070032cc_library(
33 name = "libvsoc_framebuffer",
34 srcs = [
35 "common/vsoc/framebuffer/fb_bcast_region.cpp",
36 "common/vsoc/lib/fb_bcast_layout.cpp",
37 ],
38 hdrs = [
39 "common/vsoc/framebuffer/fb_bcast_region.h",
40 ],
41 copts = ["-Wno-unused-private-field"],
42 visibility = ["//visibility:public"],
43 deps = [
44 "//:vsoc_lib",
45 ],
46)
47
48cc_binary(
49 name = "test_framebuffer",
50 srcs = ["common/vsoc/framebuffer/test_fb.cpp"],
51 deps = ["//:libvsoc_framebuffer"],
52)
53
Jorge E. Moreira0b249732017-09-22 10:28:02 -070054cc_library(
55 name = "libvsoc_gralloc",
56 srcs = [
57 "common/vsoc/lib/gralloc_layout.cpp",
58 "host/vsoc/gralloc/gralloc_buffer_region.cpp",
59 ],
60 hdrs = [
61 "host/vsoc/gralloc/gralloc_buffer_region.h",
62 ],
63 copts = ["-Wno-unused-private-field"],
64 visibility = ["//visibility:public"],
65 deps = [
66 "//:vsoc_lib",
67 ],
68)
69
Greg Hartmane08d8b22017-08-08 16:44:29 -070070cc_test(
71 name = "circqueue_test",
72 srcs = [
73 "common/vsoc/lib/circqueue_test.cpp",
74 ],
75 visibility = ["//visibility:public"],
76 deps = [
77 ":vsoc_lib",
78 "//common/vsoc/shm",
79 "@gtest_repo//:gtest_main",
80 ],
81)
82
83cc_test(
84 name = "lock_test",
85 srcs = [
86 "common/vsoc/lib/lock_test.cpp",
87 ],
88 visibility = ["//visibility:public"],
89 deps = [
90 ":vsoc_lib",
91 "//common/vsoc/shm",
92 "@gtest_repo//:gtest_main",
93 ],
94)
95
96cc_test(
97 name = "vsoc_graphics_test",
98 srcs = [
99 "common/vsoc/lib/graphics_test.cpp",
100 ],
101 visibility = ["//visibility:public"],
102 deps = [
103 "//common/vsoc/shm",
104 "@gtest_repo//:gtest_main",
105 ],
106)
107
108cc_binary(
109 name = "host_region_e2e_test",
110 srcs = [
111 "host/vsoc/lib/host_region_e2e_test.cpp",
112 ],
113 deps = [
114 ":vsoc_lib",
115 "//common/vsoc/shm",
116 "@glog_repo//:glog",
117 "@gtest_repo//:gtest",
118 ],
119)
Greg Hartmanca7fb192017-09-28 16:14:12 -0700120
121cc_binary(
122 name = "vnc_server",
123 srcs = [
124 "host/frontend/vnc_server/VirtualInputDevice.cpp",
125 "host/frontend/vnc_server/VirtualInputDevice.h",
126 "host/frontend/vnc_server/blackboard.cpp",
127 "host/frontend/vnc_server/blackboard.h",
128 "host/frontend/vnc_server/frame_buffer_watcher.cpp",
129 "host/frontend/vnc_server/frame_buffer_watcher.h",
130 "host/frontend/vnc_server/jpeg_compressor.cpp",
131 "host/frontend/vnc_server/jpeg_compressor.h",
132 "host/frontend/vnc_server/keysyms.h",
133 "host/frontend/vnc_server/main.cpp",
134 "host/frontend/vnc_server/mocks.h",
135 "host/frontend/vnc_server/simulated_hw_composer.cpp",
136 "host/frontend/vnc_server/simulated_hw_composer.h",
137 "host/frontend/vnc_server/tcp_socket.cpp",
138 "host/frontend/vnc_server/tcp_socket.h",
139 "host/frontend/vnc_server/virtual_inputs.cpp",
140 "host/frontend/vnc_server/virtual_inputs.h",
141 "host/frontend/vnc_server/vnc_client_connection.cpp",
142 "host/frontend/vnc_server/vnc_client_connection.h",
143 "host/frontend/vnc_server/vnc_server.cpp",
144 "host/frontend/vnc_server/vnc_server.h",
145 "host/frontend/vnc_server/vnc_utils.h",
146 ],
147 copts = [
148 "-Wall",
149 "-Werror",
150 "-Wno-error-unused",
151 "-Wno-error=unused-parameter",
152 "-Wno-attributes",
153 ],
154 linkopts = ["-ljpeg"],
155 deps = [
156 ":libvsoc_framebuffer",
157 ":libvsoc_gralloc",
158 ":vsoc_lib",
159 "//common/libs/fs",
160 "//common/libs/thread_safe_queue",
161 "//common/libs/threads",
162 "//common/vsoc/shm",
163 "@cuttlefish_kernel//:uapi",
164 "@glog_repo//:glog",
165 ],
166)