blob: da4e42f4fe15a786df13b38e2e43f59b7ae31598 [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 {
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 Pradhan9244aea2020-02-05 20:31:40 -080024cc_library_headers {
25 name: "libinputdispatcher_headers",
Siarhei Vishniakou31977182022-09-30 08:51:23 -070026 host_supported: true,
Prabir Pradhan9244aea2020-02-05 20:31:40 -080027 export_include_dirs: [
28 "include",
29 ],
30}
31
32filegroup {
33 name: "libinputdispatcher_sources",
Garfield Tane84e6f92019-08-29 17:28:41 -070034 srcs: [
Siarhei Vishniakoue4623042020-03-25 16:16:40 -070035 "AnrTracker.cpp",
Garfield Tane84e6f92019-08-29 17:28:41 -070036 "Connection.cpp",
Prabir Pradhan65613802023-02-22 23:36:58 +000037 "DebugConfig.cpp",
Siarhei Vishniakou31977182022-09-30 08:51:23 -070038 "DragState.cpp",
Garfield Tane84e6f92019-08-29 17:28:41 -070039 "Entry.cpp",
Vishnu Nairc519ff72021-01-21 08:23:08 -080040 "FocusResolver.cpp",
Garfield Tane84e6f92019-08-29 17:28:41 -070041 "InjectionState.cpp",
42 "InputDispatcher.cpp",
43 "InputDispatcherFactory.cpp",
Siarhei Vishniakouf2652122021-03-05 21:39:46 +000044 "InputEventTimeline.cpp",
Garfield Tane84e6f92019-08-29 17:28:41 -070045 "InputState.cpp",
46 "InputTarget.cpp",
Siarhei Vishniakoua04181f2021-03-26 05:56:49 +000047 "LatencyAggregator.cpp",
Siarhei Vishniakouf2652122021-03-05 21:39:46 +000048 "LatencyTracker.cpp",
Garfield Tane84e6f92019-08-29 17:28:41 -070049 "Monitor.cpp",
Siarhei Vishniakou6e1e9872022-11-08 17:51:35 -080050 "TouchedWindow.cpp",
Prabir Pradhan9244aea2020-02-05 20:31:40 -080051 "TouchState.cpp",
Garfield Tane84e6f92019-08-29 17:28:41 -070052 ],
Prabir Pradhan9244aea2020-02-05 20:31:40 -080053}
54
55cc_defaults {
56 name: "libinputdispatcher_defaults",
57 srcs: [":libinputdispatcher_sources"],
Garfield Tane84e6f92019-08-29 17:28:41 -070058 shared_libs: [
59 "libbase",
Gang Wang342c9272020-01-13 13:15:04 -050060 "libcrypto",
Garfield Tane84e6f92019-08-29 17:28:41 -070061 "libcutils",
Siarhei Vishniakou99b9d382021-04-01 08:03:41 +000062 "libkll",
Garfield Tane84e6f92019-08-29 17:28:41 -070063 "liblog",
Siarhei Vishniakou99b9d382021-04-01 08:03:41 +000064 "libprotobuf-cpp-lite",
Siarhei Vishniakoude4bf152019-08-16 11:12:52 -050065 "libstatslog",
Garfield Tane84e6f92019-08-29 17:28:41 -070066 "libutils",
Siarhei Vishniakoua04181f2021-03-26 05:56:49 +000067 "server_configurable_flags",
Garfield Tane84e6f92019-08-29 17:28:41 -070068 ],
chaviw09c8d2d2020-08-24 15:48:26 -070069 static_libs: [
70 "libattestation",
Siarhei Vishniakou31977182022-09-30 08:51:23 -070071 "libgui_window_info_static",
chaviw09c8d2d2020-08-24 15:48:26 -070072 ],
Siarhei Vishniakou31977182022-09-30 08:51:23 -070073 target: {
74 android: {
75 shared_libs: [
76 "libgui",
77 "libinput",
78 "libstatspull",
79 "libstatssocket",
80 ],
81 },
82 host: {
83 static_libs: [
84 "libinput",
85 "libstatspull",
86 "libstatssocket",
87 ],
88 },
89 },
Prabir Pradhan9244aea2020-02-05 20:31:40 -080090 header_libs: [
91 "libinputdispatcher_headers",
92 ],
93}
Garfield Tane84e6f92019-08-29 17:28:41 -070094
Prabir Pradhan9244aea2020-02-05 20:31:40 -080095cc_library_static {
96 name: "libinputdispatcher",
97 defaults: [
98 "inputflinger_defaults",
99 "libinputdispatcher_defaults",
100 ],
101 shared_libs: [
102 // This should consist only of dependencies from inputflinger. Other dependencies should be
103 // in cc_defaults so that they are included in the tests.
Prabir Pradhan9244aea2020-02-05 20:31:40 -0800104 "libinputflinger_base",
Siarhei Vishniakou31977182022-09-30 08:51:23 -0700105 "libinputreporter",
Prabir Pradhan9244aea2020-02-05 20:31:40 -0800106 ],
107 export_header_lib_headers: [
108 "libinputdispatcher_headers",
109 ],
Siarhei Vishniakou887b7d92020-06-18 00:43:02 +0000110 logtags: ["EventLogTags.logtags"],
Garfield Tane84e6f92019-08-29 17:28:41 -0700111}