blob: 8b2b8432c37983344cfb781a7bf4db8fdbeddf3d [file] [log] [blame]
Garfield Tane84e6f92019-08-29 17:28:41 -07001// 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 Badour3306e492021-02-25 15:35:37 -080015package {
Aditya Choudharyb48ed1d2024-01-31 11:06:10 +000016 default_team: "trendy_team_input_framework",
Bob Badour3306e492021-02-25 15:35:37 -080017 // See: http://go/android-license-faq
18 // A large-scale-change added 'default_applicable_licenses' to import
19 // all of the 'license_kinds' from "frameworks_native_license"
20 // to get the below license kinds:
21 // SPDX-license-identifier-Apache-2.0
22 default_applicable_licenses: ["frameworks_native_license"],
23}
24
Prabir Pradhan9244aea2020-02-05 20:31:40 -080025cc_library_headers {
26 name: "libinputdispatcher_headers",
Siarhei Vishniakou31977182022-09-30 08:51:23 -070027 host_supported: true,
Prabir Pradhan9244aea2020-02-05 20:31:40 -080028 export_include_dirs: [
29 "include",
30 ],
31}
32
33filegroup {
34 name: "libinputdispatcher_sources",
Garfield Tane84e6f92019-08-29 17:28:41 -070035 srcs: [
Siarhei Vishniakoue4623042020-03-25 16:16:40 -070036 "AnrTracker.cpp",
Garfield Tane84e6f92019-08-29 17:28:41 -070037 "Connection.cpp",
Prabir Pradhan65613802023-02-22 23:36:58 +000038 "DebugConfig.cpp",
Siarhei Vishniakou31977182022-09-30 08:51:23 -070039 "DragState.cpp",
Garfield Tane84e6f92019-08-29 17:28:41 -070040 "Entry.cpp",
Vishnu Nairc519ff72021-01-21 08:23:08 -080041 "FocusResolver.cpp",
Garfield Tane84e6f92019-08-29 17:28:41 -070042 "InjectionState.cpp",
43 "InputDispatcher.cpp",
44 "InputDispatcherFactory.cpp",
Siarhei Vishniakouf2652122021-03-05 21:39:46 +000045 "InputEventTimeline.cpp",
Garfield Tane84e6f92019-08-29 17:28:41 -070046 "InputState.cpp",
47 "InputTarget.cpp",
Siarhei Vishniakoua04181f2021-03-26 05:56:49 +000048 "LatencyAggregator.cpp",
jioana24878b52024-09-10 10:13:27 +000049 "LatencyAggregatorWithHistograms.cpp",
Siarhei Vishniakouf2652122021-03-05 21:39:46 +000050 "LatencyTracker.cpp",
Garfield Tane84e6f92019-08-29 17:28:41 -070051 "Monitor.cpp",
Siarhei Vishniakou6e1e9872022-11-08 17:51:35 -080052 "TouchedWindow.cpp",
Prabir Pradhan9244aea2020-02-05 20:31:40 -080053 "TouchState.cpp",
Prabir Pradhandae52792023-12-15 07:36:40 +000054 "trace/*.cpp",
Garfield Tane84e6f92019-08-29 17:28:41 -070055 ],
Prabir Pradhan9244aea2020-02-05 20:31:40 -080056}
57
58cc_defaults {
59 name: "libinputdispatcher_defaults",
Prabir Pradhan6ef947a2024-06-10 20:00:51 +000060 srcs: [
61 ":libinputdispatcher_sources",
62 ],
Garfield Tane84e6f92019-08-29 17:28:41 -070063 shared_libs: [
64 "libbase",
Prabir Pradhanf4099452024-04-12 18:34:14 +000065 "libbinder",
66 "libbinder_ndk",
Gang Wang342c9272020-01-13 13:15:04 -050067 "libcrypto",
Garfield Tane84e6f92019-08-29 17:28:41 -070068 "libcutils",
Prabir Pradhan89f71192023-06-15 22:14:15 +000069 "libinput",
Siarhei Vishniakou99b9d382021-04-01 08:03:41 +000070 "libkll",
Garfield Tane84e6f92019-08-29 17:28:41 -070071 "liblog",
Siarhei Vishniakou99b9d382021-04-01 08:03:41 +000072 "libprotobuf-cpp-lite",
Siarhei Vishniakoude4bf152019-08-16 11:12:52 -050073 "libstatslog",
Garfield Tane84e6f92019-08-29 17:28:41 -070074 "libutils",
Vova Sharaienko75ffb262024-01-03 00:12:37 +000075 "libstatspull",
76 "libstatssocket",
Prabir Pradhanf4099452024-04-12 18:34:14 +000077 "packagemanager_aidl-cpp",
Siarhei Vishniakoua04181f2021-03-26 05:56:49 +000078 "server_configurable_flags",
Garfield Tane84e6f92019-08-29 17:28:41 -070079 ],
chaviw09c8d2d2020-08-24 15:48:26 -070080 static_libs: [
81 "libattestation",
Siarhei Vishniakou31977182022-09-30 08:51:23 -070082 "libgui_window_info_static",
Prabir Pradhandae52792023-12-15 07:36:40 +000083 "libperfetto_client_experimental",
Prabir Pradhan6ef947a2024-06-10 20:00:51 +000084 "perfetto_winscope_extensions_zero",
chaviw09c8d2d2020-08-24 15:48:26 -070085 ],
Siarhei Vishniakou31977182022-09-30 08:51:23 -070086 target: {
87 android: {
88 shared_libs: [
89 "libgui",
Siarhei Vishniakou31977182022-09-30 08:51:23 -070090 ],
91 },
92 },
Prabir Pradhan9244aea2020-02-05 20:31:40 -080093 header_libs: [
94 "libinputdispatcher_headers",
95 ],
96}
Garfield Tane84e6f92019-08-29 17:28:41 -070097
Prabir Pradhan9244aea2020-02-05 20:31:40 -080098cc_library_static {
99 name: "libinputdispatcher",
Siarhei Vishniakou90ee4782023-05-08 11:57:24 -0700100 host_supported: true,
Prabir Pradhan9244aea2020-02-05 20:31:40 -0800101 defaults: [
102 "inputflinger_defaults",
103 "libinputdispatcher_defaults",
104 ],
105 shared_libs: [
106 // This should consist only of dependencies from inputflinger. Other dependencies should be
107 // in cc_defaults so that they are included in the tests.
Prabir Pradhan9244aea2020-02-05 20:31:40 -0800108 "libinputflinger_base",
Siarhei Vishniakou31977182022-09-30 08:51:23 -0700109 "libinputreporter",
Prabir Pradhan9244aea2020-02-05 20:31:40 -0800110 ],
111 export_header_lib_headers: [
112 "libinputdispatcher_headers",
113 ],
Siarhei Vishniakou887b7d92020-06-18 00:43:02 +0000114 logtags: ["EventLogTags.logtags"],
Garfield Tane84e6f92019-08-29 17:28:41 -0700115}