blob: b242eec465011665cc129e261417b01073ec0fb3 [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: [
25 "Connection.cpp",
26 "Entry.cpp",
27 "InjectionState.cpp",
28 "InputDispatcher.cpp",
29 "InputDispatcherFactory.cpp",
Garfield Tane84e6f92019-08-29 17:28:41 -070030 "InputState.cpp",
31 "InputTarget.cpp",
32 "Monitor.cpp",
Prabir Pradhan9244aea2020-02-05 20:31:40 -080033 "TouchState.cpp",
Garfield Tane84e6f92019-08-29 17:28:41 -070034 ],
Prabir Pradhan9244aea2020-02-05 20:31:40 -080035}
36
37cc_defaults {
38 name: "libinputdispatcher_defaults",
39 srcs: [":libinputdispatcher_sources"],
Garfield Tane84e6f92019-08-29 17:28:41 -070040 shared_libs: [
41 "libbase",
Gang Wang342c9272020-01-13 13:15:04 -050042 "libcrypto",
Garfield Tane84e6f92019-08-29 17:28:41 -070043 "libcutils",
44 "libinput",
Garfield Tane84e6f92019-08-29 17:28:41 -070045 "liblog",
Siarhei Vishniakoude4bf152019-08-16 11:12:52 -050046 "libstatslog",
Garfield Tane84e6f92019-08-29 17:28:41 -070047 "libui",
48 "libutils",
49 ],
Prabir Pradhan9244aea2020-02-05 20:31:40 -080050 header_libs: [
51 "libinputdispatcher_headers",
52 ],
53}
Garfield Tane84e6f92019-08-29 17:28:41 -070054
Prabir Pradhan9244aea2020-02-05 20:31:40 -080055cc_library_static {
56 name: "libinputdispatcher",
57 defaults: [
58 "inputflinger_defaults",
59 "libinputdispatcher_defaults",
60 ],
61 shared_libs: [
62 // This should consist only of dependencies from inputflinger. Other dependencies should be
63 // in cc_defaults so that they are included in the tests.
64 "libinputreporter",
65 "libinputflinger_base",
66 ],
67 export_header_lib_headers: [
68 "libinputdispatcher_headers",
69 ],
Siarhei Vishniakou7394eaa2020-04-09 11:16:18 -070070 logtags: ["EventLogTags.logtags"],
Garfield Tane84e6f92019-08-29 17:28:41 -070071}