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