blob: 4a8b6139ee049e5ef582c76fa4a2e8dc0b6fce58 [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
Siarhei Vishniakoua62a8dd2018-06-08 21:17:33 +010018 cpp_std: "c++17",
19
Colin Cross45a1b9c2017-04-19 16:56:46 -070020 srcs: [
Colin Cross45a1b9c2017-04-19 16:56:46 -070021 "InputDispatcher.cpp",
Colin Cross45a1b9c2017-04-19 16:56:46 -070022 "InputManager.cpp",
Colin Cross45a1b9c2017-04-19 16:56:46 -070023 ],
24
25 shared_libs: [
Prabir Pradhan29c95332018-11-14 20:14:11 -080026 "libinputflinger_base",
27 "libinputreader",
Siarhei Vishniakouf93fcf42017-11-22 16:00:14 -080028 "libbase",
Colin Cross45a1b9c2017-04-19 16:56:46 -070029 "libbinder",
Colin Cross45a1b9c2017-04-19 16:56:46 -070030 "libcutils",
31 "libinput",
32 "liblog",
33 "libutils",
34 "libui",
Colin Cross45a1b9c2017-04-19 16:56:46 -070035 ],
36
37 cflags: [
Siarhei Vishniakou5d83f602017-09-12 12:40:29 -070038 "-Wall",
39 "-Wextra",
40 "-Werror",
Colin Cross45a1b9c2017-04-19 16:56:46 -070041 "-Wno-unused-parameter",
42 // TODO: Move inputflinger to its own process and mark it hidden
43 //-fvisibility=hidden
44 ],
45
Prabir Pradhan29c95332018-11-14 20:14:11 -080046 export_include_dirs: [
47 ".",
48 "include",
49 ],
50
51}
52
53
54cc_library_headers {
55 name: "libinputflinger_headers",
56
57 export_include_dirs: ["include"],
58}
59
60cc_library_shared {
61 name: "libinputreader",
62
63 cpp_std: "c++17",
64
65 srcs: [
66 "EventHub.cpp",
67 "InputReader.cpp",
68 "InputReaderFactory.cpp",
69 ],
70
71 shared_libs: [
72 "libinputflinger_base",
73 "libbase",
74 "libcrypto",
75 "libcutils",
76 "libinput",
77 "liblog",
78 "libutils",
79 "libui",
80 "libhardware_legacy",
81 "libutils"
82 ],
83
84 header_libs: [
85 "libinputflinger_headers",
86 ],
87
88 export_header_lib_headers: [
89 "libinputflinger_headers",
90 ],
91
92 cflags: [
93 "-Wall",
94 "-Wextra",
95 "-Werror",
96 "-Wno-unused-parameter",
97 ],
98}
99
100cc_library_shared {
101 name: "libinputflinger_base",
102
103 cpp_std: "c++17",
104
105 srcs: [
106 "InputListener.cpp",
107 "InputReaderBase.cpp",
108 ],
109
110 shared_libs: [
111 "libbase",
112 "libinput",
113 "liblog",
114 "libutils",
115 ],
116
117 header_libs: [
118 "libinputflinger_headers",
119 ],
120
121 export_header_lib_headers: [
122 "libinputflinger_headers",
123 ],
124
125 cflags: [
126 "-Wall",
127 "-Wextra",
128 "-Werror",
129 "-Wno-unused-parameter",
130 ],
Colin Cross45a1b9c2017-04-19 16:56:46 -0700131}
132
133subdirs = [
134 "host",
135 "tests",
136]