blob: e5b131e95e03a9d6a75d1befeeb3c0e9d24d238f [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
Prabir Pradhan9244aea2020-02-05 20:31:40 -080015cc_library_headers {
16 name: "libinputdispatcher_headers",
17 export_include_dirs: [
18 "include",
19 ],
20}
21
22filegroup {
23 name: "libinputdispatcher_sources",
Garfield Tane84e6f92019-08-29 17:28:41 -070024 srcs: [
Siarhei Vishniakoue4623042020-03-25 16:16:40 -070025 "AnrTracker.cpp",
Garfield Tane84e6f92019-08-29 17:28:41 -070026 "Connection.cpp",
27 "Entry.cpp",
Vishnu Nairc519ff72021-01-21 08:23:08 -080028 "FocusResolver.cpp",
Garfield Tane84e6f92019-08-29 17:28:41 -070029 "InjectionState.cpp",
30 "InputDispatcher.cpp",
31 "InputDispatcherFactory.cpp",
Garfield Tane84e6f92019-08-29 17:28:41 -070032 "InputState.cpp",
33 "InputTarget.cpp",
34 "Monitor.cpp",
Prabir Pradhan9244aea2020-02-05 20:31:40 -080035 "TouchState.cpp",
Garfield Tane84e6f92019-08-29 17:28:41 -070036 ],
Prabir Pradhan9244aea2020-02-05 20:31:40 -080037}
38
39cc_defaults {
40 name: "libinputdispatcher_defaults",
41 srcs: [":libinputdispatcher_sources"],
Garfield Tane84e6f92019-08-29 17:28:41 -070042 shared_libs: [
43 "libbase",
Gang Wang342c9272020-01-13 13:15:04 -050044 "libcrypto",
Garfield Tane84e6f92019-08-29 17:28:41 -070045 "libcutils",
46 "libinput",
Garfield Tane84e6f92019-08-29 17:28:41 -070047 "liblog",
Siarhei Vishniakoude4bf152019-08-16 11:12:52 -050048 "libstatslog",
Garfield Tane84e6f92019-08-29 17:28:41 -070049 "libui",
50 "libutils",
Siarhei Vishniakou2508b872020-12-03 16:33:53 -100051 "lib-platform-compat-native-api",
Garfield Tane84e6f92019-08-29 17:28:41 -070052 ],
chaviw09c8d2d2020-08-24 15:48:26 -070053 static_libs: [
54 "libattestation",
55 ],
Prabir Pradhan9244aea2020-02-05 20:31:40 -080056 header_libs: [
57 "libinputdispatcher_headers",
58 ],
59}
Garfield Tane84e6f92019-08-29 17:28:41 -070060
Prabir Pradhan9244aea2020-02-05 20:31:40 -080061cc_library_static {
62 name: "libinputdispatcher",
63 defaults: [
64 "inputflinger_defaults",
65 "libinputdispatcher_defaults",
66 ],
67 shared_libs: [
68 // This should consist only of dependencies from inputflinger. Other dependencies should be
69 // in cc_defaults so that they are included in the tests.
70 "libinputreporter",
71 "libinputflinger_base",
72 ],
73 export_header_lib_headers: [
74 "libinputdispatcher_headers",
75 ],
Siarhei Vishniakou887b7d92020-06-18 00:43:02 +000076 logtags: ["EventLogTags.logtags"],
Garfield Tane84e6f92019-08-29 17:28:41 -070077}