blob: e3a237ef73970e64545ce2ceab3434555c08ebfc [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",
Siarhei Vishniakou9ffab0c2018-11-08 19:54:22 -080079 "libstatslog",
80 "libutils",
Prabir Pradhan29c95332018-11-14 20:14:11 -080081 ],
82
83 header_libs: [
84 "libinputflinger_headers",
85 ],
86
87 export_header_lib_headers: [
88 "libinputflinger_headers",
89 ],
90
91 cflags: [
92 "-Wall",
93 "-Wextra",
94 "-Werror",
95 "-Wno-unused-parameter",
96 ],
97}
98
99cc_library_shared {
100 name: "libinputflinger_base",
101
Prabir Pradhan29c95332018-11-14 20:14:11 -0800102 srcs: [
103 "InputListener.cpp",
104 "InputReaderBase.cpp",
105 ],
106
107 shared_libs: [
108 "libbase",
109 "libinput",
110 "liblog",
111 "libutils",
112 ],
113
114 header_libs: [
115 "libinputflinger_headers",
116 ],
117
118 export_header_lib_headers: [
119 "libinputflinger_headers",
120 ],
121
122 cflags: [
123 "-Wall",
124 "-Wextra",
125 "-Werror",
126 "-Wno-unused-parameter",
127 ],
Colin Cross45a1b9c2017-04-19 16:56:46 -0700128}
129
Prabir Pradhanf93562f2018-11-29 12:13:37 -0800130cc_library_shared {
131 name: "libinputreporter",
132
133 srcs: [
134 "InputReporter.cpp",
135 ],
136
137 shared_libs: [
138 "libbase",
139 "liblog",
140 "libutils",
141 ],
142
143 header_libs: [
144 "libinputflinger_headers",
145 ],
146
147 export_header_lib_headers: [
148 "libinputflinger_headers",
149 ],
150
151 cflags: [
152 "-Wall",
153 "-Wextra",
154 "-Werror",
155 "-Wno-unused-parameter",
156 ],
157}
158
Colin Cross45a1b9c2017-04-19 16:56:46 -0700159subdirs = [
160 "host",
161 "tests",
162]