blob: f6b5935bcf252fece827adf0e705847526a6b251 [file] [log] [blame]
Colin Cross45a1b9c2017-04-19 16:56:46 -07001// Copyright (C) 2013 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
Siarhei Vishniakou61291d42019-02-11 18:13:20 -080015cc_defaults {
16 name: "inputflinger_defaults",
17 cflags: [
18 "-Wall",
19 "-Wextra",
20 "-Werror",
21 "-Wno-unused-parameter",
22 "-Wthread-safety",
23 ],
24}
25
Colin Cross45a1b9c2017-04-19 16:56:46 -070026cc_library_shared {
27 name: "libinputflinger",
Siarhei Vishniakou61291d42019-02-11 18:13:20 -080028 defaults: ["inputflinger_defaults"],
Colin Cross45a1b9c2017-04-19 16:56:46 -070029
30 srcs: [
Siarhei Vishniakou473174e2017-12-27 16:44:42 -080031 "InputClassifier.cpp",
Siarhei Vishniakoua47a4d42019-05-06 17:14:11 -070032 "InputClassifierConverter.cpp",
Colin Cross45a1b9c2017-04-19 16:56:46 -070033 "InputManager.cpp",
Colin Cross45a1b9c2017-04-19 16:56:46 -070034 ],
35
36 shared_libs: [
Siarhei Vishniakou473174e2017-12-27 16:44:42 -080037 "android.hardware.input.classifier@1.0",
Siarhei Vishniakou61291d42019-02-11 18:13:20 -080038 "libbase",
Prabir Pradhan29c95332018-11-14 20:14:11 -080039 "libinputflinger_base",
Prabir Pradhanf93562f2018-11-29 12:13:37 -080040 "libinputreporter",
Prabir Pradhan29c95332018-11-14 20:14:11 -080041 "libinputreader",
Colin Cross45a1b9c2017-04-19 16:56:46 -070042 "libbinder",
Colin Cross45a1b9c2017-04-19 16:56:46 -070043 "libcutils",
Siarhei Vishniakou473174e2017-12-27 16:44:42 -080044 "libhidlbase",
Colin Cross45a1b9c2017-04-19 16:56:46 -070045 "libinput",
46 "liblog",
Siarhei Vishniakoude4bf152019-08-16 11:12:52 -050047 "libstatslog",
Colin Cross45a1b9c2017-04-19 16:56:46 -070048 "libutils",
49 "libui",
Siarhei Vishniakou473174e2017-12-27 16:44:42 -080050 "server_configurable_flags",
Colin Cross45a1b9c2017-04-19 16:56:46 -070051 ],
52
Garfield Tane84e6f92019-08-29 17:28:41 -070053 static_libs: [
54 "libinputdispatcher",
55 ],
56
Colin Cross45a1b9c2017-04-19 16:56:46 -070057 cflags: [
Siarhei Vishniakou473174e2017-12-27 16:44:42 -080058 // TODO(b/23084678): Move inputflinger to its own process and mark it hidden
Colin Cross45a1b9c2017-04-19 16:56:46 -070059 //-fvisibility=hidden
60 ],
61
Prabir Pradhan29c95332018-11-14 20:14:11 -080062 export_include_dirs: [
63 ".",
64 "include",
65 ],
66
Garfield Tane84e6f92019-08-29 17:28:41 -070067 export_static_lib_headers: [
68 "libinputdispatcher",
69 ],
Prabir Pradhan29c95332018-11-14 20:14:11 -080070}
71
Prabir Pradhan29c95332018-11-14 20:14:11 -080072cc_library_headers {
Siarhei Vishniakou61291d42019-02-11 18:13:20 -080073 name: "libinputflinger_headers",
Garfield Tane84e6f92019-08-29 17:28:41 -070074 header_libs: ["libinputreporter_headers"],
Siarhei Vishniakou61291d42019-02-11 18:13:20 -080075 export_include_dirs: ["include"],
Garfield Tane84e6f92019-08-29 17:28:41 -070076 export_header_lib_headers: ["libinputreporter_headers"],
Prabir Pradhan29c95332018-11-14 20:14:11 -080077}
78
79cc_library_shared {
Prabir Pradhan29c95332018-11-14 20:14:11 -080080 name: "libinputflinger_base",
Siarhei Vishniakou61291d42019-02-11 18:13:20 -080081 defaults: ["inputflinger_defaults"],
Prabir Pradhan29c95332018-11-14 20:14:11 -080082
Prabir Pradhan29c95332018-11-14 20:14:11 -080083 srcs: [
84 "InputListener.cpp",
85 "InputReaderBase.cpp",
86 ],
87
88 shared_libs: [
89 "libbase",
90 "libinput",
91 "liblog",
92 "libutils",
93 ],
94
95 header_libs: [
96 "libinputflinger_headers",
97 ],
98
99 export_header_lib_headers: [
100 "libinputflinger_headers",
101 ],
Colin Cross45a1b9c2017-04-19 16:56:46 -0700102}
103
Colin Cross45a1b9c2017-04-19 16:56:46 -0700104subdirs = [
105 "host",
106 "tests",
107]