blob: 843eb379d943ccbc1cabb8627d1de64d405b47be [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: [
Colin Cross45a1b9c2017-04-19 16:56:46 -070019 "InputDispatcher.cpp",
Colin Cross45a1b9c2017-04-19 16:56:46 -070020 "InputManager.cpp",
Colin Cross45a1b9c2017-04-19 16:56:46 -070021 ],
22
23 shared_libs: [
Prabir Pradhan29c95332018-11-14 20:14:11 -080024 "libinputflinger_base",
Prabir Pradhanf93562f2018-11-29 12:13:37 -080025 "libinputreporter",
Prabir Pradhan29c95332018-11-14 20:14:11 -080026 "libinputreader",
Siarhei Vishniakouf93fcf42017-11-22 16:00:14 -080027 "libbase",
Colin Cross45a1b9c2017-04-19 16:56:46 -070028 "libbinder",
Colin Cross45a1b9c2017-04-19 16:56:46 -070029 "libcutils",
30 "libinput",
31 "liblog",
32 "libutils",
33 "libui",
Colin Cross45a1b9c2017-04-19 16:56:46 -070034 ],
35
36 cflags: [
Siarhei Vishniakou5d83f602017-09-12 12:40:29 -070037 "-Wall",
38 "-Wextra",
39 "-Werror",
Colin Cross45a1b9c2017-04-19 16:56:46 -070040 "-Wno-unused-parameter",
41 // TODO: Move inputflinger to its own process and mark it hidden
42 //-fvisibility=hidden
43 ],
44
Prabir Pradhan29c95332018-11-14 20:14:11 -080045 export_include_dirs: [
46 ".",
47 "include",
48 ],
49
50}
51
52
53cc_library_headers {
54 name: "libinputflinger_headers",
55
56 export_include_dirs: ["include"],
57}
58
59cc_library_shared {
60 name: "libinputreader",
61
Prabir Pradhan29c95332018-11-14 20:14:11 -080062 srcs: [
63 "EventHub.cpp",
64 "InputReader.cpp",
65 "InputReaderFactory.cpp",
Siarhei Vishniakou22c88462018-12-13 19:34:53 -080066 "TouchVideoDevice.cpp",
Prabir Pradhan29c95332018-11-14 20:14:11 -080067 ],
68
69 shared_libs: [
70 "libinputflinger_base",
71 "libbase",
72 "libcrypto",
73 "libcutils",
74 "libinput",
75 "liblog",
76 "libutils",
77 "libui",
78 "libhardware_legacy",
79 "libutils"
80 ],
81
82 header_libs: [
83 "libinputflinger_headers",
84 ],
85
86 export_header_lib_headers: [
87 "libinputflinger_headers",
88 ],
89
90 cflags: [
91 "-Wall",
92 "-Wextra",
93 "-Werror",
94 "-Wno-unused-parameter",
95 ],
96}
97
98cc_library_shared {
99 name: "libinputflinger_base",
100
Prabir Pradhan29c95332018-11-14 20:14:11 -0800101 srcs: [
102 "InputListener.cpp",
103 "InputReaderBase.cpp",
104 ],
105
106 shared_libs: [
107 "libbase",
108 "libinput",
109 "liblog",
110 "libutils",
111 ],
112
113 header_libs: [
114 "libinputflinger_headers",
115 ],
116
117 export_header_lib_headers: [
118 "libinputflinger_headers",
119 ],
120
121 cflags: [
122 "-Wall",
123 "-Wextra",
124 "-Werror",
125 "-Wno-unused-parameter",
126 ],
Colin Cross45a1b9c2017-04-19 16:56:46 -0700127}
128
Prabir Pradhanf93562f2018-11-29 12:13:37 -0800129cc_library_shared {
130 name: "libinputreporter",
131
132 srcs: [
133 "InputReporter.cpp",
134 ],
135
136 shared_libs: [
137 "libbase",
138 "liblog",
139 "libutils",
140 ],
141
142 header_libs: [
143 "libinputflinger_headers",
144 ],
145
146 export_header_lib_headers: [
147 "libinputflinger_headers",
148 ],
149
150 cflags: [
151 "-Wall",
152 "-Wextra",
153 "-Werror",
154 "-Wno-unused-parameter",
155 ],
156}
157
Colin Cross45a1b9c2017-04-19 16:56:46 -0700158subdirs = [
159 "host",
160 "tests",
161]