blob: f73d498bb279768b77abd72450076b9bad3af61b [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
15cc_library_shared {
16 name: "libinputflinger",
17
18 srcs: [
Siarhei Vishniakou473174e2017-12-27 16:44:42 -080019 "InputClassifier.cpp",
Colin Cross45a1b9c2017-04-19 16:56:46 -070020 "InputDispatcher.cpp",
Colin Cross45a1b9c2017-04-19 16:56:46 -070021 "InputManager.cpp",
Colin Cross45a1b9c2017-04-19 16:56:46 -070022 ],
23
24 shared_libs: [
Siarhei Vishniakou473174e2017-12-27 16:44:42 -080025 "android.hardware.input.classifier@1.0",
Prabir Pradhan29c95332018-11-14 20:14:11 -080026 "libinputflinger_base",
Prabir Pradhanf93562f2018-11-29 12:13:37 -080027 "libinputreporter",
Prabir Pradhan29c95332018-11-14 20:14:11 -080028 "libinputreader",
Siarhei Vishniakouf93fcf42017-11-22 16:00:14 -080029 "libbase",
Colin Cross45a1b9c2017-04-19 16:56:46 -070030 "libbinder",
Colin Cross45a1b9c2017-04-19 16:56:46 -070031 "libcutils",
Siarhei Vishniakou473174e2017-12-27 16:44:42 -080032 "libhidlbase",
Colin Cross45a1b9c2017-04-19 16:56:46 -070033 "libinput",
34 "liblog",
35 "libutils",
36 "libui",
Siarhei Vishniakou473174e2017-12-27 16:44:42 -080037 "server_configurable_flags",
Colin Cross45a1b9c2017-04-19 16:56:46 -070038 ],
39
40 cflags: [
Siarhei Vishniakou5d83f602017-09-12 12:40:29 -070041 "-Wall",
42 "-Wextra",
43 "-Werror",
Colin Cross45a1b9c2017-04-19 16:56:46 -070044 "-Wno-unused-parameter",
Siarhei Vishniakou473174e2017-12-27 16:44:42 -080045 // TODO(b/123097103): annotate InputDispatcher and uncomment the following line
46 //"-Wthread-safety",
47 // TODO(b/23084678): Move inputflinger to its own process and mark it hidden
Colin Cross45a1b9c2017-04-19 16:56:46 -070048 //-fvisibility=hidden
49 ],
50
Prabir Pradhan29c95332018-11-14 20:14:11 -080051 export_include_dirs: [
52 ".",
53 "include",
54 ],
55
56}
57
58
59cc_library_headers {
60 name: "libinputflinger_headers",
61
62 export_include_dirs: ["include"],
63}
64
65cc_library_shared {
66 name: "libinputreader",
67
Prabir Pradhan29c95332018-11-14 20:14:11 -080068 srcs: [
69 "EventHub.cpp",
70 "InputReader.cpp",
71 "InputReaderFactory.cpp",
Siarhei Vishniakou22c88462018-12-13 19:34:53 -080072 "TouchVideoDevice.cpp",
Prabir Pradhan29c95332018-11-14 20:14:11 -080073 ],
74
75 shared_libs: [
76 "libinputflinger_base",
77 "libbase",
78 "libcrypto",
79 "libcutils",
80 "libinput",
81 "liblog",
82 "libutils",
83 "libui",
84 "libhardware_legacy",
Siarhei Vishniakou9ffab0c2018-11-08 19:54:22 -080085 "libstatslog",
86 "libutils",
Prabir Pradhan29c95332018-11-14 20:14:11 -080087 ],
88
89 header_libs: [
90 "libinputflinger_headers",
91 ],
92
93 export_header_lib_headers: [
94 "libinputflinger_headers",
95 ],
96
97 cflags: [
98 "-Wall",
99 "-Wextra",
100 "-Werror",
101 "-Wno-unused-parameter",
102 ],
103}
104
105cc_library_shared {
106 name: "libinputflinger_base",
107
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 ],
127
128 cflags: [
129 "-Wall",
130 "-Wextra",
131 "-Werror",
132 "-Wno-unused-parameter",
133 ],
Colin Cross45a1b9c2017-04-19 16:56:46 -0700134}
135
Prabir Pradhanf93562f2018-11-29 12:13:37 -0800136cc_library_shared {
137 name: "libinputreporter",
138
139 srcs: [
140 "InputReporter.cpp",
141 ],
142
143 shared_libs: [
144 "libbase",
145 "liblog",
146 "libutils",
147 ],
148
149 header_libs: [
150 "libinputflinger_headers",
151 ],
152
153 export_header_lib_headers: [
154 "libinputflinger_headers",
155 ],
156
157 cflags: [
158 "-Wall",
159 "-Wextra",
160 "-Werror",
161 "-Wno-unused-parameter",
162 ],
163}
164
Colin Cross45a1b9c2017-04-19 16:56:46 -0700165subdirs = [
166 "host",
167 "tests",
168]