Michael Ensing | 7c58e65 | 2020-05-12 00:41:30 -0700 | [diff] [blame] | 1 | // |
| 2 | // Copyright (C) 2020 The Android Open Source Project |
| 3 | // |
| 4 | // Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | // you may not use this file except in compliance with the License. |
| 6 | // You may obtain a copy of the License at |
| 7 | // |
| 8 | // http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | // |
| 10 | // Unless required by applicable law or agreed to in writing, software |
| 11 | // distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | // See the License for the specific language governing permissions and |
| 14 | // limitations under the License. |
| 15 | // |
| 16 | |
Bob Badour | 3c53823 | 2021-02-12 21:26:48 -0800 | [diff] [blame] | 17 | package { |
| 18 | // See: http://go/android-license-faq |
| 19 | // A large-scale-change added 'default_applicable_licenses' to import |
| 20 | // all of the 'license_kinds' from "frameworks_native_license" |
| 21 | // to get the below license kinds: |
| 22 | // SPDX-license-identifier-Apache-2.0 |
| 23 | default_applicable_licenses: ["frameworks_native_license"], |
| 24 | } |
| 25 | |
Michael Ensing | 7c58e65 | 2020-05-12 00:41:30 -0700 | [diff] [blame] | 26 | cc_defaults { |
| 27 | name: "inputflinger_fuzz_defaults", |
| 28 | defaults: [ |
| 29 | "inputflinger_defaults", |
| 30 | ], |
| 31 | include_dirs: [ |
| 32 | "frameworks/native/services/inputflinger", |
| 33 | ], |
| 34 | shared_libs: [ |
| 35 | "android.hardware.input.classifier@1.0", |
| 36 | "libbase", |
| 37 | "libbinder", |
| 38 | "libcutils", |
| 39 | "liblog", |
| 40 | "libutils", |
| 41 | "libui", |
| 42 | "libinput", |
| 43 | "libinputflinger", |
| 44 | "libinputreader", |
| 45 | "libinputflinger_base", |
| 46 | "libstatslog", |
| 47 | ], |
| 48 | header_libs: [ |
| 49 | "libinputreader_headers", |
| 50 | ], |
| 51 | } |
| 52 | |
| 53 | cc_fuzz { |
| 54 | name: "inputflinger_cursor_input_fuzzer", |
| 55 | defaults: [ |
| 56 | "inputflinger_fuzz_defaults", |
| 57 | ], |
| 58 | srcs: [ |
| 59 | "CursorInputFuzzer.cpp", |
| 60 | ], |
| 61 | } |
| 62 | |
| 63 | cc_fuzz { |
| 64 | name: "inputflinger_keyboard_input_fuzzer", |
| 65 | defaults: [ |
| 66 | "inputflinger_fuzz_defaults", |
| 67 | ], |
| 68 | srcs: [ |
| 69 | "KeyboardInputFuzzer.cpp", |
| 70 | ], |
| 71 | } |
| 72 | |
| 73 | cc_fuzz { |
| 74 | name: "inputflinger_multitouch_input_fuzzer", |
| 75 | defaults: [ |
| 76 | "inputflinger_fuzz_defaults", |
| 77 | ], |
| 78 | srcs: [ |
| 79 | "MultiTouchInputFuzzer.cpp", |
| 80 | ], |
| 81 | } |
| 82 | |
| 83 | cc_fuzz { |
| 84 | name: "inputflinger_switch_input_fuzzer", |
| 85 | defaults: [ |
| 86 | "inputflinger_fuzz_defaults", |
| 87 | ], |
| 88 | srcs: [ |
| 89 | "SwitchInputFuzzer.cpp", |
| 90 | ], |
| 91 | } |
Michael Ensing | 39b87e7 | 2020-07-19 17:19:31 -0700 | [diff] [blame] | 92 | |
| 93 | cc_fuzz { |
Michael Ensing | 80c8aff | 2021-01-12 16:13:20 -0800 | [diff] [blame] | 94 | name: "inputflinger_input_reader_device_fuzzer", |
| 95 | defaults: [ |
| 96 | "inputflinger_fuzz_defaults", |
| 97 | ], |
| 98 | srcs: [ |
| 99 | "InputReaderDeviceFuzzer.cpp", |
| 100 | ], |
| 101 | } |
| 102 | |
| 103 | cc_fuzz { |
Michael Ensing | 39b87e7 | 2020-07-19 17:19:31 -0700 | [diff] [blame] | 104 | name: "inputflinger_blocking_queue_fuzzer", |
| 105 | defaults: [ |
| 106 | "inputflinger_fuzz_defaults", |
| 107 | ], |
| 108 | srcs: [ |
| 109 | "BlockingQueueFuzzer.cpp", |
| 110 | ], |
| 111 | } |
| 112 | |
| 113 | cc_fuzz { |
| 114 | name: "inputflinger_input_classifier_fuzzer", |
| 115 | defaults: [ |
| 116 | "inputflinger_fuzz_defaults", |
| 117 | ], |
| 118 | srcs: [ |
| 119 | "InputClassifierFuzzer.cpp", |
| 120 | ], |
| 121 | } |