blob: 7c249640505441d7ef56bc4fcbeaea4aa0786009 [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",
47 "libutils",
48 "libui",
Siarhei Vishniakou473174e2017-12-27 16:44:42 -080049 "server_configurable_flags",
Colin Cross45a1b9c2017-04-19 16:56:46 -070050 ],
51
Garfield Tan73007b62019-08-29 17:28:41 -070052 static_libs: [
53 "libinputdispatcher",
54 ],
55
Colin Cross45a1b9c2017-04-19 16:56:46 -070056 cflags: [
Siarhei Vishniakou473174e2017-12-27 16:44:42 -080057 // TODO(b/23084678): Move inputflinger to its own process and mark it hidden
Colin Cross45a1b9c2017-04-19 16:56:46 -070058 //-fvisibility=hidden
59 ],
60
Prabir Pradhan29c95332018-11-14 20:14:11 -080061 export_include_dirs: [
62 ".",
63 "include",
64 ],
65
Garfield Tan73007b62019-08-29 17:28:41 -070066 export_static_lib_headers: [
67 "libinputdispatcher",
68 ],
Prabir Pradhan29c95332018-11-14 20:14:11 -080069}
70
Prabir Pradhan29c95332018-11-14 20:14:11 -080071cc_library_headers {
Siarhei Vishniakou61291d42019-02-11 18:13:20 -080072 name: "libinputflinger_headers",
Garfield Tan73007b62019-08-29 17:28:41 -070073 header_libs: ["libinputreporter_headers"],
Siarhei Vishniakou61291d42019-02-11 18:13:20 -080074 export_include_dirs: ["include"],
Garfield Tan73007b62019-08-29 17:28:41 -070075 export_header_lib_headers: ["libinputreporter_headers"],
Prabir Pradhan29c95332018-11-14 20:14:11 -080076}
77
78cc_library_shared {
79 name: "libinputreader",
Siarhei Vishniakou61291d42019-02-11 18:13:20 -080080 defaults: ["inputflinger_defaults"],
Prabir Pradhan29c95332018-11-14 20:14:11 -080081
Prabir Pradhan29c95332018-11-14 20:14:11 -080082 srcs: [
83 "EventHub.cpp",
84 "InputReader.cpp",
85 "InputReaderFactory.cpp",
Siarhei Vishniakou22c88462018-12-13 19:34:53 -080086 "TouchVideoDevice.cpp",
Prabir Pradhan29c95332018-11-14 20:14:11 -080087 ],
88
89 shared_libs: [
Prabir Pradhan29c95332018-11-14 20:14:11 -080090 "libbase",
Siarhei Vishniakou61291d42019-02-11 18:13:20 -080091 "libinputflinger_base",
Prabir Pradhan29c95332018-11-14 20:14:11 -080092 "libcrypto",
93 "libcutils",
94 "libinput",
95 "liblog",
Prabir Pradhan29c95332018-11-14 20:14:11 -080096 "libui",
Siarhei Vishniakou61291d42019-02-11 18:13:20 -080097 "libutils",
Prabir Pradhan29c95332018-11-14 20:14:11 -080098 "libhardware_legacy",
Siarhei Vishniakou9ffab0c2018-11-08 19:54:22 -080099 "libstatslog",
Prabir Pradhan29c95332018-11-14 20:14:11 -0800100 ],
101
102 header_libs: [
103 "libinputflinger_headers",
104 ],
105
106 export_header_lib_headers: [
107 "libinputflinger_headers",
108 ],
Prabir Pradhan29c95332018-11-14 20:14:11 -0800109}
110
111cc_library_shared {
112 name: "libinputflinger_base",
Siarhei Vishniakou61291d42019-02-11 18:13:20 -0800113 defaults: ["inputflinger_defaults"],
Prabir Pradhan29c95332018-11-14 20:14:11 -0800114
Prabir Pradhan29c95332018-11-14 20:14:11 -0800115 srcs: [
116 "InputListener.cpp",
117 "InputReaderBase.cpp",
118 ],
119
120 shared_libs: [
121 "libbase",
122 "libinput",
123 "liblog",
124 "libutils",
125 ],
126
127 header_libs: [
128 "libinputflinger_headers",
129 ],
130
131 export_header_lib_headers: [
132 "libinputflinger_headers",
133 ],
Colin Cross45a1b9c2017-04-19 16:56:46 -0700134}
135
Colin Cross45a1b9c2017-04-19 16:56:46 -0700136subdirs = [
137 "host",
138 "tests",
139]