blob: ee7b392bcd247e03c2619f4da95e862c6a6778b0 [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 Badour3306e492021-02-25 15:35:37 -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: [
Chris Yee2b1e5c2021-03-10 22:45:12 -080027 "controller",
Prabir Pradhan2770d242019-09-02 18:07:11 -070028 "include",
29 "mapper",
30 "mapper/accumulator",
31 ],
Prabir Pradhanda7c00c2019-08-29 14:12:42 -070032}
33
Prabir Pradhan9244aea2020-02-05 20:31:40 -080034filegroup {
35 name: "libinputreader_sources",
Prabir Pradhanda7c00c2019-08-29 14:12:42 -070036 srcs: [
37 "EventHub.cpp",
Prabir Pradhanbaa5c822019-08-30 15:27:05 -070038 "InputDevice.cpp",
Chris Ye1dd2e5c2021-04-04 23:12:41 -070039 "controller/PeripheralController.cpp",
Prabir Pradhan2770d242019-09-02 18:07:11 -070040 "mapper/accumulator/CursorButtonAccumulator.cpp",
41 "mapper/accumulator/CursorScrollAccumulator.cpp",
42 "mapper/accumulator/SingleTouchMotionAccumulator.cpp",
43 "mapper/accumulator/TouchButtonAccumulator.cpp",
44 "mapper/CursorInputMapper.cpp",
45 "mapper/ExternalStylusInputMapper.cpp",
46 "mapper/InputMapper.cpp",
47 "mapper/JoystickInputMapper.cpp",
48 "mapper/KeyboardInputMapper.cpp",
49 "mapper/MultiTouchInputMapper.cpp",
50 "mapper/RotaryEncoderInputMapper.cpp",
Chris Yef59a2f42020-10-16 12:55:26 -070051 "mapper/SensorInputMapper.cpp",
Prabir Pradhan2770d242019-09-02 18:07:11 -070052 "mapper/SingleTouchInputMapper.cpp",
53 "mapper/SwitchInputMapper.cpp",
54 "mapper/TouchInputMapper.cpp",
55 "mapper/VibratorInputMapper.cpp",
Prabir Pradhanda7c00c2019-08-29 14:12:42 -070056 "InputReader.cpp",
Prabir Pradhanda7c00c2019-08-29 14:12:42 -070057 "TouchVideoDevice.cpp",
Prabir Pradhanda7c00c2019-08-29 14:12:42 -070058 ],
Prabir Pradhan9244aea2020-02-05 20:31:40 -080059}
Prabir Pradhanda7c00c2019-08-29 14:12:42 -070060
Prabir Pradhan9244aea2020-02-05 20:31:40 -080061cc_defaults {
62 name: "libinputreader_defaults",
63 srcs: [":libinputreader_sources"],
Prabir Pradhanda7c00c2019-08-29 14:12:42 -070064 shared_libs: [
65 "libbase",
Siarhei Vishniakou7a522bf2019-09-24 12:46:29 +010066 "libcap",
Prabir Pradhanda7c00c2019-08-29 14:12:42 -070067 "libcrypto",
68 "libcutils",
69 "libinput",
70 "liblog",
Chris Yed3fef462021-03-07 17:10:08 -080071 "libstatslog",
Prabir Pradhanda7c00c2019-08-29 14:12:42 -070072 "libui",
73 "libutils",
Prabir Pradhand2c9e8e2021-05-24 15:00:12 -070074 "InputFlingerProperties",
Prabir Pradhanda7c00c2019-08-29 14:12:42 -070075 ],
Kim Low03ea0352020-11-06 12:45:07 -080076 static_libs: [
77 "libc++fs",
78 ],
Prabir Pradhanda7c00c2019-08-29 14:12:42 -070079 header_libs: [
Kim Low03ea0352020-11-06 12:45:07 -080080 "libbatteryservice_headers",
Prabir Pradhanda7c00c2019-08-29 14:12:42 -070081 "libinputreader_headers",
82 ],
Prabir Pradhan9244aea2020-02-05 20:31:40 -080083}
Prabir Pradhanda7c00c2019-08-29 14:12:42 -070084
Prabir Pradhan9244aea2020-02-05 20:31:40 -080085cc_library_shared {
86 name: "libinputreader",
87 defaults: [
88 "inputflinger_defaults",
89 "libinputreader_defaults"
90 ],
91 srcs: [
92 "InputReaderFactory.cpp",
93 ],
94 shared_libs: [
95 // This should consist only of dependencies from inputflinger. Other dependencies should be
96 // in cc_defaults so that they are included in the tests.
97 "libinputflinger_base",
98 ],
Prabir Pradhanda7c00c2019-08-29 14:12:42 -070099 export_header_lib_headers: [
Prabir Pradhan9244aea2020-02-05 20:31:40 -0800100 "libinputreader_headers",
Prabir Pradhanda7c00c2019-08-29 14:12:42 -0700101 ],
Chris Ye8594e192020-07-14 10:34:06 -0700102 static_libs: [
103 "libc++fs"
104 ],
Prabir Pradhanda7c00c2019-08-29 14:12:42 -0700105}