Prabir Pradhan | da7c00c | 2019-08-29 14:12:42 -0700 | [diff] [blame] | 1 | // 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 Badour | 3306e49 | 2021-02-25 15:35:37 -0800 | [diff] [blame] | 15 | package { |
| 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 Pradhan | da7c00c | 2019-08-29 14:12:42 -0700 | [diff] [blame] | 24 | cc_library_headers { |
| 25 | name: "libinputreader_headers", |
Prabir Pradhan | 2770d24 | 2019-09-02 18:07:11 -0700 | [diff] [blame] | 26 | export_include_dirs: [ |
| 27 | "include", |
| 28 | "mapper", |
| 29 | "mapper/accumulator", |
| 30 | ], |
Prabir Pradhan | da7c00c | 2019-08-29 14:12:42 -0700 | [diff] [blame] | 31 | } |
| 32 | |
Prabir Pradhan | 9244aea | 2020-02-05 20:31:40 -0800 | [diff] [blame] | 33 | filegroup { |
| 34 | name: "libinputreader_sources", |
Prabir Pradhan | da7c00c | 2019-08-29 14:12:42 -0700 | [diff] [blame] | 35 | srcs: [ |
| 36 | "EventHub.cpp", |
Prabir Pradhan | baa5c82 | 2019-08-30 15:27:05 -0700 | [diff] [blame] | 37 | "InputDevice.cpp", |
Prabir Pradhan | 2770d24 | 2019-09-02 18:07:11 -0700 | [diff] [blame] | 38 | "mapper/accumulator/CursorButtonAccumulator.cpp", |
| 39 | "mapper/accumulator/CursorScrollAccumulator.cpp", |
| 40 | "mapper/accumulator/SingleTouchMotionAccumulator.cpp", |
| 41 | "mapper/accumulator/TouchButtonAccumulator.cpp", |
Kim Low | 03ea035 | 2020-11-06 12:45:07 -0800 | [diff] [blame] | 42 | "mapper/BatteryInputMapper.cpp", |
Prabir Pradhan | 2770d24 | 2019-09-02 18:07:11 -0700 | [diff] [blame] | 43 | "mapper/CursorInputMapper.cpp", |
| 44 | "mapper/ExternalStylusInputMapper.cpp", |
| 45 | "mapper/InputMapper.cpp", |
| 46 | "mapper/JoystickInputMapper.cpp", |
| 47 | "mapper/KeyboardInputMapper.cpp", |
Chris Ye | 3fdbfef | 2021-01-06 18:45:18 -0800 | [diff] [blame] | 48 | "mapper/LightInputMapper.cpp", |
Prabir Pradhan | 2770d24 | 2019-09-02 18:07:11 -0700 | [diff] [blame] | 49 | "mapper/MultiTouchInputMapper.cpp", |
| 50 | "mapper/RotaryEncoderInputMapper.cpp", |
Chris Ye | f59a2f4 | 2020-10-16 12:55:26 -0700 | [diff] [blame] | 51 | "mapper/SensorInputMapper.cpp", |
Prabir Pradhan | 2770d24 | 2019-09-02 18:07:11 -0700 | [diff] [blame] | 52 | "mapper/SingleTouchInputMapper.cpp", |
| 53 | "mapper/SwitchInputMapper.cpp", |
| 54 | "mapper/TouchInputMapper.cpp", |
| 55 | "mapper/VibratorInputMapper.cpp", |
Prabir Pradhan | da7c00c | 2019-08-29 14:12:42 -0700 | [diff] [blame] | 56 | "InputReader.cpp", |
Prabir Pradhan | da7c00c | 2019-08-29 14:12:42 -0700 | [diff] [blame] | 57 | "TouchVideoDevice.cpp", |
Prabir Pradhan | da7c00c | 2019-08-29 14:12:42 -0700 | [diff] [blame] | 58 | ], |
Prabir Pradhan | 9244aea | 2020-02-05 20:31:40 -0800 | [diff] [blame] | 59 | } |
Prabir Pradhan | da7c00c | 2019-08-29 14:12:42 -0700 | [diff] [blame] | 60 | |
Prabir Pradhan | 9244aea | 2020-02-05 20:31:40 -0800 | [diff] [blame] | 61 | cc_defaults { |
| 62 | name: "libinputreader_defaults", |
| 63 | srcs: [":libinputreader_sources"], |
Prabir Pradhan | da7c00c | 2019-08-29 14:12:42 -0700 | [diff] [blame] | 64 | shared_libs: [ |
| 65 | "libbase", |
Siarhei Vishniakou | 7a522bf | 2019-09-24 12:46:29 +0100 | [diff] [blame] | 66 | "libcap", |
Prabir Pradhan | da7c00c | 2019-08-29 14:12:42 -0700 | [diff] [blame] | 67 | "libcrypto", |
| 68 | "libcutils", |
| 69 | "libinput", |
| 70 | "liblog", |
Chris Ye | d3fef46 | 2021-03-07 17:10:08 -0800 | [diff] [blame] | 71 | "libstatslog", |
Prabir Pradhan | da7c00c | 2019-08-29 14:12:42 -0700 | [diff] [blame] | 72 | "libui", |
| 73 | "libutils", |
Prabir Pradhan | da7c00c | 2019-08-29 14:12:42 -0700 | [diff] [blame] | 74 | ], |
Kim Low | 03ea035 | 2020-11-06 12:45:07 -0800 | [diff] [blame] | 75 | static_libs: [ |
| 76 | "libc++fs", |
| 77 | ], |
Prabir Pradhan | da7c00c | 2019-08-29 14:12:42 -0700 | [diff] [blame] | 78 | header_libs: [ |
Kim Low | 03ea035 | 2020-11-06 12:45:07 -0800 | [diff] [blame] | 79 | "libbatteryservice_headers", |
Prabir Pradhan | da7c00c | 2019-08-29 14:12:42 -0700 | [diff] [blame] | 80 | "libinputreader_headers", |
| 81 | ], |
Prabir Pradhan | 9244aea | 2020-02-05 20:31:40 -0800 | [diff] [blame] | 82 | } |
Prabir Pradhan | da7c00c | 2019-08-29 14:12:42 -0700 | [diff] [blame] | 83 | |
Prabir Pradhan | 9244aea | 2020-02-05 20:31:40 -0800 | [diff] [blame] | 84 | cc_library_shared { |
| 85 | name: "libinputreader", |
| 86 | defaults: [ |
| 87 | "inputflinger_defaults", |
| 88 | "libinputreader_defaults" |
| 89 | ], |
| 90 | srcs: [ |
| 91 | "InputReaderFactory.cpp", |
| 92 | ], |
| 93 | shared_libs: [ |
| 94 | // This should consist only of dependencies from inputflinger. Other dependencies should be |
| 95 | // in cc_defaults so that they are included in the tests. |
| 96 | "libinputflinger_base", |
| 97 | ], |
Prabir Pradhan | da7c00c | 2019-08-29 14:12:42 -0700 | [diff] [blame] | 98 | export_header_lib_headers: [ |
Prabir Pradhan | 9244aea | 2020-02-05 20:31:40 -0800 | [diff] [blame] | 99 | "libinputreader_headers", |
Prabir Pradhan | da7c00c | 2019-08-29 14:12:42 -0700 | [diff] [blame] | 100 | ], |
Chris Ye | 8594e19 | 2020-07-14 10:34:06 -0700 | [diff] [blame] | 101 | static_libs: [ |
| 102 | "libc++fs" |
| 103 | ], |
Prabir Pradhan | da7c00c | 2019-08-29 14:12:42 -0700 | [diff] [blame] | 104 | } |