blob: ff9aac996195ac020adcdf73b679cb6c29727402 [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",
28 "InjectionState.cpp",
29 "InputDispatcher.cpp",
30 "InputDispatcherFactory.cpp",
Garfield Tane84e6f92019-08-29 17:28:41 -070031 "InputState.cpp",
32 "InputTarget.cpp",
33 "Monitor.cpp",
Prabir Pradhan9244aea2020-02-05 20:31:40 -080034 "TouchState.cpp",
Garfield Tane84e6f92019-08-29 17:28:41 -070035 ],
Prabir Pradhan9244aea2020-02-05 20:31:40 -080036}
37
38cc_defaults {
39 name: "libinputdispatcher_defaults",
40 srcs: [":libinputdispatcher_sources"],
Garfield Tane84e6f92019-08-29 17:28:41 -070041 shared_libs: [
42 "libbase",
Gang Wang342c9272020-01-13 13:15:04 -050043 "libcrypto",
Garfield Tane84e6f92019-08-29 17:28:41 -070044 "libcutils",
45 "libinput",
Garfield Tane84e6f92019-08-29 17:28:41 -070046 "liblog",
Siarhei Vishniakoude4bf152019-08-16 11:12:52 -050047 "libstatslog",
Garfield Tane84e6f92019-08-29 17:28:41 -070048 "libui",
49 "libutils",
50 ],
chaviw09c8d2d2020-08-24 15:48:26 -070051 static_libs: [
52 "libattestation",
53 ],
Prabir Pradhan9244aea2020-02-05 20:31:40 -080054 header_libs: [
55 "libinputdispatcher_headers",
56 ],
57}
Garfield Tane84e6f92019-08-29 17:28:41 -070058
Prabir Pradhan9244aea2020-02-05 20:31:40 -080059cc_library_static {
60 name: "libinputdispatcher",
61 defaults: [
62 "inputflinger_defaults",
63 "libinputdispatcher_defaults",
64 ],
65 shared_libs: [
66 // This should consist only of dependencies from inputflinger. Other dependencies should be
67 // in cc_defaults so that they are included in the tests.
68 "libinputreporter",
69 "libinputflinger_base",
70 ],
71 export_header_lib_headers: [
72 "libinputdispatcher_headers",
73 ],
Siarhei Vishniakou887b7d92020-06-18 00:43:02 +000074 logtags: ["EventLogTags.logtags"],
Garfield Tane84e6f92019-08-29 17:28:41 -070075}