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