blob: 8dd4d1df633f7b4d21b2ce15b0c490470262c6f1 [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 "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",
61 ],
62
63}
64
Prabir Pradhan29c95332018-11-14 20:14:11 -080065cc_library_headers {
Siarhei Vishniakou61291d42019-02-11 18:13:20 -080066 name: "libinputflinger_headers",
67 export_include_dirs: ["include"],
Prabir Pradhan29c95332018-11-14 20:14:11 -080068}
69
70cc_library_shared {
71 name: "libinputreader",
Siarhei Vishniakou61291d42019-02-11 18:13:20 -080072 defaults: ["inputflinger_defaults"],
Prabir Pradhan29c95332018-11-14 20:14:11 -080073
Prabir Pradhan29c95332018-11-14 20:14:11 -080074 srcs: [
75 "EventHub.cpp",
76 "InputReader.cpp",
77 "InputReaderFactory.cpp",
Siarhei Vishniakou22c88462018-12-13 19:34:53 -080078 "TouchVideoDevice.cpp",
Prabir Pradhan29c95332018-11-14 20:14:11 -080079 ],
80
81 shared_libs: [
Prabir Pradhan29c95332018-11-14 20:14:11 -080082 "libbase",
Siarhei Vishniakou61291d42019-02-11 18:13:20 -080083 "libinputflinger_base",
Prabir Pradhan29c95332018-11-14 20:14:11 -080084 "libcrypto",
85 "libcutils",
86 "libinput",
87 "liblog",
Prabir Pradhan29c95332018-11-14 20:14:11 -080088 "libui",
Siarhei Vishniakou61291d42019-02-11 18:13:20 -080089 "libutils",
Prabir Pradhan29c95332018-11-14 20:14:11 -080090 "libhardware_legacy",
Siarhei Vishniakou9ffab0c2018-11-08 19:54:22 -080091 "libstatslog",
Prabir Pradhan29c95332018-11-14 20:14:11 -080092 ],
93
94 header_libs: [
95 "libinputflinger_headers",
96 ],
97
98 export_header_lib_headers: [
99 "libinputflinger_headers",
100 ],
Prabir Pradhan29c95332018-11-14 20:14:11 -0800101}
102
103cc_library_shared {
104 name: "libinputflinger_base",
Siarhei Vishniakou61291d42019-02-11 18:13:20 -0800105 defaults: ["inputflinger_defaults"],
Prabir Pradhan29c95332018-11-14 20:14:11 -0800106
Prabir Pradhan29c95332018-11-14 20:14:11 -0800107 srcs: [
108 "InputListener.cpp",
109 "InputReaderBase.cpp",
110 ],
111
112 shared_libs: [
113 "libbase",
114 "libinput",
115 "liblog",
116 "libutils",
117 ],
118
119 header_libs: [
120 "libinputflinger_headers",
121 ],
122
123 export_header_lib_headers: [
124 "libinputflinger_headers",
125 ],
Colin Cross45a1b9c2017-04-19 16:56:46 -0700126}
127
Prabir Pradhanf93562f2018-11-29 12:13:37 -0800128cc_library_shared {
129 name: "libinputreporter",
Siarhei Vishniakou61291d42019-02-11 18:13:20 -0800130 defaults: ["inputflinger_defaults"],
Prabir Pradhanf93562f2018-11-29 12:13:37 -0800131
132 srcs: [
133 "InputReporter.cpp",
134 ],
135
136 shared_libs: [
Prabir Pradhanf93562f2018-11-29 12:13:37 -0800137 "liblog",
138 "libutils",
139 ],
140
141 header_libs: [
142 "libinputflinger_headers",
143 ],
144
145 export_header_lib_headers: [
146 "libinputflinger_headers",
147 ],
Prabir Pradhanf93562f2018-11-29 12:13:37 -0800148}
149
Colin Cross45a1b9c2017-04-19 16:56:46 -0700150subdirs = [
151 "host",
152 "tests",
153]