blob: 7196b2bb87eb0015ce9e0a39ad633562b8165390 [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 = [
17 "libdvr_headers"
18]
19
Stephen Kiazyke77dce22017-03-14 15:38:12 -070020cc_library {
21 srcs: src,
22 export_include_dirs: ["include"],
23 shared_libs: shared_libs,
John Bates14bc55a2017-05-26 09:00:08 -070024 header_libs: header_libraries,
Stephen Kiazyke77dce22017-03-14 15:38:12 -070025 cppflags: ["-std=c++11"],
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",
32 tags: ["optional"],
33}
34
35// Touchpad unit tests.
36
37test_static_libs = [
38 "libcutils",
39 "libvirtualtouchpad",
Stephen Kiazyke77dce22017-03-14 15:38:12 -070040 "libbase",
41 "liblog",
42 "libutils",
43]
44
45test_src_files = ["tests/VirtualTouchpad_test.cpp"]
46
47cc_test {
48 srcs: test_src_files,
49 static_libs: test_static_libs,
John Bates14bc55a2017-05-26 09:00:08 -070050 header_libs: header_libraries,
Chih-Hung Hsiehe27d5eb2017-10-31 15:39:40 -070051 cflags = [
52 "-Wall",
53 "-Werror",
54 ],
Stephen Kiazyke77dce22017-03-14 15:38:12 -070055 cppflags = [
56 "-std=c++11",
57 ],
58 host_ldlibs = [
59 "-llog",
60 ],
61 name: "VirtualTouchpad_test",
62 stl: "libc++_static",
63 tags: [ "optional" ],
64}
65
66// Service.
67
68service_src = [
69 "main.cpp",
70 "VirtualTouchpadService.cpp",
71 "aidl/android/dvr/VirtualTouchpadService.aidl",
72]
73
74service_static_libs = [
75 "libcutils",
76 "libvirtualtouchpad",
77]
78
79service_shared_libs = [
80 "libbase",
81 "libbinder",
82 "liblog",
83 "libutils",
84]
85
86cc_binary {
87 srcs: service_src,
88 static_libs: service_static_libs,
89 shared_libs: service_shared_libs,
John Bates14bc55a2017-05-26 09:00:08 -070090 header_libs: header_libraries,
Stephen Kiazyke77dce22017-03-14 15:38:12 -070091 cppflags: ["-std=c++11"],
92 cflags: [
93 "-DLOG_TAG=\"VrVirtualTouchpad\"",
Chih-Hung Hsiehe27d5eb2017-10-31 15:39:40 -070094 "-Wall",
95 "-Werror",
Stephen Kiazyke77dce22017-03-14 15:38:12 -070096 ],
97 host_ldlibs: ["-llog"],
98 name: "virtual_touchpad",
99 tags: ["optional"],
100 init_rc: ["virtual_touchpad.rc"],
101 compile_multilib: "64",
102 stl: "libc++_static",
103}
104
105// Touchpad client library.
106
107client_src = [
108 "VirtualTouchpadClient.cpp",
Kevin Schoedelde1cdae2017-03-17 11:07:06 -0400109 "DvrVirtualTouchpadClient.cpp",
Stephen Kiazyke77dce22017-03-14 15:38:12 -0700110 "aidl/android/dvr/VirtualTouchpadService.aidl",
111]
112
113client_shared_libs = [
114 "libbase",
115 "libbinder",
116 "liblog",
117 "libutils",
118]
119
120cc_library {
121 srcs: client_src,
122 shared_libs: client_shared_libs,
John Bates14bc55a2017-05-26 09:00:08 -0700123 header_libs: header_libraries,
Stephen Kiazyke77dce22017-03-14 15:38:12 -0700124 cppflags: ["-std=c++11"],
Chih-Hung Hsiehe27d5eb2017-10-31 15:39:40 -0700125 cflags: [
126 "-DLOG_TAG=\"VirtualTouchpadClient\"",
127 "-Wall",
128 "-Werror",
129 ],
Stephen Kiazyke77dce22017-03-14 15:38:12 -0700130 host_ldlibs: ["-llog"],
131 name: "libvirtualtouchpadclient",
132 tags: ["optional"],
133 export_include_dirs: ["include"],
134}