Colin Cross | 45a1b9c | 2017-04-19 16:56:46 -0700 | [diff] [blame] | 1 | // Copyright (C) 2013 The Android Open Source Project |
| 2 | // |
| 3 | // Licensed under the Apache License, Version 2.0 (the "License"); |
| 4 | // you may not use this file except in compliance with the License. |
| 5 | // You may obtain a copy of the License at |
| 6 | // |
| 7 | // http://www.apache.org/licenses/LICENSE-2.0 |
| 8 | // |
| 9 | // Unless required by applicable law or agreed to in writing, software |
| 10 | // distributed under the License is distributed on an "AS IS" BASIS, |
| 11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 12 | // See the License for the specific language governing permissions and |
| 13 | // limitations under the License. |
| 14 | |
| 15 | cc_library_shared { |
| 16 | name: "libinputflinger", |
| 17 | |
| 18 | srcs: [ |
Siarhei Vishniakou | 473174e | 2017-12-27 16:44:42 -0800 | [diff] [blame^] | 19 | "InputClassifier.cpp", |
Colin Cross | 45a1b9c | 2017-04-19 16:56:46 -0700 | [diff] [blame] | 20 | "InputDispatcher.cpp", |
Colin Cross | 45a1b9c | 2017-04-19 16:56:46 -0700 | [diff] [blame] | 21 | "InputManager.cpp", |
Colin Cross | 45a1b9c | 2017-04-19 16:56:46 -0700 | [diff] [blame] | 22 | ], |
| 23 | |
| 24 | shared_libs: [ |
Siarhei Vishniakou | 473174e | 2017-12-27 16:44:42 -0800 | [diff] [blame^] | 25 | "android.hardware.input.classifier@1.0", |
Prabir Pradhan | 29c9533 | 2018-11-14 20:14:11 -0800 | [diff] [blame] | 26 | "libinputflinger_base", |
Prabir Pradhan | f93562f | 2018-11-29 12:13:37 -0800 | [diff] [blame] | 27 | "libinputreporter", |
Prabir Pradhan | 29c9533 | 2018-11-14 20:14:11 -0800 | [diff] [blame] | 28 | "libinputreader", |
Siarhei Vishniakou | f93fcf4 | 2017-11-22 16:00:14 -0800 | [diff] [blame] | 29 | "libbase", |
Colin Cross | 45a1b9c | 2017-04-19 16:56:46 -0700 | [diff] [blame] | 30 | "libbinder", |
Colin Cross | 45a1b9c | 2017-04-19 16:56:46 -0700 | [diff] [blame] | 31 | "libcutils", |
Siarhei Vishniakou | 473174e | 2017-12-27 16:44:42 -0800 | [diff] [blame^] | 32 | "libhidlbase", |
Colin Cross | 45a1b9c | 2017-04-19 16:56:46 -0700 | [diff] [blame] | 33 | "libinput", |
| 34 | "liblog", |
| 35 | "libutils", |
| 36 | "libui", |
Siarhei Vishniakou | 473174e | 2017-12-27 16:44:42 -0800 | [diff] [blame^] | 37 | "server_configurable_flags", |
Colin Cross | 45a1b9c | 2017-04-19 16:56:46 -0700 | [diff] [blame] | 38 | ], |
| 39 | |
| 40 | cflags: [ |
Siarhei Vishniakou | 5d83f60 | 2017-09-12 12:40:29 -0700 | [diff] [blame] | 41 | "-Wall", |
| 42 | "-Wextra", |
| 43 | "-Werror", |
Colin Cross | 45a1b9c | 2017-04-19 16:56:46 -0700 | [diff] [blame] | 44 | "-Wno-unused-parameter", |
Siarhei Vishniakou | 473174e | 2017-12-27 16:44:42 -0800 | [diff] [blame^] | 45 | // TODO(b/123097103): annotate InputDispatcher and uncomment the following line |
| 46 | //"-Wthread-safety", |
| 47 | // TODO(b/23084678): Move inputflinger to its own process and mark it hidden |
Colin Cross | 45a1b9c | 2017-04-19 16:56:46 -0700 | [diff] [blame] | 48 | //-fvisibility=hidden |
| 49 | ], |
| 50 | |
Prabir Pradhan | 29c9533 | 2018-11-14 20:14:11 -0800 | [diff] [blame] | 51 | export_include_dirs: [ |
| 52 | ".", |
| 53 | "include", |
| 54 | ], |
| 55 | |
| 56 | } |
| 57 | |
| 58 | |
| 59 | cc_library_headers { |
| 60 | name: "libinputflinger_headers", |
| 61 | |
| 62 | export_include_dirs: ["include"], |
| 63 | } |
| 64 | |
| 65 | cc_library_shared { |
| 66 | name: "libinputreader", |
| 67 | |
Prabir Pradhan | 29c9533 | 2018-11-14 20:14:11 -0800 | [diff] [blame] | 68 | srcs: [ |
| 69 | "EventHub.cpp", |
| 70 | "InputReader.cpp", |
| 71 | "InputReaderFactory.cpp", |
Siarhei Vishniakou | 22c8846 | 2018-12-13 19:34:53 -0800 | [diff] [blame] | 72 | "TouchVideoDevice.cpp", |
Prabir Pradhan | 29c9533 | 2018-11-14 20:14:11 -0800 | [diff] [blame] | 73 | ], |
| 74 | |
| 75 | shared_libs: [ |
| 76 | "libinputflinger_base", |
| 77 | "libbase", |
| 78 | "libcrypto", |
| 79 | "libcutils", |
| 80 | "libinput", |
| 81 | "liblog", |
| 82 | "libutils", |
| 83 | "libui", |
| 84 | "libhardware_legacy", |
Siarhei Vishniakou | 9ffab0c | 2018-11-08 19:54:22 -0800 | [diff] [blame] | 85 | "libstatslog", |
| 86 | "libutils", |
Prabir Pradhan | 29c9533 | 2018-11-14 20:14:11 -0800 | [diff] [blame] | 87 | ], |
| 88 | |
| 89 | header_libs: [ |
| 90 | "libinputflinger_headers", |
| 91 | ], |
| 92 | |
| 93 | export_header_lib_headers: [ |
| 94 | "libinputflinger_headers", |
| 95 | ], |
| 96 | |
| 97 | cflags: [ |
| 98 | "-Wall", |
| 99 | "-Wextra", |
| 100 | "-Werror", |
| 101 | "-Wno-unused-parameter", |
| 102 | ], |
| 103 | } |
| 104 | |
| 105 | cc_library_shared { |
| 106 | name: "libinputflinger_base", |
| 107 | |
Prabir Pradhan | 29c9533 | 2018-11-14 20:14:11 -0800 | [diff] [blame] | 108 | srcs: [ |
| 109 | "InputListener.cpp", |
| 110 | "InputReaderBase.cpp", |
| 111 | ], |
| 112 | |
| 113 | shared_libs: [ |
| 114 | "libbase", |
| 115 | "libinput", |
| 116 | "liblog", |
| 117 | "libutils", |
| 118 | ], |
| 119 | |
| 120 | header_libs: [ |
| 121 | "libinputflinger_headers", |
| 122 | ], |
| 123 | |
| 124 | export_header_lib_headers: [ |
| 125 | "libinputflinger_headers", |
| 126 | ], |
| 127 | |
| 128 | cflags: [ |
| 129 | "-Wall", |
| 130 | "-Wextra", |
| 131 | "-Werror", |
| 132 | "-Wno-unused-parameter", |
| 133 | ], |
Colin Cross | 45a1b9c | 2017-04-19 16:56:46 -0700 | [diff] [blame] | 134 | } |
| 135 | |
Prabir Pradhan | f93562f | 2018-11-29 12:13:37 -0800 | [diff] [blame] | 136 | cc_library_shared { |
| 137 | name: "libinputreporter", |
| 138 | |
| 139 | srcs: [ |
| 140 | "InputReporter.cpp", |
| 141 | ], |
| 142 | |
| 143 | shared_libs: [ |
| 144 | "libbase", |
| 145 | "liblog", |
| 146 | "libutils", |
| 147 | ], |
| 148 | |
| 149 | header_libs: [ |
| 150 | "libinputflinger_headers", |
| 151 | ], |
| 152 | |
| 153 | export_header_lib_headers: [ |
| 154 | "libinputflinger_headers", |
| 155 | ], |
| 156 | |
| 157 | cflags: [ |
| 158 | "-Wall", |
| 159 | "-Wextra", |
| 160 | "-Werror", |
| 161 | "-Wno-unused-parameter", |
| 162 | ], |
| 163 | } |
| 164 | |
Colin Cross | 45a1b9c | 2017-04-19 16:56:46 -0700 | [diff] [blame] | 165 | subdirs = [ |
| 166 | "host", |
| 167 | "tests", |
| 168 | ] |