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", |
| 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", |
| 40 | "mapper/SingleTouchInputMapper.cpp", |
| 41 | "mapper/SwitchInputMapper.cpp", |
| 42 | "mapper/TouchInputMapper.cpp", |
| 43 | "mapper/VibratorInputMapper.cpp", |
Prabir Pradhan | da7c00c | 2019-08-29 14:12:42 -0700 | [diff] [blame] | 44 | "InputReader.cpp", |
Prabir Pradhan | da7c00c | 2019-08-29 14:12:42 -0700 | [diff] [blame] | 45 | "TouchVideoDevice.cpp", |
Prabir Pradhan | da7c00c | 2019-08-29 14:12:42 -0700 | [diff] [blame] | 46 | ], |
Prabir Pradhan | 9244aea | 2020-02-05 20:31:40 -0800 | [diff] [blame^] | 47 | } |
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 | cc_defaults { |
| 50 | name: "libinputreader_defaults", |
| 51 | srcs: [":libinputreader_sources"], |
Prabir Pradhan | da7c00c | 2019-08-29 14:12:42 -0700 | [diff] [blame] | 52 | shared_libs: [ |
| 53 | "libbase", |
Siarhei Vishniakou | 7a522bf | 2019-09-24 12:46:29 +0100 | [diff] [blame] | 54 | "libcap", |
Prabir Pradhan | da7c00c | 2019-08-29 14:12:42 -0700 | [diff] [blame] | 55 | "libcrypto", |
| 56 | "libcutils", |
| 57 | "libinput", |
| 58 | "liblog", |
| 59 | "libui", |
| 60 | "libutils", |
Prabir Pradhan | da7c00c | 2019-08-29 14:12:42 -0700 | [diff] [blame] | 61 | ], |
Prabir Pradhan | da7c00c | 2019-08-29 14:12:42 -0700 | [diff] [blame] | 62 | header_libs: [ |
Prabir Pradhan | da7c00c | 2019-08-29 14:12:42 -0700 | [diff] [blame] | 63 | "libinputreader_headers", |
| 64 | ], |
Prabir Pradhan | 9244aea | 2020-02-05 20:31:40 -0800 | [diff] [blame^] | 65 | } |
Prabir Pradhan | da7c00c | 2019-08-29 14:12:42 -0700 | [diff] [blame] | 66 | |
Prabir Pradhan | 9244aea | 2020-02-05 20:31:40 -0800 | [diff] [blame^] | 67 | cc_library_shared { |
| 68 | name: "libinputreader", |
| 69 | defaults: [ |
| 70 | "inputflinger_defaults", |
| 71 | "libinputreader_defaults" |
| 72 | ], |
| 73 | srcs: [ |
| 74 | "InputReaderFactory.cpp", |
| 75 | ], |
| 76 | shared_libs: [ |
| 77 | // This should consist only of dependencies from inputflinger. Other dependencies should be |
| 78 | // in cc_defaults so that they are included in the tests. |
| 79 | "libinputflinger_base", |
| 80 | ], |
Prabir Pradhan | da7c00c | 2019-08-29 14:12:42 -0700 | [diff] [blame] | 81 | export_header_lib_headers: [ |
Prabir Pradhan | 9244aea | 2020-02-05 20:31:40 -0800 | [diff] [blame^] | 82 | "libinputreader_headers", |
Prabir Pradhan | da7c00c | 2019-08-29 14:12:42 -0700 | [diff] [blame] | 83 | ], |
| 84 | } |