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 = [ |
Logan Chien | 3e60b39 | 2018-02-27 16:00:11 +0800 | [diff] [blame] | 17 | "libdvr_headers", |
John Bates | 14bc55a | 2017-05-26 09:00:08 -0700 | [diff] [blame] | 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, |
Chih-Hung Hsieh | e27d5eb | 2017-10-31 15:39:40 -0700 | [diff] [blame] | 25 | cflags: [ |
| 26 | "-DLOG_TAG=\"VrVirtualTouchpad\"", |
| 27 | "-Wall", |
| 28 | "-Werror", |
| 29 | ], |
Stephen Kiazyk | e77dce2 | 2017-03-14 15:38:12 -0700 | [diff] [blame] | 30 | name: "libvirtualtouchpad", |
Stephen Kiazyk | e77dce2 | 2017-03-14 15:38:12 -0700 | [diff] [blame] | 31 | } |
| 32 | |
| 33 | // Touchpad unit tests. |
| 34 | |
| 35 | test_static_libs = [ |
| 36 | "libcutils", |
| 37 | "libvirtualtouchpad", |
Stephen Kiazyk | e77dce2 | 2017-03-14 15:38:12 -0700 | [diff] [blame] | 38 | "libbase", |
| 39 | "liblog", |
| 40 | "libutils", |
| 41 | ] |
| 42 | |
| 43 | test_src_files = ["tests/VirtualTouchpad_test.cpp"] |
| 44 | |
| 45 | cc_test { |
| 46 | srcs: test_src_files, |
| 47 | static_libs: test_static_libs, |
John Bates | 14bc55a | 2017-05-26 09:00:08 -0700 | [diff] [blame] | 48 | header_libs: header_libraries, |
Logan Chien | 3e60b39 | 2018-02-27 16:00:11 +0800 | [diff] [blame] | 49 | cflags: [ |
Chih-Hung Hsieh | e27d5eb | 2017-10-31 15:39:40 -0700 | [diff] [blame] | 50 | "-Wall", |
| 51 | "-Werror", |
| 52 | ], |
Logan Chien | 3e60b39 | 2018-02-27 16:00:11 +0800 | [diff] [blame] | 53 | host_ldlibs: [ |
Stephen Kiazyk | e77dce2 | 2017-03-14 15:38:12 -0700 | [diff] [blame] | 54 | "-llog", |
| 55 | ], |
| 56 | name: "VirtualTouchpad_test", |
| 57 | stl: "libc++_static", |
Stephen Kiazyk | e77dce2 | 2017-03-14 15:38:12 -0700 | [diff] [blame] | 58 | } |
| 59 | |
| 60 | // Service. |
| 61 | |
| 62 | service_src = [ |
| 63 | "main.cpp", |
| 64 | "VirtualTouchpadService.cpp", |
Jiyong Park | e006797 | 2019-04-03 20:16:24 +0900 | [diff] [blame] | 65 | "aidl/android/dvr/IVirtualTouchpadService.aidl", |
Stephen Kiazyk | e77dce2 | 2017-03-14 15:38:12 -0700 | [diff] [blame] | 66 | ] |
| 67 | |
| 68 | service_static_libs = [ |
| 69 | "libcutils", |
| 70 | "libvirtualtouchpad", |
| 71 | ] |
| 72 | |
| 73 | service_shared_libs = [ |
| 74 | "libbase", |
| 75 | "libbinder", |
| 76 | "liblog", |
| 77 | "libutils", |
| 78 | ] |
| 79 | |
| 80 | cc_binary { |
| 81 | srcs: service_src, |
| 82 | static_libs: service_static_libs, |
| 83 | shared_libs: service_shared_libs, |
John Bates | 14bc55a | 2017-05-26 09:00:08 -0700 | [diff] [blame] | 84 | header_libs: header_libraries, |
Stephen Kiazyk | e77dce2 | 2017-03-14 15:38:12 -0700 | [diff] [blame] | 85 | cflags: [ |
| 86 | "-DLOG_TAG=\"VrVirtualTouchpad\"", |
Chih-Hung Hsieh | e27d5eb | 2017-10-31 15:39:40 -0700 | [diff] [blame] | 87 | "-Wall", |
| 88 | "-Werror", |
Stephen Kiazyk | e77dce2 | 2017-03-14 15:38:12 -0700 | [diff] [blame] | 89 | ], |
| 90 | host_ldlibs: ["-llog"], |
| 91 | name: "virtual_touchpad", |
Stephen Kiazyk | e77dce2 | 2017-03-14 15:38:12 -0700 | [diff] [blame] | 92 | init_rc: ["virtual_touchpad.rc"], |
| 93 | compile_multilib: "64", |
| 94 | stl: "libc++_static", |
| 95 | } |
| 96 | |
| 97 | // Touchpad client library. |
| 98 | |
| 99 | client_src = [ |
| 100 | "VirtualTouchpadClient.cpp", |
Kevin Schoedel | de1cdae | 2017-03-17 11:07:06 -0400 | [diff] [blame] | 101 | "DvrVirtualTouchpadClient.cpp", |
Jiyong Park | e006797 | 2019-04-03 20:16:24 +0900 | [diff] [blame] | 102 | "aidl/android/dvr/IVirtualTouchpadService.aidl", |
Stephen Kiazyk | e77dce2 | 2017-03-14 15:38:12 -0700 | [diff] [blame] | 103 | ] |
| 104 | |
| 105 | client_shared_libs = [ |
| 106 | "libbase", |
| 107 | "libbinder", |
| 108 | "liblog", |
| 109 | "libutils", |
| 110 | ] |
| 111 | |
| 112 | cc_library { |
| 113 | srcs: client_src, |
| 114 | shared_libs: client_shared_libs, |
John Bates | 14bc55a | 2017-05-26 09:00:08 -0700 | [diff] [blame] | 115 | header_libs: header_libraries, |
Chih-Hung Hsieh | e27d5eb | 2017-10-31 15:39:40 -0700 | [diff] [blame] | 116 | cflags: [ |
| 117 | "-DLOG_TAG=\"VirtualTouchpadClient\"", |
| 118 | "-Wall", |
| 119 | "-Werror", |
| 120 | ], |
Stephen Kiazyk | e77dce2 | 2017-03-14 15:38:12 -0700 | [diff] [blame] | 121 | host_ldlibs: ["-llog"], |
| 122 | name: "libvirtualtouchpadclient", |
Stephen Kiazyk | e77dce2 | 2017-03-14 15:38:12 -0700 | [diff] [blame] | 123 | export_include_dirs: ["include"], |
| 124 | } |