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