blob: 1fbc6bf1930d1d6abc9e4a58fa193f7e3bad209f [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",
65 ],
66
67 shared_libs: [
68 "libinputflinger_base",
69 "libbase",
70 "libcrypto",
71 "libcutils",
72 "libinput",
73 "liblog",
74 "libutils",
75 "libui",
76 "libhardware_legacy",
77 "libutils"
78 ],
79
80 header_libs: [
81 "libinputflinger_headers",
82 ],
83
84 export_header_lib_headers: [
85 "libinputflinger_headers",
86 ],
87
88 cflags: [
89 "-Wall",
90 "-Wextra",
91 "-Werror",
92 "-Wno-unused-parameter",
93 ],
94}
95
96cc_library_shared {
97 name: "libinputflinger_base",
98
Prabir Pradhan29c95332018-11-14 20:14:11 -080099 srcs: [
100 "InputListener.cpp",
101 "InputReaderBase.cpp",
102 ],
103
104 shared_libs: [
105 "libbase",
106 "libinput",
107 "liblog",
108 "libutils",
109 ],
110
111 header_libs: [
112 "libinputflinger_headers",
113 ],
114
115 export_header_lib_headers: [
116 "libinputflinger_headers",
117 ],
118
119 cflags: [
120 "-Wall",
121 "-Wextra",
122 "-Werror",
123 "-Wno-unused-parameter",
124 ],
Colin Cross45a1b9c2017-04-19 16:56:46 -0700125}
126
127subdirs = [
128 "host",
129 "tests",
130]