blob: 131a306c08760972d6b8942fc8a5e80fb8df6025 [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 = [
Logan Chien3e60b392018-02-27 16:00:11 +080017 "libdvr_headers",
John Bates14bc55a2017-05-26 09:00:08 -070018]
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,
Chih-Hung Hsiehe27d5eb2017-10-31 15:39:40 -070025 cflags: [
26 "-DLOG_TAG=\"VrVirtualTouchpad\"",
27 "-Wall",
28 "-Werror",
29 ],
Stephen Kiazyke77dce22017-03-14 15:38:12 -070030 name: "libvirtualtouchpad",
Stephen Kiazyke77dce22017-03-14 15:38:12 -070031}
32
33// Touchpad unit tests.
34
35test_static_libs = [
36 "libcutils",
37 "libvirtualtouchpad",
Stephen Kiazyke77dce22017-03-14 15:38:12 -070038 "libbase",
39 "liblog",
40 "libutils",
41]
42
43test_src_files = ["tests/VirtualTouchpad_test.cpp"]
44
45cc_test {
46 srcs: test_src_files,
47 static_libs: test_static_libs,
John Bates14bc55a2017-05-26 09:00:08 -070048 header_libs: header_libraries,
Logan Chien3e60b392018-02-27 16:00:11 +080049 cflags: [
Chih-Hung Hsiehe27d5eb2017-10-31 15:39:40 -070050 "-Wall",
51 "-Werror",
52 ],
Logan Chien3e60b392018-02-27 16:00:11 +080053 host_ldlibs: [
Stephen Kiazyke77dce22017-03-14 15:38:12 -070054 "-llog",
55 ],
56 name: "VirtualTouchpad_test",
57 stl: "libc++_static",
Stephen Kiazyke77dce22017-03-14 15:38:12 -070058}
59
60// Service.
61
62service_src = [
63 "main.cpp",
64 "VirtualTouchpadService.cpp",
Jiyong Parke0067972019-04-03 20:16:24 +090065 "aidl/android/dvr/IVirtualTouchpadService.aidl",
Stephen Kiazyke77dce22017-03-14 15:38:12 -070066]
67
68service_static_libs = [
69 "libcutils",
70 "libvirtualtouchpad",
71]
72
73service_shared_libs = [
74 "libbase",
75 "libbinder",
76 "liblog",
77 "libutils",
78]
79
80cc_binary {
81 srcs: service_src,
82 static_libs: service_static_libs,
83 shared_libs: service_shared_libs,
John Bates14bc55a2017-05-26 09:00:08 -070084 header_libs: header_libraries,
Stephen Kiazyke77dce22017-03-14 15:38:12 -070085 cflags: [
86 "-DLOG_TAG=\"VrVirtualTouchpad\"",
Chih-Hung Hsiehe27d5eb2017-10-31 15:39:40 -070087 "-Wall",
88 "-Werror",
Stephen Kiazyke77dce22017-03-14 15:38:12 -070089 ],
90 host_ldlibs: ["-llog"],
91 name: "virtual_touchpad",
Stephen Kiazyke77dce22017-03-14 15:38:12 -070092 init_rc: ["virtual_touchpad.rc"],
93 compile_multilib: "64",
94 stl: "libc++_static",
95}
96
97// Touchpad client library.
98
99client_src = [
100 "VirtualTouchpadClient.cpp",
Kevin Schoedelde1cdae2017-03-17 11:07:06 -0400101 "DvrVirtualTouchpadClient.cpp",
Jiyong Parke0067972019-04-03 20:16:24 +0900102 "aidl/android/dvr/IVirtualTouchpadService.aidl",
Stephen Kiazyke77dce22017-03-14 15:38:12 -0700103]
104
105client_shared_libs = [
106 "libbase",
107 "libbinder",
108 "liblog",
109 "libutils",
110]
111
112cc_library {
113 srcs: client_src,
114 shared_libs: client_shared_libs,
John Bates14bc55a2017-05-26 09:00:08 -0700115 header_libs: header_libraries,
Chih-Hung Hsiehe27d5eb2017-10-31 15:39:40 -0700116 cflags: [
117 "-DLOG_TAG=\"VirtualTouchpadClient\"",
118 "-Wall",
119 "-Werror",
120 ],
Stephen Kiazyke77dce22017-03-14 15:38:12 -0700121 host_ldlibs: ["-llog"],
122 name: "libvirtualtouchpadclient",
Stephen Kiazyke77dce22017-03-14 15:38:12 -0700123 export_include_dirs: ["include"],
124}