| 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 |  | 
| Siarhei Vishniakou | 61291d4 | 2019-02-11 18:13:20 -0800 | [diff] [blame] | 15 | cc_defaults { | 
|  | 16 | name: "inputflinger_defaults", | 
|  | 17 | cflags: [ | 
|  | 18 | "-Wall", | 
|  | 19 | "-Wextra", | 
|  | 20 | "-Werror", | 
|  | 21 | "-Wno-unused-parameter", | 
|  | 22 | "-Wthread-safety", | 
|  | 23 | ], | 
|  | 24 | } | 
|  | 25 |  | 
| Colin Cross | 45a1b9c | 2017-04-19 16:56:46 -0700 | [diff] [blame] | 26 | cc_library_shared { | 
|  | 27 | name: "libinputflinger", | 
| Siarhei Vishniakou | 61291d4 | 2019-02-11 18:13:20 -0800 | [diff] [blame] | 28 | defaults: ["inputflinger_defaults"], | 
| Colin Cross | 45a1b9c | 2017-04-19 16:56:46 -0700 | [diff] [blame] | 29 |  | 
|  | 30 | srcs: [ | 
| Siarhei Vishniakou | 473174e | 2017-12-27 16:44:42 -0800 | [diff] [blame] | 31 | "InputClassifier.cpp", | 
| Siarhei Vishniakou | a47a4d4 | 2019-05-06 17:14:11 -0700 | [diff] [blame] | 32 | "InputClassifierConverter.cpp", | 
| Colin Cross | 45a1b9c | 2017-04-19 16:56:46 -0700 | [diff] [blame] | 33 | "InputDispatcher.cpp", | 
| Colin Cross | 45a1b9c | 2017-04-19 16:56:46 -0700 | [diff] [blame] | 34 | "InputManager.cpp", | 
| Colin Cross | 45a1b9c | 2017-04-19 16:56:46 -0700 | [diff] [blame] | 35 | ], | 
|  | 36 |  | 
|  | 37 | shared_libs: [ | 
| Siarhei Vishniakou | 473174e | 2017-12-27 16:44:42 -0800 | [diff] [blame] | 38 | "android.hardware.input.classifier@1.0", | 
| Siarhei Vishniakou | 61291d4 | 2019-02-11 18:13:20 -0800 | [diff] [blame] | 39 | "libbase", | 
| Prabir Pradhan | 29c9533 | 2018-11-14 20:14:11 -0800 | [diff] [blame] | 40 | "libinputflinger_base", | 
| Prabir Pradhan | f93562f | 2018-11-29 12:13:37 -0800 | [diff] [blame] | 41 | "libinputreporter", | 
| Prabir Pradhan | 29c9533 | 2018-11-14 20:14:11 -0800 | [diff] [blame] | 42 | "libinputreader", | 
| Colin Cross | 45a1b9c | 2017-04-19 16:56:46 -0700 | [diff] [blame] | 43 | "libbinder", | 
| Colin Cross | 45a1b9c | 2017-04-19 16:56:46 -0700 | [diff] [blame] | 44 | "libcutils", | 
| Siarhei Vishniakou | 473174e | 2017-12-27 16:44:42 -0800 | [diff] [blame] | 45 | "libhidlbase", | 
| Colin Cross | 45a1b9c | 2017-04-19 16:56:46 -0700 | [diff] [blame] | 46 | "libinput", | 
|  | 47 | "liblog", | 
|  | 48 | "libutils", | 
|  | 49 | "libui", | 
| Siarhei Vishniakou | 473174e | 2017-12-27 16:44:42 -0800 | [diff] [blame] | 50 | "server_configurable_flags", | 
| Colin Cross | 45a1b9c | 2017-04-19 16:56:46 -0700 | [diff] [blame] | 51 | ], | 
|  | 52 |  | 
|  | 53 | cflags: [ | 
| Siarhei Vishniakou | 473174e | 2017-12-27 16:44:42 -0800 | [diff] [blame] | 54 | // 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] | 55 | //-fvisibility=hidden | 
|  | 56 | ], | 
|  | 57 |  | 
| Prabir Pradhan | 29c9533 | 2018-11-14 20:14:11 -0800 | [diff] [blame] | 58 | export_include_dirs: [ | 
|  | 59 | ".", | 
|  | 60 | "include", | 
|  | 61 | ], | 
|  | 62 |  | 
|  | 63 | } | 
|  | 64 |  | 
| Prabir Pradhan | 29c9533 | 2018-11-14 20:14:11 -0800 | [diff] [blame] | 65 | cc_library_headers { | 
| Siarhei Vishniakou | 61291d4 | 2019-02-11 18:13:20 -0800 | [diff] [blame] | 66 | name: "libinputflinger_headers", | 
|  | 67 | export_include_dirs: ["include"], | 
| Prabir Pradhan | 29c9533 | 2018-11-14 20:14:11 -0800 | [diff] [blame] | 68 | } | 
|  | 69 |  | 
|  | 70 | cc_library_shared { | 
|  | 71 | name: "libinputreader", | 
| Siarhei Vishniakou | 61291d4 | 2019-02-11 18:13:20 -0800 | [diff] [blame] | 72 | defaults: ["inputflinger_defaults"], | 
| Prabir Pradhan | 29c9533 | 2018-11-14 20:14:11 -0800 | [diff] [blame] | 73 |  | 
| Prabir Pradhan | 29c9533 | 2018-11-14 20:14:11 -0800 | [diff] [blame] | 74 | srcs: [ | 
|  | 75 | "EventHub.cpp", | 
|  | 76 | "InputReader.cpp", | 
|  | 77 | "InputReaderFactory.cpp", | 
| Siarhei Vishniakou | 22c8846 | 2018-12-13 19:34:53 -0800 | [diff] [blame] | 78 | "TouchVideoDevice.cpp", | 
| Prabir Pradhan | 29c9533 | 2018-11-14 20:14:11 -0800 | [diff] [blame] | 79 | ], | 
|  | 80 |  | 
|  | 81 | shared_libs: [ | 
| Prabir Pradhan | 29c9533 | 2018-11-14 20:14:11 -0800 | [diff] [blame] | 82 | "libbase", | 
| Siarhei Vishniakou | 61291d4 | 2019-02-11 18:13:20 -0800 | [diff] [blame] | 83 | "libinputflinger_base", | 
| Prabir Pradhan | 29c9533 | 2018-11-14 20:14:11 -0800 | [diff] [blame] | 84 | "libcrypto", | 
|  | 85 | "libcutils", | 
|  | 86 | "libinput", | 
|  | 87 | "liblog", | 
| Prabir Pradhan | 29c9533 | 2018-11-14 20:14:11 -0800 | [diff] [blame] | 88 | "libui", | 
| Siarhei Vishniakou | 61291d4 | 2019-02-11 18:13:20 -0800 | [diff] [blame] | 89 | "libutils", | 
| Prabir Pradhan | 29c9533 | 2018-11-14 20:14:11 -0800 | [diff] [blame] | 90 | "libhardware_legacy", | 
| Prabir Pradhan | 29c9533 | 2018-11-14 20:14:11 -0800 | [diff] [blame] | 91 | ], | 
|  | 92 |  | 
|  | 93 | header_libs: [ | 
|  | 94 | "libinputflinger_headers", | 
|  | 95 | ], | 
|  | 96 |  | 
|  | 97 | export_header_lib_headers: [ | 
|  | 98 | "libinputflinger_headers", | 
|  | 99 | ], | 
| Prabir Pradhan | 29c9533 | 2018-11-14 20:14:11 -0800 | [diff] [blame] | 100 | } | 
|  | 101 |  | 
|  | 102 | cc_library_shared { | 
|  | 103 | name: "libinputflinger_base", | 
| Siarhei Vishniakou | 61291d4 | 2019-02-11 18:13:20 -0800 | [diff] [blame] | 104 | defaults: ["inputflinger_defaults"], | 
| Prabir Pradhan | 29c9533 | 2018-11-14 20:14:11 -0800 | [diff] [blame] | 105 |  | 
| Prabir Pradhan | 29c9533 | 2018-11-14 20:14:11 -0800 | [diff] [blame] | 106 | srcs: [ | 
|  | 107 | "InputListener.cpp", | 
|  | 108 | "InputReaderBase.cpp", | 
|  | 109 | ], | 
|  | 110 |  | 
|  | 111 | shared_libs: [ | 
|  | 112 | "libbase", | 
|  | 113 | "libinput", | 
|  | 114 | "liblog", | 
|  | 115 | "libutils", | 
|  | 116 | ], | 
|  | 117 |  | 
|  | 118 | header_libs: [ | 
|  | 119 | "libinputflinger_headers", | 
|  | 120 | ], | 
|  | 121 |  | 
|  | 122 | export_header_lib_headers: [ | 
|  | 123 | "libinputflinger_headers", | 
|  | 124 | ], | 
| Colin Cross | 45a1b9c | 2017-04-19 16:56:46 -0700 | [diff] [blame] | 125 | } | 
|  | 126 |  | 
| Prabir Pradhan | f93562f | 2018-11-29 12:13:37 -0800 | [diff] [blame] | 127 | cc_library_shared { | 
|  | 128 | name: "libinputreporter", | 
| Siarhei Vishniakou | 61291d4 | 2019-02-11 18:13:20 -0800 | [diff] [blame] | 129 | defaults: ["inputflinger_defaults"], | 
| Prabir Pradhan | f93562f | 2018-11-29 12:13:37 -0800 | [diff] [blame] | 130 |  | 
|  | 131 | srcs: [ | 
|  | 132 | "InputReporter.cpp", | 
|  | 133 | ], | 
|  | 134 |  | 
|  | 135 | shared_libs: [ | 
| Prabir Pradhan | f93562f | 2018-11-29 12:13:37 -0800 | [diff] [blame] | 136 | "liblog", | 
|  | 137 | "libutils", | 
|  | 138 | ], | 
|  | 139 |  | 
|  | 140 | header_libs: [ | 
|  | 141 | "libinputflinger_headers", | 
|  | 142 | ], | 
|  | 143 |  | 
|  | 144 | export_header_lib_headers: [ | 
|  | 145 | "libinputflinger_headers", | 
|  | 146 | ], | 
| Prabir Pradhan | f93562f | 2018-11-29 12:13:37 -0800 | [diff] [blame] | 147 | } | 
|  | 148 |  | 
| Colin Cross | 45a1b9c | 2017-04-19 16:56:46 -0700 | [diff] [blame] | 149 | subdirs = [ | 
|  | 150 | "host", | 
|  | 151 | "tests", | 
|  | 152 | ] |