| Corbin Souffrant | 84f5c0f | 2020-06-26 00:42:43 -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 | |
| Corbin Souffrant | 84f5c0f | 2020-06-26 00:42:43 -0700 | [diff] [blame] | 26 | cc_defaults { |
| 27 | name: "binder_fuzz_defaults", |
| 28 | host_supported: true, |
| 29 | cflags: [ |
| 30 | "-Wall", |
| 31 | "-Werror", |
| 32 | ], |
| 33 | shared_libs: [ |
| 34 | "libbinder", |
| 35 | "libutils", |
| 36 | "libbase", |
| 37 | ], |
| Yifan Hong | f856a98 | 2020-10-30 14:51:17 -0700 | [diff] [blame] | 38 | target: { |
| 39 | darwin: { |
| 40 | enabled: false, |
| 41 | } |
| 42 | } |
| Corbin Souffrant | 84f5c0f | 2020-06-26 00:42:43 -0700 | [diff] [blame] | 43 | } |
| 44 | |
| 45 | cc_fuzz { |
| 46 | name: "binder_binderFuzz", |
| 47 | defaults: ["binder_fuzz_defaults"], |
| 48 | srcs: ["BinderFuzz.cpp"], |
| 49 | } |
| 50 | |
| 51 | cc_fuzz { |
| 52 | name: "binder_bpBinderFuzz", |
| 53 | defaults: ["binder_fuzz_defaults"], |
| 54 | host_supported: false, |
| 55 | srcs: ["BpBinderFuzz.cpp"], |
| 56 | } |
| 57 | |
| 58 | cc_fuzz { |
| 59 | name: "binder_persistableBundleFuzz", |
| 60 | defaults: ["binder_fuzz_defaults"], |
| 61 | srcs: ["PersistableBundleFuzz.cpp"], |
| 62 | } |
| 63 | |
| 64 | cc_fuzz { |
| 65 | name: "binder_stabilityFuzz", |
| 66 | defaults: ["binder_fuzz_defaults"], |
| 67 | srcs: ["StabilityFuzz.cpp"], |
| 68 | } |
| 69 | |
| 70 | cc_fuzz { |
| 71 | name: "binder_statusFuzz", |
| 72 | defaults: ["binder_fuzz_defaults"], |
| 73 | srcs: ["StatusFuzz.cpp"], |
| 74 | } |
| 75 | |
| 76 | cc_fuzz { |
| 77 | name: "binder_textOutputFuzz", |
| 78 | defaults: ["binder_fuzz_defaults"], |
| 79 | srcs: ["TextOutputFuzz.cpp"], |
| 80 | } |
| Michael Ensing | 4d90d80 | 2020-07-19 16:32:43 -0700 | [diff] [blame] | 81 | |
| 82 | cc_fuzz { |
| 83 | name: "binder_bufferedTextOutputFuzz", |
| 84 | include_dirs: [ |
| 85 | "frameworks/native/libs/binder", |
| 86 | ], |
| 87 | defaults: ["binder_fuzz_defaults"], |
| 88 | srcs: ["BufferedTextOutputFuzz.cpp"], |
| 89 | } |
| 90 | |
| 91 | cc_fuzz { |
| 92 | name: "binder_memoryDealerFuzz", |
| 93 | defaults: ["binder_fuzz_defaults"], |
| 94 | srcs: ["MemoryDealerFuzz.cpp"], |
| 95 | } |