blob: 3d5dfb271a58da19354f971a5ff4e6d25cd1bc48 [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
16cc_library {
17 srcs: src,
18 export_include_dirs: ["include"],
19 shared_libs: shared_libs,
20 cppflags: ["-std=c++11"],
Chih-hung Hsiehd980f7a2017-10-12 02:46:39 +000021 cflags: ["-DLOG_TAG=\"VrVirtualTouchpad\""],
Stephen Kiazyke77dce22017-03-14 15:38:12 -070022 name: "libvirtualtouchpad",
23 tags: ["optional"],
24}
25
26// Touchpad unit tests.
27
28test_static_libs = [
29 "libcutils",
30 "libvirtualtouchpad",
31]
32
33test_shared_libs = [
34 "libbase",
35 "liblog",
36 "libutils",
37]
38
39test_src_files = ["tests/VirtualTouchpad_test.cpp"]
40
41cc_test {
42 srcs: test_src_files,
43 static_libs: test_static_libs,
44 shared_libs: test_shared_libs,
45 cppflags = [
46 "-std=c++11",
47 ],
48 host_ldlibs = [
49 "-llog",
50 ],
51 name: "VirtualTouchpad_test",
52 stl: "libc++_static",
53 tags: [ "optional" ],
54}
55
56// Service.
57
58service_src = [
59 "main.cpp",
60 "VirtualTouchpadService.cpp",
61 "aidl/android/dvr/VirtualTouchpadService.aidl",
62]
63
64service_static_libs = [
65 "libcutils",
66 "libvirtualtouchpad",
67]
68
69service_shared_libs = [
70 "libbase",
71 "libbinder",
72 "liblog",
73 "libutils",
74]
75
76cc_binary {
77 srcs: service_src,
78 static_libs: service_static_libs,
79 shared_libs: service_shared_libs,
80 cppflags: ["-std=c++11"],
81 cflags: [
82 "-DLOG_TAG=\"VrVirtualTouchpad\"",
Stephen Kiazyke77dce22017-03-14 15:38:12 -070083 ],
84 host_ldlibs: ["-llog"],
85 name: "virtual_touchpad",
86 tags: ["optional"],
87 init_rc: ["virtual_touchpad.rc"],
88 compile_multilib: "64",
89 stl: "libc++_static",
90}
91
92// Touchpad client library.
93
94client_src = [
95 "VirtualTouchpadClient.cpp",
Kevin Schoedelde1cdae2017-03-17 11:07:06 -040096 "DvrVirtualTouchpadClient.cpp",
Stephen Kiazyke77dce22017-03-14 15:38:12 -070097 "aidl/android/dvr/VirtualTouchpadService.aidl",
98]
99
100client_shared_libs = [
101 "libbase",
102 "libbinder",
103 "liblog",
104 "libutils",
105]
106
107cc_library {
108 srcs: client_src,
109 shared_libs: client_shared_libs,
110 cppflags: ["-std=c++11"],
Chih-hung Hsiehd980f7a2017-10-12 02:46:39 +0000111 cflags: ["-DLOG_TAG=\"VirtualTouchpadClient\""],
Stephen Kiazyke77dce22017-03-14 15:38:12 -0700112 host_ldlibs: ["-llog"],
113 name: "libvirtualtouchpadclient",
114 tags: ["optional"],
115 export_include_dirs: ["include"],
116}