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", |
Siarhei Vishniakou | 9ffab0c | 2018-11-08 19:54:22 -0800 | [diff] [blame] | 79 | "libstatslog", |
| 80 | "libutils", |
Prabir Pradhan | 29c9533 | 2018-11-14 20:14:11 -0800 | [diff] [blame] | 81 | ], |
| 82 | |
| 83 | header_libs: [ |
| 84 | "libinputflinger_headers", |
| 85 | ], |
| 86 | |
| 87 | export_header_lib_headers: [ |
| 88 | "libinputflinger_headers", |
| 89 | ], |
| 90 | |
| 91 | cflags: [ |
| 92 | "-Wall", |
| 93 | "-Wextra", |
| 94 | "-Werror", |
| 95 | "-Wno-unused-parameter", |
| 96 | ], |
| 97 | } |
| 98 | |
| 99 | cc_library_shared { |
| 100 | name: "libinputflinger_base", |
| 101 | |
Prabir Pradhan | 29c9533 | 2018-11-14 20:14:11 -0800 | [diff] [blame] | 102 | srcs: [ |
| 103 | "InputListener.cpp", |
| 104 | "InputReaderBase.cpp", |
| 105 | ], |
| 106 | |
| 107 | shared_libs: [ |
| 108 | "libbase", |
| 109 | "libinput", |
| 110 | "liblog", |
| 111 | "libutils", |
| 112 | ], |
| 113 | |
| 114 | header_libs: [ |
| 115 | "libinputflinger_headers", |
| 116 | ], |
| 117 | |
| 118 | export_header_lib_headers: [ |
| 119 | "libinputflinger_headers", |
| 120 | ], |
| 121 | |
| 122 | cflags: [ |
| 123 | "-Wall", |
| 124 | "-Wextra", |
| 125 | "-Werror", |
| 126 | "-Wno-unused-parameter", |
| 127 | ], |
Colin Cross | 45a1b9c | 2017-04-19 16:56:46 -0700 | [diff] [blame] | 128 | } |
| 129 | |
Prabir Pradhan | f93562f | 2018-11-29 12:13:37 -0800 | [diff] [blame] | 130 | cc_library_shared { |
| 131 | name: "libinputreporter", |
| 132 | |
| 133 | srcs: [ |
| 134 | "InputReporter.cpp", |
| 135 | ], |
| 136 | |
| 137 | shared_libs: [ |
| 138 | "libbase", |
| 139 | "liblog", |
| 140 | "libutils", |
| 141 | ], |
| 142 | |
| 143 | header_libs: [ |
| 144 | "libinputflinger_headers", |
| 145 | ], |
| 146 | |
| 147 | export_header_lib_headers: [ |
| 148 | "libinputflinger_headers", |
| 149 | ], |
| 150 | |
| 151 | cflags: [ |
| 152 | "-Wall", |
| 153 | "-Wextra", |
| 154 | "-Werror", |
| 155 | "-Wno-unused-parameter", |
| 156 | ], |
| 157 | } |
| 158 | |
Colin Cross | 45a1b9c | 2017-04-19 16:56:46 -0700 | [diff] [blame] | 159 | subdirs = [ |
| 160 | "host", |
| 161 | "tests", |
| 162 | ] |