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 | d980f7a | 2017-10-12 02:46:39 +0000 | [diff] [blame] | 26 | cflags: ["-DLOG_TAG=\"VrVirtualTouchpad\""], |
Stephen Kiazyk | e77dce2 | 2017-03-14 15:38:12 -0700 | [diff] [blame] | 27 | name: "libvirtualtouchpad", |
| 28 | tags: ["optional"], |
| 29 | } |
| 30 | |
| 31 | // Touchpad unit tests. |
| 32 | |
| 33 | test_static_libs = [ |
| 34 | "libcutils", |
| 35 | "libvirtualtouchpad", |
Stephen Kiazyk | e77dce2 | 2017-03-14 15:38:12 -0700 | [diff] [blame] | 36 | "libbase", |
| 37 | "liblog", |
| 38 | "libutils", |
| 39 | ] |
| 40 | |
| 41 | test_src_files = ["tests/VirtualTouchpad_test.cpp"] |
| 42 | |
| 43 | cc_test { |
| 44 | srcs: test_src_files, |
| 45 | static_libs: test_static_libs, |
John Bates | 14bc55a | 2017-05-26 09:00:08 -0700 | [diff] [blame] | 46 | header_libs: header_libraries, |
Stephen Kiazyk | e77dce2 | 2017-03-14 15:38:12 -0700 | [diff] [blame] | 47 | 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 | |
| 60 | service_src = [ |
| 61 | "main.cpp", |
| 62 | "VirtualTouchpadService.cpp", |
| 63 | "aidl/android/dvr/VirtualTouchpadService.aidl", |
| 64 | ] |
| 65 | |
| 66 | service_static_libs = [ |
| 67 | "libcutils", |
| 68 | "libvirtualtouchpad", |
| 69 | ] |
| 70 | |
| 71 | service_shared_libs = [ |
| 72 | "libbase", |
| 73 | "libbinder", |
| 74 | "liblog", |
| 75 | "libutils", |
| 76 | ] |
| 77 | |
| 78 | cc_binary { |
| 79 | srcs: service_src, |
| 80 | static_libs: service_static_libs, |
| 81 | shared_libs: service_shared_libs, |
John Bates | 14bc55a | 2017-05-26 09:00:08 -0700 | [diff] [blame] | 82 | header_libs: header_libraries, |
Stephen Kiazyk | e77dce2 | 2017-03-14 15:38:12 -0700 | [diff] [blame] | 83 | cppflags: ["-std=c++11"], |
| 84 | cflags: [ |
| 85 | "-DLOG_TAG=\"VrVirtualTouchpad\"", |
Stephen Kiazyk | e77dce2 | 2017-03-14 15:38:12 -0700 | [diff] [blame] | 86 | ], |
| 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 | |
| 97 | client_src = [ |
| 98 | "VirtualTouchpadClient.cpp", |
Kevin Schoedel | de1cdae | 2017-03-17 11:07:06 -0400 | [diff] [blame] | 99 | "DvrVirtualTouchpadClient.cpp", |
Stephen Kiazyk | e77dce2 | 2017-03-14 15:38:12 -0700 | [diff] [blame] | 100 | "aidl/android/dvr/VirtualTouchpadService.aidl", |
| 101 | ] |
| 102 | |
| 103 | client_shared_libs = [ |
| 104 | "libbase", |
| 105 | "libbinder", |
| 106 | "liblog", |
| 107 | "libutils", |
| 108 | ] |
| 109 | |
| 110 | cc_library { |
| 111 | srcs: client_src, |
| 112 | shared_libs: client_shared_libs, |
John Bates | 14bc55a | 2017-05-26 09:00:08 -0700 | [diff] [blame] | 113 | header_libs: header_libraries, |
Stephen Kiazyk | e77dce2 | 2017-03-14 15:38:12 -0700 | [diff] [blame] | 114 | cppflags: ["-std=c++11"], |
Chih-hung Hsieh | d980f7a | 2017-10-12 02:46:39 +0000 | [diff] [blame] | 115 | cflags: ["-DLOG_TAG=\"VirtualTouchpadClient\""], |
Stephen Kiazyk | e77dce2 | 2017-03-14 15:38:12 -0700 | [diff] [blame] | 116 | host_ldlibs: ["-llog"], |
| 117 | name: "libvirtualtouchpadclient", |
| 118 | tags: ["optional"], |
| 119 | export_include_dirs: ["include"], |
| 120 | } |