blob: ab5c5ef99cc9401dad62b2c1543cb922c3b8f60e [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",
Siarhei Vishniakou31977182022-09-30 08:51:23 -070037 "DragState.cpp",
Garfield Tane84e6f92019-08-29 17:28:41 -070038 "Entry.cpp",
Vishnu Nairc519ff72021-01-21 08:23:08 -080039 "FocusResolver.cpp",
Garfield Tane84e6f92019-08-29 17:28:41 -070040 "InjectionState.cpp",
41 "InputDispatcher.cpp",
42 "InputDispatcherFactory.cpp",
Siarhei Vishniakouf2652122021-03-05 21:39:46 +000043 "InputEventTimeline.cpp",
Garfield Tane84e6f92019-08-29 17:28:41 -070044 "InputState.cpp",
45 "InputTarget.cpp",
Siarhei Vishniakoua04181f2021-03-26 05:56:49 +000046 "LatencyAggregator.cpp",
Siarhei Vishniakouf2652122021-03-05 21:39:46 +000047 "LatencyTracker.cpp",
Garfield Tane84e6f92019-08-29 17:28:41 -070048 "Monitor.cpp",
Siarhei Vishniakou6e1e9872022-11-08 17:51:35 -080049 "TouchedWindow.cpp",
Prabir Pradhan9244aea2020-02-05 20:31:40 -080050 "TouchState.cpp",
Garfield Tane84e6f92019-08-29 17:28:41 -070051 ],
Prabir Pradhan9244aea2020-02-05 20:31:40 -080052}
53
54cc_defaults {
55 name: "libinputdispatcher_defaults",
56 srcs: [":libinputdispatcher_sources"],
Garfield Tane84e6f92019-08-29 17:28:41 -070057 shared_libs: [
58 "libbase",
Gang Wang342c9272020-01-13 13:15:04 -050059 "libcrypto",
Garfield Tane84e6f92019-08-29 17:28:41 -070060 "libcutils",
Siarhei Vishniakou99b9d382021-04-01 08:03:41 +000061 "libkll",
Garfield Tane84e6f92019-08-29 17:28:41 -070062 "liblog",
Siarhei Vishniakou99b9d382021-04-01 08:03:41 +000063 "libprotobuf-cpp-lite",
Siarhei Vishniakoude4bf152019-08-16 11:12:52 -050064 "libstatslog",
Garfield Tane84e6f92019-08-29 17:28:41 -070065 "libutils",
Siarhei Vishniakoua04181f2021-03-26 05:56:49 +000066 "server_configurable_flags",
Garfield Tane84e6f92019-08-29 17:28:41 -070067 ],
chaviw09c8d2d2020-08-24 15:48:26 -070068 static_libs: [
69 "libattestation",
Siarhei Vishniakou31977182022-09-30 08:51:23 -070070 "libgui_window_info_static",
chaviw09c8d2d2020-08-24 15:48:26 -070071 ],
Siarhei Vishniakou31977182022-09-30 08:51:23 -070072 target: {
73 android: {
74 shared_libs: [
75 "libgui",
76 "libinput",
77 "libstatspull",
78 "libstatssocket",
79 ],
80 },
81 host: {
82 static_libs: [
83 "libinput",
84 "libstatspull",
85 "libstatssocket",
86 ],
87 },
88 },
Prabir Pradhan9244aea2020-02-05 20:31:40 -080089 header_libs: [
90 "libinputdispatcher_headers",
91 ],
92}
Garfield Tane84e6f92019-08-29 17:28:41 -070093
Prabir Pradhan9244aea2020-02-05 20:31:40 -080094cc_library_static {
95 name: "libinputdispatcher",
96 defaults: [
97 "inputflinger_defaults",
98 "libinputdispatcher_defaults",
99 ],
100 shared_libs: [
101 // This should consist only of dependencies from inputflinger. Other dependencies should be
102 // in cc_defaults so that they are included in the tests.
Prabir Pradhan9244aea2020-02-05 20:31:40 -0800103 "libinputflinger_base",
Siarhei Vishniakou31977182022-09-30 08:51:23 -0700104 "libinputreporter",
Prabir Pradhan9244aea2020-02-05 20:31:40 -0800105 ],
106 export_header_lib_headers: [
107 "libinputdispatcher_headers",
108 ],
Siarhei Vishniakou887b7d92020-06-18 00:43:02 +0000109 logtags: ["EventLogTags.logtags"],
Garfield Tane84e6f92019-08-29 17:28:41 -0700110}