blob: 8a62a0ce47819ef07ff32403aae431ef92645043 [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",
Garfield Tane4fc0102019-09-11 13:16:25 -070033 "dispatcher/InputDispatcher.cpp",
Colin Cross45a1b9c2017-04-19 16:56:46 -070034 "InputManager.cpp",
Colin Cross45a1b9c2017-04-19 16:56:46 -070035 ],
36
37 shared_libs: [
Siarhei Vishniakou473174e2017-12-27 16:44:42 -080038 "android.hardware.input.classifier@1.0",
Siarhei Vishniakou61291d42019-02-11 18:13:20 -080039 "libbase",
Prabir Pradhan29c95332018-11-14 20:14:11 -080040 "libinputflinger_base",
Prabir Pradhanf93562f2018-11-29 12:13:37 -080041 "libinputreporter",
Prabir Pradhan29c95332018-11-14 20:14:11 -080042 "libinputreader",
Colin Cross45a1b9c2017-04-19 16:56:46 -070043 "libbinder",
Colin Cross45a1b9c2017-04-19 16:56:46 -070044 "libcutils",
Siarhei Vishniakou473174e2017-12-27 16:44:42 -080045 "libhidlbase",
Colin Cross45a1b9c2017-04-19 16:56:46 -070046 "libinput",
47 "liblog",
48 "libutils",
49 "libui",
Siarhei Vishniakou473174e2017-12-27 16:44:42 -080050 "server_configurable_flags",
Colin Cross45a1b9c2017-04-19 16:56:46 -070051 ],
52
53 cflags: [
Siarhei Vishniakou473174e2017-12-27 16:44:42 -080054 // TODO(b/23084678): Move inputflinger to its own process and mark it hidden
Colin Cross45a1b9c2017-04-19 16:56:46 -070055 //-fvisibility=hidden
56 ],
57
Prabir Pradhan29c95332018-11-14 20:14:11 -080058 export_include_dirs: [
59 ".",
60 "include",
Garfield Tane4fc0102019-09-11 13:16:25 -070061 "dispatcher",
Prabir Pradhan29c95332018-11-14 20:14:11 -080062 ],
63
64}
65
Prabir Pradhan29c95332018-11-14 20:14:11 -080066cc_library_headers {
Siarhei Vishniakou61291d42019-02-11 18:13:20 -080067 name: "libinputflinger_headers",
68 export_include_dirs: ["include"],
Prabir Pradhan29c95332018-11-14 20:14:11 -080069}
70
71cc_library_shared {
72 name: "libinputreader",
Siarhei Vishniakou61291d42019-02-11 18:13:20 -080073 defaults: ["inputflinger_defaults"],
Prabir Pradhan29c95332018-11-14 20:14:11 -080074
Prabir Pradhan29c95332018-11-14 20:14:11 -080075 srcs: [
76 "EventHub.cpp",
77 "InputReader.cpp",
78 "InputReaderFactory.cpp",
Siarhei Vishniakou22c88462018-12-13 19:34:53 -080079 "TouchVideoDevice.cpp",
Prabir Pradhan29c95332018-11-14 20:14:11 -080080 ],
81
82 shared_libs: [
Prabir Pradhan29c95332018-11-14 20:14:11 -080083 "libbase",
Siarhei Vishniakou61291d42019-02-11 18:13:20 -080084 "libinputflinger_base",
Prabir Pradhan29c95332018-11-14 20:14:11 -080085 "libcrypto",
86 "libcutils",
87 "libinput",
88 "liblog",
Prabir Pradhan29c95332018-11-14 20:14:11 -080089 "libui",
Siarhei Vishniakou61291d42019-02-11 18:13:20 -080090 "libutils",
Prabir Pradhan29c95332018-11-14 20:14:11 -080091 "libhardware_legacy",
Siarhei Vishniakou9ffab0c2018-11-08 19:54:22 -080092 "libstatslog",
Prabir Pradhan29c95332018-11-14 20:14:11 -080093 ],
94
95 header_libs: [
96 "libinputflinger_headers",
97 ],
98
99 export_header_lib_headers: [
100 "libinputflinger_headers",
101 ],
Prabir Pradhan29c95332018-11-14 20:14:11 -0800102}
103
104cc_library_shared {
105 name: "libinputflinger_base",
Siarhei Vishniakou61291d42019-02-11 18:13:20 -0800106 defaults: ["inputflinger_defaults"],
Prabir Pradhan29c95332018-11-14 20:14:11 -0800107
Prabir Pradhan29c95332018-11-14 20:14:11 -0800108 srcs: [
109 "InputListener.cpp",
110 "InputReaderBase.cpp",
111 ],
112
113 shared_libs: [
114 "libbase",
115 "libinput",
116 "liblog",
117 "libutils",
118 ],
119
120 header_libs: [
121 "libinputflinger_headers",
122 ],
123
124 export_header_lib_headers: [
125 "libinputflinger_headers",
126 ],
Colin Cross45a1b9c2017-04-19 16:56:46 -0700127}
128
Prabir Pradhanf93562f2018-11-29 12:13:37 -0800129cc_library_shared {
130 name: "libinputreporter",
Siarhei Vishniakou61291d42019-02-11 18:13:20 -0800131 defaults: ["inputflinger_defaults"],
Prabir Pradhanf93562f2018-11-29 12:13:37 -0800132
133 srcs: [
134 "InputReporter.cpp",
135 ],
136
137 shared_libs: [
Prabir Pradhanf93562f2018-11-29 12:13:37 -0800138 "liblog",
139 "libutils",
140 ],
141
142 header_libs: [
143 "libinputflinger_headers",
144 ],
145
146 export_header_lib_headers: [
147 "libinputflinger_headers",
148 ],
Prabir Pradhanf93562f2018-11-29 12:13:37 -0800149}
150
Colin Cross45a1b9c2017-04-19 16:56:46 -0700151subdirs = [
152 "host",
153 "tests",
154]