blob: 9846640dcb5eb70eb58cf391d1e36c3f74d7c70a [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
Bob Badour3c538232021-02-12 21:26:48 -080015package {
16 // See: http://go/android-license-faq
17 // A large-scale-change added 'default_applicable_licenses' to import
18 // all of the 'license_kinds' from "frameworks_native_license"
19 // to get the below license kinds:
20 // SPDX-license-identifier-Apache-2.0
21 default_applicable_licenses: ["frameworks_native_license"],
22}
23
Prabir Pradhanda7c00c2019-08-29 14:12:42 -070024cc_library_headers {
25 name: "libinputreader_headers",
Prabir Pradhan2770d242019-09-02 18:07:11 -070026 export_include_dirs: [
27 "include",
28 "mapper",
29 "mapper/accumulator",
30 ],
Prabir Pradhanda7c00c2019-08-29 14:12:42 -070031}
32
Prabir Pradhan9244aea2020-02-05 20:31:40 -080033filegroup {
34 name: "libinputreader_sources",
Prabir Pradhanda7c00c2019-08-29 14:12:42 -070035 srcs: [
36 "EventHub.cpp",
Prabir Pradhanbaa5c822019-08-30 15:27:05 -070037 "InputDevice.cpp",
Prabir Pradhan2770d242019-09-02 18:07:11 -070038 "mapper/accumulator/CursorButtonAccumulator.cpp",
39 "mapper/accumulator/CursorScrollAccumulator.cpp",
40 "mapper/accumulator/SingleTouchMotionAccumulator.cpp",
41 "mapper/accumulator/TouchButtonAccumulator.cpp",
42 "mapper/CursorInputMapper.cpp",
43 "mapper/ExternalStylusInputMapper.cpp",
44 "mapper/InputMapper.cpp",
45 "mapper/JoystickInputMapper.cpp",
46 "mapper/KeyboardInputMapper.cpp",
47 "mapper/MultiTouchInputMapper.cpp",
48 "mapper/RotaryEncoderInputMapper.cpp",
49 "mapper/SingleTouchInputMapper.cpp",
50 "mapper/SwitchInputMapper.cpp",
51 "mapper/TouchInputMapper.cpp",
52 "mapper/VibratorInputMapper.cpp",
Prabir Pradhanda7c00c2019-08-29 14:12:42 -070053 "InputReader.cpp",
Prabir Pradhanda7c00c2019-08-29 14:12:42 -070054 "TouchVideoDevice.cpp",
Prabir Pradhanda7c00c2019-08-29 14:12:42 -070055 ],
Prabir Pradhan9244aea2020-02-05 20:31:40 -080056}
Prabir Pradhanda7c00c2019-08-29 14:12:42 -070057
Prabir Pradhan9244aea2020-02-05 20:31:40 -080058cc_defaults {
59 name: "libinputreader_defaults",
60 srcs: [":libinputreader_sources"],
Prabir Pradhanda7c00c2019-08-29 14:12:42 -070061 shared_libs: [
62 "libbase",
Siarhei Vishniakou7a522bf2019-09-24 12:46:29 +010063 "libcap",
Prabir Pradhanda7c00c2019-08-29 14:12:42 -070064 "libcrypto",
65 "libcutils",
66 "libinput",
67 "liblog",
68 "libui",
69 "libutils",
Prabir Pradhanda7c00c2019-08-29 14:12:42 -070070 ],
Prabir Pradhanda7c00c2019-08-29 14:12:42 -070071 header_libs: [
Prabir Pradhanda7c00c2019-08-29 14:12:42 -070072 "libinputreader_headers",
73 ],
Prabir Pradhan9244aea2020-02-05 20:31:40 -080074}
Prabir Pradhanda7c00c2019-08-29 14:12:42 -070075
Prabir Pradhan9244aea2020-02-05 20:31:40 -080076cc_library_shared {
77 name: "libinputreader",
78 defaults: [
79 "inputflinger_defaults",
80 "libinputreader_defaults"
81 ],
82 srcs: [
83 "InputReaderFactory.cpp",
84 ],
85 shared_libs: [
86 // This should consist only of dependencies from inputflinger. Other dependencies should be
87 // in cc_defaults so that they are included in the tests.
88 "libinputflinger_base",
89 ],
Prabir Pradhanda7c00c2019-08-29 14:12:42 -070090 export_header_lib_headers: [
Prabir Pradhan9244aea2020-02-05 20:31:40 -080091 "libinputreader_headers",
Prabir Pradhanda7c00c2019-08-29 14:12:42 -070092 ],
Chris Yedb924702020-07-14 10:34:06 -070093 static_libs: [
94 "libc++fs"
95 ],
Prabir Pradhanda7c00c2019-08-29 14:12:42 -070096}