blob: b9aa8fe1617fd9112a8bad2482b535c124b14da8 [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"],
26 cflags: ["-DLOG_TAG=\"VrVirtualTouchpad\""],
27 name: "libvirtualtouchpad",
28 tags: ["optional"],
29}
30
31// Touchpad unit tests.
32
33test_static_libs = [
34 "libcutils",
35 "libvirtualtouchpad",
36]
37
38test_shared_libs = [
39 "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,
49 shared_libs: test_shared_libs,
John Bates14bc55a2017-05-26 09:00:08 -070050 header_libs: header_libraries,
Stephen Kiazyke77dce22017-03-14 15:38:12 -070051 cppflags = [
52 "-std=c++11",
53 ],
54 host_ldlibs = [
55 "-llog",
56 ],
57 name: "VirtualTouchpad_test",
58 stl: "libc++_static",
59 tags: [ "optional" ],
60}
61
62// Service.
63
64service_src = [
65 "main.cpp",
66 "VirtualTouchpadService.cpp",
67 "aidl/android/dvr/VirtualTouchpadService.aidl",
68]
69
70service_static_libs = [
71 "libcutils",
72 "libvirtualtouchpad",
73]
74
75service_shared_libs = [
76 "libbase",
77 "libbinder",
78 "liblog",
79 "libutils",
80]
81
82cc_binary {
83 srcs: service_src,
84 static_libs: service_static_libs,
85 shared_libs: service_shared_libs,
John Bates14bc55a2017-05-26 09:00:08 -070086 header_libs: header_libraries,
Stephen Kiazyke77dce22017-03-14 15:38:12 -070087 cppflags: ["-std=c++11"],
88 cflags: [
89 "-DLOG_TAG=\"VrVirtualTouchpad\"",
Stephen Kiazyke77dce22017-03-14 15:38:12 -070090 ],
91 host_ldlibs: ["-llog"],
92 name: "virtual_touchpad",
93 tags: ["optional"],
94 init_rc: ["virtual_touchpad.rc"],
95 compile_multilib: "64",
96 stl: "libc++_static",
97}
98
99// Touchpad client library.
100
101client_src = [
102 "VirtualTouchpadClient.cpp",
Kevin Schoedelde1cdae2017-03-17 11:07:06 -0400103 "DvrVirtualTouchpadClient.cpp",
Stephen Kiazyke77dce22017-03-14 15:38:12 -0700104 "aidl/android/dvr/VirtualTouchpadService.aidl",
105]
106
107client_shared_libs = [
108 "libbase",
109 "libbinder",
110 "liblog",
111 "libutils",
112]
113
114cc_library {
115 srcs: client_src,
116 shared_libs: client_shared_libs,
John Bates14bc55a2017-05-26 09:00:08 -0700117 header_libs: header_libraries,
Stephen Kiazyke77dce22017-03-14 15:38:12 -0700118 cppflags: ["-std=c++11"],
119 cflags: ["-DLOG_TAG=\"VirtualTouchpadClient\""],
120 host_ldlibs: ["-llog"],
121 name: "libvirtualtouchpadclient",
122 tags: ["optional"],
123 export_include_dirs: ["include"],
124}