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 | |
| 16 | cc_library { |
| 17 | srcs: src, |
| 18 | export_include_dirs: ["include"], |
| 19 | shared_libs: shared_libs, |
| 20 | cppflags: ["-std=c++11"], |
Chih-hung Hsieh | d980f7a | 2017-10-12 02:46:39 +0000 | [diff] [blame^] | 21 | cflags: ["-DLOG_TAG=\"VrVirtualTouchpad\""], |
Stephen Kiazyk | e77dce2 | 2017-03-14 15:38:12 -0700 | [diff] [blame] | 22 | name: "libvirtualtouchpad", |
| 23 | tags: ["optional"], |
| 24 | } |
| 25 | |
| 26 | // Touchpad unit tests. |
| 27 | |
| 28 | test_static_libs = [ |
| 29 | "libcutils", |
| 30 | "libvirtualtouchpad", |
| 31 | ] |
| 32 | |
| 33 | test_shared_libs = [ |
| 34 | "libbase", |
| 35 | "liblog", |
| 36 | "libutils", |
| 37 | ] |
| 38 | |
| 39 | test_src_files = ["tests/VirtualTouchpad_test.cpp"] |
| 40 | |
| 41 | cc_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 | |
| 58 | service_src = [ |
| 59 | "main.cpp", |
| 60 | "VirtualTouchpadService.cpp", |
| 61 | "aidl/android/dvr/VirtualTouchpadService.aidl", |
| 62 | ] |
| 63 | |
| 64 | service_static_libs = [ |
| 65 | "libcutils", |
| 66 | "libvirtualtouchpad", |
| 67 | ] |
| 68 | |
| 69 | service_shared_libs = [ |
| 70 | "libbase", |
| 71 | "libbinder", |
| 72 | "liblog", |
| 73 | "libutils", |
| 74 | ] |
| 75 | |
| 76 | cc_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 Kiazyk | e77dce2 | 2017-03-14 15:38:12 -0700 | [diff] [blame] | 83 | ], |
| 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 | |
| 94 | client_src = [ |
| 95 | "VirtualTouchpadClient.cpp", |
Kevin Schoedel | de1cdae | 2017-03-17 11:07:06 -0400 | [diff] [blame] | 96 | "DvrVirtualTouchpadClient.cpp", |
Stephen Kiazyk | e77dce2 | 2017-03-14 15:38:12 -0700 | [diff] [blame] | 97 | "aidl/android/dvr/VirtualTouchpadService.aidl", |
| 98 | ] |
| 99 | |
| 100 | client_shared_libs = [ |
| 101 | "libbase", |
| 102 | "libbinder", |
| 103 | "liblog", |
| 104 | "libutils", |
| 105 | ] |
| 106 | |
| 107 | cc_library { |
| 108 | srcs: client_src, |
| 109 | shared_libs: client_shared_libs, |
| 110 | cppflags: ["-std=c++11"], |
Chih-hung Hsieh | d980f7a | 2017-10-12 02:46:39 +0000 | [diff] [blame^] | 111 | cflags: ["-DLOG_TAG=\"VirtualTouchpadClient\""], |
Stephen Kiazyk | e77dce2 | 2017-03-14 15:38:12 -0700 | [diff] [blame] | 112 | host_ldlibs: ["-llog"], |
| 113 | name: "libvirtualtouchpadclient", |
| 114 | tags: ["optional"], |
| 115 | export_include_dirs: ["include"], |
| 116 | } |