blob: 6b11ce3e256822d4aa32f34fec288f6ebba5c7bf [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 Hsiehd980f7a2017-10-12 02:46:39 +000026 cflags: ["-DLOG_TAG=\"VrVirtualTouchpad\""],
Stephen Kiazyke77dce22017-03-14 15:38:12 -070027 name: "libvirtualtouchpad",
28 tags: ["optional"],
29}
30
31// Touchpad unit tests.
32
33test_static_libs = [
34 "libcutils",
35 "libvirtualtouchpad",
Stephen Kiazyke77dce22017-03-14 15:38:12 -070036 "libbase",
37 "liblog",
38 "libutils",
39]
40
41test_src_files = ["tests/VirtualTouchpad_test.cpp"]
42
43cc_test {
44 srcs: test_src_files,
45 static_libs: test_static_libs,
John Bates14bc55a2017-05-26 09:00:08 -070046 header_libs: header_libraries,
Stephen Kiazyke77dce22017-03-14 15:38:12 -070047 cppflags = [
48 "-std=c++11",
49 ],
50 host_ldlibs = [
51 "-llog",
52 ],
53 name: "VirtualTouchpad_test",
54 stl: "libc++_static",
55 tags: [ "optional" ],
56}
57
58// Service.
59
60service_src = [
61 "main.cpp",
62 "VirtualTouchpadService.cpp",
63 "aidl/android/dvr/VirtualTouchpadService.aidl",
64]
65
66service_static_libs = [
67 "libcutils",
68 "libvirtualtouchpad",
69]
70
71service_shared_libs = [
72 "libbase",
73 "libbinder",
74 "liblog",
75 "libutils",
76]
77
78cc_binary {
79 srcs: service_src,
80 static_libs: service_static_libs,
81 shared_libs: service_shared_libs,
John Bates14bc55a2017-05-26 09:00:08 -070082 header_libs: header_libraries,
Stephen Kiazyke77dce22017-03-14 15:38:12 -070083 cppflags: ["-std=c++11"],
84 cflags: [
85 "-DLOG_TAG=\"VrVirtualTouchpad\"",
Stephen Kiazyke77dce22017-03-14 15:38:12 -070086 ],
87 host_ldlibs: ["-llog"],
88 name: "virtual_touchpad",
89 tags: ["optional"],
90 init_rc: ["virtual_touchpad.rc"],
91 compile_multilib: "64",
92 stl: "libc++_static",
93}
94
95// Touchpad client library.
96
97client_src = [
98 "VirtualTouchpadClient.cpp",
Kevin Schoedelde1cdae2017-03-17 11:07:06 -040099 "DvrVirtualTouchpadClient.cpp",
Stephen Kiazyke77dce22017-03-14 15:38:12 -0700100 "aidl/android/dvr/VirtualTouchpadService.aidl",
101]
102
103client_shared_libs = [
104 "libbase",
105 "libbinder",
106 "liblog",
107 "libutils",
108]
109
110cc_library {
111 srcs: client_src,
112 shared_libs: client_shared_libs,
John Bates14bc55a2017-05-26 09:00:08 -0700113 header_libs: header_libraries,
Stephen Kiazyke77dce22017-03-14 15:38:12 -0700114 cppflags: ["-std=c++11"],
Chih-hung Hsiehd980f7a2017-10-12 02:46:39 +0000115 cflags: ["-DLOG_TAG=\"VirtualTouchpadClient\""],
Stephen Kiazyke77dce22017-03-14 15:38:12 -0700116 host_ldlibs: ["-llog"],
117 name: "libvirtualtouchpadclient",
118 tags: ["optional"],
119 export_include_dirs: ["include"],
120}