blob: d29d8dfda3f54c7ba3f5534ac2204df38de7d35d [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 ],
Prabir Pradhan9244aea2020-02-05 20:31:40 -080051 header_libs: [
52 "libinputdispatcher_headers",
53 ],
54}
Garfield Tane84e6f92019-08-29 17:28:41 -070055
Prabir Pradhan9244aea2020-02-05 20:31:40 -080056cc_library_static {
57 name: "libinputdispatcher",
58 defaults: [
59 "inputflinger_defaults",
60 "libinputdispatcher_defaults",
61 ],
62 shared_libs: [
63 // This should consist only of dependencies from inputflinger. Other dependencies should be
64 // in cc_defaults so that they are included in the tests.
65 "libinputreporter",
66 "libinputflinger_base",
67 ],
68 export_header_lib_headers: [
69 "libinputdispatcher_headers",
70 ],
Siarhei Vishniakou887b7d92020-06-18 00:43:02 +000071 logtags: ["EventLogTags.logtags"],
Garfield Tane84e6f92019-08-29 17:28:41 -070072}