blob: 0d8d34ff5d6f879e59770f9aaa387d80aab737c2 [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",
25 "libinputreader",
Siarhei Vishniakouf93fcf42017-11-22 16:00:14 -080026 "libbase",
Colin Cross45a1b9c2017-04-19 16:56:46 -070027 "libbinder",
Colin Cross45a1b9c2017-04-19 16:56:46 -070028 "libcutils",
29 "libinput",
30 "liblog",
31 "libutils",
32 "libui",
Colin Cross45a1b9c2017-04-19 16:56:46 -070033 ],
34
35 cflags: [
Siarhei Vishniakou5d83f602017-09-12 12:40:29 -070036 "-Wall",
37 "-Wextra",
38 "-Werror",
Colin Cross45a1b9c2017-04-19 16:56:46 -070039 "-Wno-unused-parameter",
40 // TODO: Move inputflinger to its own process and mark it hidden
41 //-fvisibility=hidden
42 ],
43
Prabir Pradhan29c95332018-11-14 20:14:11 -080044 export_include_dirs: [
45 ".",
46 "include",
47 ],
48
49}
50
51
52cc_library_headers {
53 name: "libinputflinger_headers",
54
55 export_include_dirs: ["include"],
56}
57
58cc_library_shared {
59 name: "libinputreader",
60
Prabir Pradhan29c95332018-11-14 20:14:11 -080061 srcs: [
62 "EventHub.cpp",
63 "InputReader.cpp",
64 "InputReaderFactory.cpp",
Siarhei Vishniakou22c88462018-12-13 19:34:53 -080065 "TouchVideoDevice.cpp",
Prabir Pradhan29c95332018-11-14 20:14:11 -080066 ],
67
68 shared_libs: [
69 "libinputflinger_base",
70 "libbase",
71 "libcrypto",
72 "libcutils",
73 "libinput",
74 "liblog",
75 "libutils",
76 "libui",
77 "libhardware_legacy",
78 "libutils"
79 ],
80
81 header_libs: [
82 "libinputflinger_headers",
83 ],
84
85 export_header_lib_headers: [
86 "libinputflinger_headers",
87 ],
88
89 cflags: [
90 "-Wall",
91 "-Wextra",
92 "-Werror",
93 "-Wno-unused-parameter",
94 ],
95}
96
97cc_library_shared {
98 name: "libinputflinger_base",
99
Prabir Pradhan29c95332018-11-14 20:14:11 -0800100 srcs: [
101 "InputListener.cpp",
102 "InputReaderBase.cpp",
103 ],
104
105 shared_libs: [
106 "libbase",
107 "libinput",
108 "liblog",
109 "libutils",
110 ],
111
112 header_libs: [
113 "libinputflinger_headers",
114 ],
115
116 export_header_lib_headers: [
117 "libinputflinger_headers",
118 ],
119
120 cflags: [
121 "-Wall",
122 "-Wextra",
123 "-Werror",
124 "-Wno-unused-parameter",
125 ],
Colin Cross45a1b9c2017-04-19 16:56:46 -0700126}
127
128subdirs = [
129 "host",
130 "tests",
131]