Stephen Kiazyk | e77dce2 | 2017-03-14 15:38:12 -0700 | [diff] [blame] | 1 | |
| 2 | |
| 3 | // Touchpad implementation. |
| 4 | |
| 5 | src = [ |
| 6 | "EvdevInjector.cpp", |
| 7 | "VirtualTouchpadEvdev.cpp", |
| 8 | ] |
| 9 | |
| 10 | shared_libs = [ |
| 11 | "libbase", |
| 12 | "liblog", |
| 13 | "libutils", |
| 14 | ] |
| 15 | |
John Bates | 14bc55a | 2017-05-26 09:00:08 -0700 | [diff] [blame] | 16 | header_libraries = [ |
| 17 | "libdvr_headers" |
| 18 | ] |
| 19 | |
Stephen Kiazyk | e77dce2 | 2017-03-14 15:38:12 -0700 | [diff] [blame] | 20 | cc_library { |
| 21 | srcs: src, |
| 22 | export_include_dirs: ["include"], |
| 23 | shared_libs: shared_libs, |
John Bates | 14bc55a | 2017-05-26 09:00:08 -0700 | [diff] [blame] | 24 | header_libs: header_libraries, |
Stephen Kiazyk | e77dce2 | 2017-03-14 15:38:12 -0700 | [diff] [blame] | 25 | cppflags: ["-std=c++11"], |
Chih-Hung Hsieh | e27d5eb | 2017-10-31 15:39:40 -0700 | [diff] [blame] | 26 | cflags: [ |
| 27 | "-DLOG_TAG=\"VrVirtualTouchpad\"", |
| 28 | "-Wall", |
| 29 | "-Werror", |
| 30 | ], |
Stephen Kiazyk | e77dce2 | 2017-03-14 15:38:12 -0700 | [diff] [blame] | 31 | name: "libvirtualtouchpad", |
| 32 | tags: ["optional"], |
| 33 | } |
| 34 | |
| 35 | // Touchpad unit tests. |
| 36 | |
| 37 | test_static_libs = [ |
| 38 | "libcutils", |
| 39 | "libvirtualtouchpad", |
Stephen Kiazyk | e77dce2 | 2017-03-14 15:38:12 -0700 | [diff] [blame] | 40 | "libbase", |
| 41 | "liblog", |
| 42 | "libutils", |
| 43 | ] |
| 44 | |
| 45 | test_src_files = ["tests/VirtualTouchpad_test.cpp"] |
| 46 | |
| 47 | cc_test { |
| 48 | srcs: test_src_files, |
| 49 | static_libs: test_static_libs, |
John Bates | 14bc55a | 2017-05-26 09:00:08 -0700 | [diff] [blame] | 50 | header_libs: header_libraries, |
Chih-Hung Hsieh | e27d5eb | 2017-10-31 15:39:40 -0700 | [diff] [blame] | 51 | cflags = [ |
| 52 | "-Wall", |
| 53 | "-Werror", |
| 54 | ], |
Stephen Kiazyk | e77dce2 | 2017-03-14 15:38:12 -0700 | [diff] [blame] | 55 | 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 | |
| 68 | service_src = [ |
| 69 | "main.cpp", |
| 70 | "VirtualTouchpadService.cpp", |
| 71 | "aidl/android/dvr/VirtualTouchpadService.aidl", |
| 72 | ] |
| 73 | |
| 74 | service_static_libs = [ |
| 75 | "libcutils", |
| 76 | "libvirtualtouchpad", |
| 77 | ] |
| 78 | |
| 79 | service_shared_libs = [ |
| 80 | "libbase", |
| 81 | "libbinder", |
| 82 | "liblog", |
| 83 | "libutils", |
| 84 | ] |
| 85 | |
| 86 | cc_binary { |
| 87 | srcs: service_src, |
| 88 | static_libs: service_static_libs, |
| 89 | shared_libs: service_shared_libs, |
John Bates | 14bc55a | 2017-05-26 09:00:08 -0700 | [diff] [blame] | 90 | header_libs: header_libraries, |
Stephen Kiazyk | e77dce2 | 2017-03-14 15:38:12 -0700 | [diff] [blame] | 91 | cppflags: ["-std=c++11"], |
| 92 | cflags: [ |
| 93 | "-DLOG_TAG=\"VrVirtualTouchpad\"", |
Chih-Hung Hsieh | e27d5eb | 2017-10-31 15:39:40 -0700 | [diff] [blame] | 94 | "-Wall", |
| 95 | "-Werror", |
Stephen Kiazyk | e77dce2 | 2017-03-14 15:38:12 -0700 | [diff] [blame] | 96 | ], |
| 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 | |
| 107 | client_src = [ |
| 108 | "VirtualTouchpadClient.cpp", |
Kevin Schoedel | de1cdae | 2017-03-17 11:07:06 -0400 | [diff] [blame] | 109 | "DvrVirtualTouchpadClient.cpp", |
Stephen Kiazyk | e77dce2 | 2017-03-14 15:38:12 -0700 | [diff] [blame] | 110 | "aidl/android/dvr/VirtualTouchpadService.aidl", |
| 111 | ] |
| 112 | |
| 113 | client_shared_libs = [ |
| 114 | "libbase", |
| 115 | "libbinder", |
| 116 | "liblog", |
| 117 | "libutils", |
| 118 | ] |
| 119 | |
| 120 | cc_library { |
| 121 | srcs: client_src, |
| 122 | shared_libs: client_shared_libs, |
John Bates | 14bc55a | 2017-05-26 09:00:08 -0700 | [diff] [blame] | 123 | header_libs: header_libraries, |
Stephen Kiazyk | e77dce2 | 2017-03-14 15:38:12 -0700 | [diff] [blame] | 124 | cppflags: ["-std=c++11"], |
Chih-Hung Hsieh | e27d5eb | 2017-10-31 15:39:40 -0700 | [diff] [blame] | 125 | cflags: [ |
| 126 | "-DLOG_TAG=\"VirtualTouchpadClient\"", |
| 127 | "-Wall", |
| 128 | "-Werror", |
| 129 | ], |
Stephen Kiazyk | e77dce2 | 2017-03-14 15:38:12 -0700 | [diff] [blame] | 130 | host_ldlibs: ["-llog"], |
| 131 | name: "libvirtualtouchpadclient", |
| 132 | tags: ["optional"], |
| 133 | export_include_dirs: ["include"], |
| 134 | } |