Garfield Tan | e84e6f9 | 2019-08-29 17:28:41 -0700 | [diff] [blame] | 1 | // Copyright (C) 2019 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 | |
Bob Badour | 3306e49 | 2021-02-25 15:35:37 -0800 | [diff] [blame] | 15 | package { |
| 16 | // See: http://go/android-license-faq |
| 17 | // A large-scale-change added 'default_applicable_licenses' to import |
| 18 | // all of the 'license_kinds' from "frameworks_native_license" |
| 19 | // to get the below license kinds: |
| 20 | // SPDX-license-identifier-Apache-2.0 |
| 21 | default_applicable_licenses: ["frameworks_native_license"], |
| 22 | } |
| 23 | |
Prabir Pradhan | 9244aea | 2020-02-05 20:31:40 -0800 | [diff] [blame] | 24 | cc_library_headers { |
| 25 | name: "libinputdispatcher_headers", |
| 26 | export_include_dirs: [ |
| 27 | "include", |
| 28 | ], |
| 29 | } |
| 30 | |
| 31 | filegroup { |
| 32 | name: "libinputdispatcher_sources", |
Garfield Tan | e84e6f9 | 2019-08-29 17:28:41 -0700 | [diff] [blame] | 33 | srcs: [ |
Siarhei Vishniakou | e462304 | 2020-03-25 16:16:40 -0700 | [diff] [blame] | 34 | "AnrTracker.cpp", |
Garfield Tan | e84e6f9 | 2019-08-29 17:28:41 -0700 | [diff] [blame] | 35 | "Connection.cpp", |
| 36 | "Entry.cpp", |
Vishnu Nair | c519ff7 | 2021-01-21 08:23:08 -0800 | [diff] [blame] | 37 | "FocusResolver.cpp", |
Garfield Tan | e84e6f9 | 2019-08-29 17:28:41 -0700 | [diff] [blame] | 38 | "InjectionState.cpp", |
| 39 | "InputDispatcher.cpp", |
| 40 | "InputDispatcherFactory.cpp", |
Siarhei Vishniakou | f265212 | 2021-03-05 21:39:46 +0000 | [diff] [blame^] | 41 | "InputEventTimeline.cpp", |
Garfield Tan | e84e6f9 | 2019-08-29 17:28:41 -0700 | [diff] [blame] | 42 | "InputState.cpp", |
| 43 | "InputTarget.cpp", |
Siarhei Vishniakou | f265212 | 2021-03-05 21:39:46 +0000 | [diff] [blame^] | 44 | "LatencyTracker.cpp", |
Garfield Tan | e84e6f9 | 2019-08-29 17:28:41 -0700 | [diff] [blame] | 45 | "Monitor.cpp", |
Prabir Pradhan | 9244aea | 2020-02-05 20:31:40 -0800 | [diff] [blame] | 46 | "TouchState.cpp", |
arthurhung | 6d4bed9 | 2021-03-17 11:59:33 +0800 | [diff] [blame] | 47 | "DragState.cpp", |
Garfield Tan | e84e6f9 | 2019-08-29 17:28:41 -0700 | [diff] [blame] | 48 | ], |
Prabir Pradhan | 9244aea | 2020-02-05 20:31:40 -0800 | [diff] [blame] | 49 | } |
| 50 | |
| 51 | cc_defaults { |
| 52 | name: "libinputdispatcher_defaults", |
| 53 | srcs: [":libinputdispatcher_sources"], |
Garfield Tan | e84e6f9 | 2019-08-29 17:28:41 -0700 | [diff] [blame] | 54 | shared_libs: [ |
| 55 | "libbase", |
Gang Wang | 342c927 | 2020-01-13 13:15:04 -0500 | [diff] [blame] | 56 | "libcrypto", |
Garfield Tan | e84e6f9 | 2019-08-29 17:28:41 -0700 | [diff] [blame] | 57 | "libcutils", |
| 58 | "libinput", |
Garfield Tan | e84e6f9 | 2019-08-29 17:28:41 -0700 | [diff] [blame] | 59 | "liblog", |
Siarhei Vishniakou | de4bf15 | 2019-08-16 11:12:52 -0500 | [diff] [blame] | 60 | "libstatslog", |
Garfield Tan | e84e6f9 | 2019-08-29 17:28:41 -0700 | [diff] [blame] | 61 | "libui", |
| 62 | "libutils", |
Siarhei Vishniakou | 2508b87 | 2020-12-03 16:33:53 -1000 | [diff] [blame] | 63 | "lib-platform-compat-native-api", |
Garfield Tan | e84e6f9 | 2019-08-29 17:28:41 -0700 | [diff] [blame] | 64 | ], |
chaviw | 09c8d2d | 2020-08-24 15:48:26 -0700 | [diff] [blame] | 65 | static_libs: [ |
| 66 | "libattestation", |
| 67 | ], |
Prabir Pradhan | 9244aea | 2020-02-05 20:31:40 -0800 | [diff] [blame] | 68 | header_libs: [ |
| 69 | "libinputdispatcher_headers", |
| 70 | ], |
| 71 | } |
Garfield Tan | e84e6f9 | 2019-08-29 17:28:41 -0700 | [diff] [blame] | 72 | |
Prabir Pradhan | 9244aea | 2020-02-05 20:31:40 -0800 | [diff] [blame] | 73 | cc_library_static { |
| 74 | name: "libinputdispatcher", |
| 75 | defaults: [ |
| 76 | "inputflinger_defaults", |
| 77 | "libinputdispatcher_defaults", |
| 78 | ], |
| 79 | shared_libs: [ |
| 80 | // This should consist only of dependencies from inputflinger. Other dependencies should be |
| 81 | // in cc_defaults so that they are included in the tests. |
| 82 | "libinputreporter", |
| 83 | "libinputflinger_base", |
| 84 | ], |
| 85 | export_header_lib_headers: [ |
| 86 | "libinputdispatcher_headers", |
| 87 | ], |
Siarhei Vishniakou | 887b7d9 | 2020-06-18 00:43:02 +0000 | [diff] [blame] | 88 | logtags: ["EventLogTags.logtags"], |
Garfield Tan | e84e6f9 | 2019-08-29 17:28:41 -0700 | [diff] [blame] | 89 | } |