blob: 9cf4905b6860c9ecfe3f5f110506a4581a0759b9 [file] [log] [blame]
Stephen Kiazyke77dce22017-03-14 15:38:12 -07001
2
3// Touchpad implementation.
4
5src = [
6 "EvdevInjector.cpp",
7 "VirtualTouchpadEvdev.cpp",
8]
9
10shared_libs = [
11 "libbase",
12 "liblog",
13 "libutils",
14]
15
John Bates14bc55a2017-05-26 09:00:08 -070016header_libraries = [
Orion Hodsona58ef352020-04-22 11:10:13 +010017 "jni_headers",
Logan Chien3e60b392018-02-27 16:00:11 +080018 "libdvr_headers",
John Bates14bc55a2017-05-26 09:00:08 -070019]
20
Stephen Kiazyke77dce22017-03-14 15:38:12 -070021cc_library {
22 srcs: src,
23 export_include_dirs: ["include"],
24 shared_libs: shared_libs,
John Bates14bc55a2017-05-26 09:00:08 -070025 header_libs: header_libraries,
Chih-Hung Hsiehe27d5eb2017-10-31 15:39:40 -070026 cflags: [
27 "-DLOG_TAG=\"VrVirtualTouchpad\"",
28 "-Wall",
29 "-Werror",
30 ],
Stephen Kiazyke77dce22017-03-14 15:38:12 -070031 name: "libvirtualtouchpad",
Stephen Kiazyke77dce22017-03-14 15:38:12 -070032}
33
34// Touchpad unit tests.
35
36test_static_libs = [
37 "libcutils",
38 "libvirtualtouchpad",
Stephen Kiazyke77dce22017-03-14 15:38:12 -070039 "libbase",
40 "liblog",
41 "libutils",
42]
43
44test_src_files = ["tests/VirtualTouchpad_test.cpp"]
45
46cc_test {
47 srcs: test_src_files,
48 static_libs: test_static_libs,
John Bates14bc55a2017-05-26 09:00:08 -070049 header_libs: header_libraries,
Logan Chien3e60b392018-02-27 16:00:11 +080050 cflags: [
Chih-Hung Hsiehe27d5eb2017-10-31 15:39:40 -070051 "-Wall",
52 "-Werror",
53 ],
Logan Chien3e60b392018-02-27 16:00:11 +080054 host_ldlibs: [
Stephen Kiazyke77dce22017-03-14 15:38:12 -070055 "-llog",
56 ],
57 name: "VirtualTouchpad_test",
58 stl: "libc++_static",
Stephen Kiazyke77dce22017-03-14 15:38:12 -070059}
60
61// Service.
62
63service_src = [
64 "main.cpp",
65 "VirtualTouchpadService.cpp",
Dan Willemsen9ba6e652018-09-14 21:27:01 -070066 ":virtualtouchpad_aidl",
Stephen Kiazyke77dce22017-03-14 15:38:12 -070067]
68
69service_static_libs = [
70 "libcutils",
71 "libvirtualtouchpad",
72]
73
74service_shared_libs = [
75 "libbase",
76 "libbinder",
77 "liblog",
78 "libutils",
79]
80
81cc_binary {
82 srcs: service_src,
83 static_libs: service_static_libs,
84 shared_libs: service_shared_libs,
John Bates14bc55a2017-05-26 09:00:08 -070085 header_libs: header_libraries,
Stephen Kiazyke77dce22017-03-14 15:38:12 -070086 cflags: [
87 "-DLOG_TAG=\"VrVirtualTouchpad\"",
Chih-Hung Hsiehe27d5eb2017-10-31 15:39:40 -070088 "-Wall",
89 "-Werror",
Stephen Kiazyke77dce22017-03-14 15:38:12 -070090 ],
91 host_ldlibs: ["-llog"],
92 name: "virtual_touchpad",
Stephen Kiazyke77dce22017-03-14 15:38:12 -070093 init_rc: ["virtual_touchpad.rc"],
94 compile_multilib: "64",
95 stl: "libc++_static",
96}
97
98// Touchpad client library.
99
100client_src = [
101 "VirtualTouchpadClient.cpp",
Kevin Schoedelde1cdae2017-03-17 11:07:06 -0400102 "DvrVirtualTouchpadClient.cpp",
Dan Willemsen9ba6e652018-09-14 21:27:01 -0700103 ":virtualtouchpad_aidl",
Stephen Kiazyke77dce22017-03-14 15:38:12 -0700104]
105
106client_shared_libs = [
107 "libbase",
108 "libbinder",
109 "liblog",
110 "libutils",
111]
112
113cc_library {
114 srcs: client_src,
115 shared_libs: client_shared_libs,
John Bates14bc55a2017-05-26 09:00:08 -0700116 header_libs: header_libraries,
Chih-Hung Hsiehe27d5eb2017-10-31 15:39:40 -0700117 cflags: [
118 "-DLOG_TAG=\"VirtualTouchpadClient\"",
119 "-Wall",
120 "-Werror",
121 ],
Stephen Kiazyke77dce22017-03-14 15:38:12 -0700122 host_ldlibs: ["-llog"],
123 name: "libvirtualtouchpadclient",
Stephen Kiazyke77dce22017-03-14 15:38:12 -0700124 export_include_dirs: ["include"],
125}
Dan Willemsen9ba6e652018-09-14 21:27:01 -0700126
127filegroup {
128 name: "virtualtouchpad_aidl",
129 srcs: ["aidl/android/dvr/IVirtualTouchpadService.aidl"],
130 path: "aidl",
131}