blob: a9b594c87990926bb71be0669fa82b53bc0af2fc [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",
26 export_include_dirs: [
27 "include",
28 ],
29}
30
31filegroup {
32 name: "libinputdispatcher_sources",
Garfield Tane84e6f92019-08-29 17:28:41 -070033 srcs: [
Siarhei Vishniakoue4623042020-03-25 16:16:40 -070034 "AnrTracker.cpp",
Garfield Tane84e6f92019-08-29 17:28:41 -070035 "Connection.cpp",
36 "Entry.cpp",
Vishnu Nairc519ff72021-01-21 08:23:08 -080037 "FocusResolver.cpp",
Garfield Tane84e6f92019-08-29 17:28:41 -070038 "InjectionState.cpp",
39 "InputDispatcher.cpp",
40 "InputDispatcherFactory.cpp",
Siarhei Vishniakouf2652122021-03-05 21:39:46 +000041 "InputEventTimeline.cpp",
Garfield Tane84e6f92019-08-29 17:28:41 -070042 "InputState.cpp",
43 "InputTarget.cpp",
Siarhei Vishniakouf2652122021-03-05 21:39:46 +000044 "LatencyTracker.cpp",
Garfield Tane84e6f92019-08-29 17:28:41 -070045 "Monitor.cpp",
Prabir Pradhan9244aea2020-02-05 20:31:40 -080046 "TouchState.cpp",
arthurhung6d4bed92021-03-17 11:59:33 +080047 "DragState.cpp",
Garfield Tane84e6f92019-08-29 17:28:41 -070048 ],
Prabir Pradhan9244aea2020-02-05 20:31:40 -080049}
50
51cc_defaults {
52 name: "libinputdispatcher_defaults",
53 srcs: [":libinputdispatcher_sources"],
Garfield Tane84e6f92019-08-29 17:28:41 -070054 shared_libs: [
55 "libbase",
Gang Wang342c9272020-01-13 13:15:04 -050056 "libcrypto",
Garfield Tane84e6f92019-08-29 17:28:41 -070057 "libcutils",
58 "libinput",
Garfield Tane84e6f92019-08-29 17:28:41 -070059 "liblog",
Siarhei Vishniakoude4bf152019-08-16 11:12:52 -050060 "libstatslog",
Garfield Tane84e6f92019-08-29 17:28:41 -070061 "libui",
62 "libutils",
Siarhei Vishniakou2508b872020-12-03 16:33:53 -100063 "lib-platform-compat-native-api",
Garfield Tane84e6f92019-08-29 17:28:41 -070064 ],
chaviw09c8d2d2020-08-24 15:48:26 -070065 static_libs: [
66 "libattestation",
67 ],
Prabir Pradhan9244aea2020-02-05 20:31:40 -080068 header_libs: [
69 "libinputdispatcher_headers",
70 ],
71}
Garfield Tane84e6f92019-08-29 17:28:41 -070072
Prabir Pradhan9244aea2020-02-05 20:31:40 -080073cc_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 Vishniakou887b7d92020-06-18 00:43:02 +000088 logtags: ["EventLogTags.logtags"],
Garfield Tane84e6f92019-08-29 17:28:41 -070089}