blob: 40c24094ff7b2725e6a3473711b8e0cf1a02b915 [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 Badour3c538232021-02-12 21:26:48 -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",
37 "InjectionState.cpp",
38 "InputDispatcher.cpp",
39 "InputDispatcherFactory.cpp",
Garfield Tane84e6f92019-08-29 17:28:41 -070040 "InputState.cpp",
41 "InputTarget.cpp",
42 "Monitor.cpp",
Prabir Pradhan9244aea2020-02-05 20:31:40 -080043 "TouchState.cpp",
Garfield Tane84e6f92019-08-29 17:28:41 -070044 ],
Prabir Pradhan9244aea2020-02-05 20:31:40 -080045}
46
47cc_defaults {
48 name: "libinputdispatcher_defaults",
49 srcs: [":libinputdispatcher_sources"],
Garfield Tane84e6f92019-08-29 17:28:41 -070050 shared_libs: [
51 "libbase",
Gang Wang342c9272020-01-13 13:15:04 -050052 "libcrypto",
Garfield Tane84e6f92019-08-29 17:28:41 -070053 "libcutils",
54 "libinput",
Garfield Tane84e6f92019-08-29 17:28:41 -070055 "liblog",
Siarhei Vishniakoude4bf152019-08-16 11:12:52 -050056 "libstatslog",
Garfield Tane84e6f92019-08-29 17:28:41 -070057 "libui",
58 "libutils",
59 ],
Prabir Pradhan9244aea2020-02-05 20:31:40 -080060 header_libs: [
61 "libinputdispatcher_headers",
62 ],
63}
Garfield Tane84e6f92019-08-29 17:28:41 -070064
Prabir Pradhan9244aea2020-02-05 20:31:40 -080065cc_library_static {
66 name: "libinputdispatcher",
67 defaults: [
68 "inputflinger_defaults",
69 "libinputdispatcher_defaults",
70 ],
71 shared_libs: [
72 // This should consist only of dependencies from inputflinger. Other dependencies should be
73 // in cc_defaults so that they are included in the tests.
74 "libinputreporter",
75 "libinputflinger_base",
76 ],
77 export_header_lib_headers: [
78 "libinputdispatcher_headers",
79 ],
Garfield Tane84e6f92019-08-29 17:28:41 -070080}