blob: abda4ef45c3dfe2b5a2a146e358b7783b1448f03 [file] [log] [blame]
Prabir Pradhanda7c00c2019-08-29 14:12:42 -07001// Copyright (C) 2019 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_headers {
16 name: "libinputreader_headers",
Prabir Pradhan2770d242019-09-02 18:07:11 -070017 export_include_dirs: [
18 "include",
19 "mapper",
20 "mapper/accumulator",
21 ],
Prabir Pradhanda7c00c2019-08-29 14:12:42 -070022}
23
Prabir Pradhan9244aea2020-02-05 20:31:40 -080024filegroup {
25 name: "libinputreader_sources",
Prabir Pradhanda7c00c2019-08-29 14:12:42 -070026 srcs: [
27 "EventHub.cpp",
Prabir Pradhanbaa5c822019-08-30 15:27:05 -070028 "InputDevice.cpp",
Prabir Pradhan2770d242019-09-02 18:07:11 -070029 "mapper/accumulator/CursorButtonAccumulator.cpp",
30 "mapper/accumulator/CursorScrollAccumulator.cpp",
31 "mapper/accumulator/SingleTouchMotionAccumulator.cpp",
32 "mapper/accumulator/TouchButtonAccumulator.cpp",
33 "mapper/CursorInputMapper.cpp",
34 "mapper/ExternalStylusInputMapper.cpp",
35 "mapper/InputMapper.cpp",
36 "mapper/JoystickInputMapper.cpp",
37 "mapper/KeyboardInputMapper.cpp",
38 "mapper/MultiTouchInputMapper.cpp",
39 "mapper/RotaryEncoderInputMapper.cpp",
Chris Yef59a2f42020-10-16 12:55:26 -070040 "mapper/SensorInputMapper.cpp",
Prabir Pradhan2770d242019-09-02 18:07:11 -070041 "mapper/SingleTouchInputMapper.cpp",
42 "mapper/SwitchInputMapper.cpp",
43 "mapper/TouchInputMapper.cpp",
44 "mapper/VibratorInputMapper.cpp",
Prabir Pradhanda7c00c2019-08-29 14:12:42 -070045 "InputReader.cpp",
Prabir Pradhanda7c00c2019-08-29 14:12:42 -070046 "TouchVideoDevice.cpp",
Prabir Pradhanda7c00c2019-08-29 14:12:42 -070047 ],
Prabir Pradhan9244aea2020-02-05 20:31:40 -080048}
Prabir Pradhanda7c00c2019-08-29 14:12:42 -070049
Prabir Pradhan9244aea2020-02-05 20:31:40 -080050cc_defaults {
51 name: "libinputreader_defaults",
52 srcs: [":libinputreader_sources"],
Prabir Pradhanda7c00c2019-08-29 14:12:42 -070053 shared_libs: [
54 "libbase",
Siarhei Vishniakou7a522bf2019-09-24 12:46:29 +010055 "libcap",
Prabir Pradhanda7c00c2019-08-29 14:12:42 -070056 "libcrypto",
57 "libcutils",
58 "libinput",
59 "liblog",
60 "libui",
61 "libutils",
Prabir Pradhanda7c00c2019-08-29 14:12:42 -070062 ],
Prabir Pradhanda7c00c2019-08-29 14:12:42 -070063 header_libs: [
Prabir Pradhanda7c00c2019-08-29 14:12:42 -070064 "libinputreader_headers",
65 ],
Prabir Pradhan9244aea2020-02-05 20:31:40 -080066}
Prabir Pradhanda7c00c2019-08-29 14:12:42 -070067
Prabir Pradhan9244aea2020-02-05 20:31:40 -080068cc_library_shared {
69 name: "libinputreader",
70 defaults: [
71 "inputflinger_defaults",
72 "libinputreader_defaults"
73 ],
74 srcs: [
75 "InputReaderFactory.cpp",
76 ],
77 shared_libs: [
78 // This should consist only of dependencies from inputflinger. Other dependencies should be
79 // in cc_defaults so that they are included in the tests.
80 "libinputflinger_base",
81 ],
Prabir Pradhanda7c00c2019-08-29 14:12:42 -070082 export_header_lib_headers: [
Prabir Pradhan9244aea2020-02-05 20:31:40 -080083 "libinputreader_headers",
Prabir Pradhanda7c00c2019-08-29 14:12:42 -070084 ],
Chris Ye8594e192020-07-14 10:34:06 -070085 static_libs: [
86 "libc++fs"
87 ],
Prabir Pradhanda7c00c2019-08-29 14:12:42 -070088}