| 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 |  | 
| Prabir Pradhan | 9244aea | 2020-02-05 20:31:40 -0800 | [diff] [blame] | 15 | // Default flags to be used throughout all libraries in inputflinger. | 
| Siarhei Vishniakou | 61291d4 | 2019-02-11 18:13:20 -0800 | [diff] [blame] | 16 | cc_defaults { | 
 | 17 |     name: "inputflinger_defaults", | 
 | 18 |     cflags: [ | 
 | 19 |         "-Wall", | 
 | 20 |         "-Wextra", | 
 | 21 |         "-Werror", | 
 | 22 |         "-Wno-unused-parameter", | 
 | 23 |         "-Wthread-safety", | 
 | 24 |     ], | 
 | 25 | } | 
 | 26 |  | 
| Prabir Pradhan | 9244aea | 2020-02-05 20:31:40 -0800 | [diff] [blame] | 27 | ///////////////////////////////////////////////// | 
 | 28 | // libinputflinger | 
 | 29 | ///////////////////////////////////////////////// | 
| Colin Cross | 45a1b9c | 2017-04-19 16:56:46 -0700 | [diff] [blame] | 30 |  | 
| Prabir Pradhan | 9244aea | 2020-02-05 20:31:40 -0800 | [diff] [blame] | 31 | filegroup { | 
 | 32 |     name: "libinputflinger_sources", | 
| Colin Cross | 45a1b9c | 2017-04-19 16:56:46 -0700 | [diff] [blame] | 33 |     srcs: [ | 
| Siarhei Vishniakou | 473174e | 2017-12-27 16:44:42 -0800 | [diff] [blame] | 34 |         "InputClassifier.cpp", | 
| Siarhei Vishniakou | a47a4d4 | 2019-05-06 17:14:11 -0700 | [diff] [blame] | 35 |         "InputClassifierConverter.cpp", | 
| Colin Cross | 45a1b9c | 2017-04-19 16:56:46 -0700 | [diff] [blame] | 36 |         "InputManager.cpp", | 
| Colin Cross | 45a1b9c | 2017-04-19 16:56:46 -0700 | [diff] [blame] | 37 |     ], | 
| Prabir Pradhan | 9244aea | 2020-02-05 20:31:40 -0800 | [diff] [blame] | 38 | } | 
| Colin Cross | 45a1b9c | 2017-04-19 16:56:46 -0700 | [diff] [blame] | 39 |  | 
| Prabir Pradhan | 9244aea | 2020-02-05 20:31:40 -0800 | [diff] [blame] | 40 | cc_defaults { | 
 | 41 |     name: "libinputflinger_defaults", | 
 | 42 |     srcs: [":libinputflinger_sources"], | 
| Colin Cross | 45a1b9c | 2017-04-19 16:56:46 -0700 | [diff] [blame] | 43 |     shared_libs: [ | 
| Siarhei Vishniakou | 473174e | 2017-12-27 16:44:42 -0800 | [diff] [blame] | 44 |         "android.hardware.input.classifier@1.0", | 
| Siarhei Vishniakou | 61291d4 | 2019-02-11 18:13:20 -0800 | [diff] [blame] | 45 |         "libbase", | 
| Colin Cross | 45a1b9c | 2017-04-19 16:56:46 -0700 | [diff] [blame] | 46 |         "libbinder", | 
| Gang Wang | 342c927 | 2020-01-13 13:15:04 -0500 | [diff] [blame] | 47 |         "libcrypto", | 
| Colin Cross | 45a1b9c | 2017-04-19 16:56:46 -0700 | [diff] [blame] | 48 |         "libcutils", | 
| Siarhei Vishniakou | 473174e | 2017-12-27 16:44:42 -0800 | [diff] [blame] | 49 |         "libhidlbase", | 
| Colin Cross | 45a1b9c | 2017-04-19 16:56:46 -0700 | [diff] [blame] | 50 |         "libinput", | 
 | 51 |         "liblog", | 
| Siarhei Vishniakou | de4bf15 | 2019-08-16 11:12:52 -0500 | [diff] [blame] | 52 |         "libstatslog", | 
| Colin Cross | 45a1b9c | 2017-04-19 16:56:46 -0700 | [diff] [blame] | 53 |         "libutils", | 
 | 54 |         "libui", | 
| Colin Cross | 45a1b9c | 2017-04-19 16:56:46 -0700 | [diff] [blame] | 55 |     ], | 
| Prabir Pradhan | 9244aea | 2020-02-05 20:31:40 -0800 | [diff] [blame] | 56 | } | 
| Colin Cross | 45a1b9c | 2017-04-19 16:56:46 -0700 | [diff] [blame] | 57 |  | 
| Prabir Pradhan | 9244aea | 2020-02-05 20:31:40 -0800 | [diff] [blame] | 58 | cc_library_shared { | 
 | 59 |     name: "libinputflinger", | 
 | 60 |     defaults: [ | 
 | 61 |         "inputflinger_defaults", | 
 | 62 |         "libinputflinger_defaults", | 
| Garfield Tan | e84e6f9 | 2019-08-29 17:28:41 -0700 | [diff] [blame] | 63 |     ], | 
| Colin Cross | 45a1b9c | 2017-04-19 16:56:46 -0700 | [diff] [blame] | 64 |     cflags: [ | 
| Siarhei Vishniakou | 473174e | 2017-12-27 16:44:42 -0800 | [diff] [blame] | 65 |         // 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] | 66 |         //-fvisibility=hidden | 
 | 67 |     ], | 
| Prabir Pradhan | 9244aea | 2020-02-05 20:31:40 -0800 | [diff] [blame] | 68 |     shared_libs: [ | 
 | 69 |         // This should consist only of dependencies from inputflinger. Other dependencies should be | 
 | 70 |         // in cc_defaults so that they are included in the tests. | 
 | 71 |         "libinputflinger_base", | 
 | 72 |         "libinputreporter", | 
 | 73 |         "libinputreader", | 
 | 74 |     ], | 
 | 75 |     static_libs: [ | 
 | 76 |         "libinputdispatcher", | 
 | 77 |     ], | 
 | 78 |     export_static_lib_headers: [ | 
 | 79 |         "libinputdispatcher", | 
 | 80 |     ], | 
| Prabir Pradhan | 29c9533 | 2018-11-14 20:14:11 -0800 | [diff] [blame] | 81 |     export_include_dirs: [ | 
 | 82 |         ".", | 
 | 83 |         "include", | 
 | 84 |     ], | 
| Prabir Pradhan | 29c9533 | 2018-11-14 20:14:11 -0800 | [diff] [blame] | 85 | } | 
 | 86 |  | 
| Prabir Pradhan | 9244aea | 2020-02-05 20:31:40 -0800 | [diff] [blame] | 87 | ///////////////////////////////////////////////// | 
 | 88 | // libinputflinger_base | 
 | 89 | ///////////////////////////////////////////////// | 
 | 90 |  | 
| Prabir Pradhan | 29c9533 | 2018-11-14 20:14:11 -0800 | [diff] [blame] | 91 | cc_library_headers { | 
| Siarhei Vishniakou | 61291d4 | 2019-02-11 18:13:20 -0800 | [diff] [blame] | 92 |     name: "libinputflinger_headers", | 
 | 93 |     export_include_dirs: ["include"], | 
| Prabir Pradhan | 29c9533 | 2018-11-14 20:14:11 -0800 | [diff] [blame] | 94 | } | 
 | 95 |  | 
| Prabir Pradhan | 9244aea | 2020-02-05 20:31:40 -0800 | [diff] [blame] | 96 | filegroup { | 
 | 97 |     name: "libinputflinger_base_sources", | 
| Prabir Pradhan | 29c9533 | 2018-11-14 20:14:11 -0800 | [diff] [blame] | 98 |     srcs: [ | 
 | 99 |         "InputListener.cpp", | 
 | 100 |         "InputReaderBase.cpp", | 
| Prabir Pradhan | 5a57cff | 2019-10-31 18:40:33 -0700 | [diff] [blame] | 101 |         "InputThread.cpp", | 
| Prabir Pradhan | 29c9533 | 2018-11-14 20:14:11 -0800 | [diff] [blame] | 102 |     ], | 
| Prabir Pradhan | 9244aea | 2020-02-05 20:31:40 -0800 | [diff] [blame] | 103 | } | 
| Prabir Pradhan | 29c9533 | 2018-11-14 20:14:11 -0800 | [diff] [blame] | 104 |  | 
| Prabir Pradhan | 9244aea | 2020-02-05 20:31:40 -0800 | [diff] [blame] | 105 | cc_defaults { | 
 | 106 |     name: "libinputflinger_base_defaults", | 
 | 107 |     srcs: [":libinputflinger_base_sources"], | 
| Prabir Pradhan | 29c9533 | 2018-11-14 20:14:11 -0800 | [diff] [blame] | 108 |     shared_libs: [ | 
 | 109 |         "libbase", | 
| Garfield Tan | 1c7bc86 | 2020-01-28 13:24:04 -0800 | [diff] [blame] | 110 |         "libcutils", | 
| Prabir Pradhan | 29c9533 | 2018-11-14 20:14:11 -0800 | [diff] [blame] | 111 |         "libinput", | 
 | 112 |         "liblog", | 
 | 113 |         "libutils", | 
 | 114 |     ], | 
| Prabir Pradhan | 29c9533 | 2018-11-14 20:14:11 -0800 | [diff] [blame] | 115 |     header_libs: [ | 
 | 116 |         "libinputflinger_headers", | 
 | 117 |     ], | 
| Colin Cross | 45a1b9c | 2017-04-19 16:56:46 -0700 | [diff] [blame] | 118 | } | 
 | 119 |  | 
| Prabir Pradhan | 9244aea | 2020-02-05 20:31:40 -0800 | [diff] [blame] | 120 | cc_library_shared { | 
 | 121 |     name: "libinputflinger_base", | 
 | 122 |     defaults: [ | 
 | 123 |         "inputflinger_defaults", | 
 | 124 |         "libinputflinger_base_defaults", | 
 | 125 |     ], | 
 | 126 |     export_header_lib_headers: [ | 
 | 127 |         "libinputflinger_headers", | 
 | 128 |     ], | 
 | 129 | } |