Bob Badour | 3306e49 | 2021-02-25 15:35:37 -0800 | [diff] [blame] | 1 | package { |
| 2 | // See: http://go/android-license-faq |
| 3 | // A large-scale-change added 'default_applicable_licenses' to import |
| 4 | // all of the 'license_kinds' from "frameworks_native_license" |
| 5 | // to get the below license kinds: |
| 6 | // SPDX-license-identifier-Apache-2.0 |
| 7 | default_applicable_licenses: ["frameworks_native_license"], |
| 8 | } |
| 9 | |
Steven Moreland | 88b1d3c | 2019-10-14 17:19:28 -0700 | [diff] [blame] | 10 | cc_fuzz { |
| 11 | name: "binder_parcel_fuzzer", |
Steven Moreland | 28f8142 | 2019-10-03 10:40:59 -0700 | [diff] [blame] | 12 | defaults: ["libbinder_ndk_host_user"], |
Steven Moreland | 46e0da7 | 2019-09-05 15:52:02 -0700 | [diff] [blame] | 13 | host_supported: true, |
Steven Moreland | 97d4e1a | 2019-10-29 14:24:26 -0700 | [diff] [blame] | 14 | |
| 15 | fuzz_config: { |
| 16 | cc: ["smoreland@google.com"], |
| 17 | }, |
| 18 | |
Steven Moreland | 46e0da7 | 2019-09-05 15:52:02 -0700 | [diff] [blame] | 19 | srcs: [ |
| 20 | "binder.cpp", |
Steven Moreland | 28f8142 | 2019-10-03 10:40:59 -0700 | [diff] [blame] | 21 | "binder_ndk.cpp", |
Steven Moreland | 46e0da7 | 2019-09-05 15:52:02 -0700 | [diff] [blame] | 22 | "hwbinder.cpp", |
| 23 | "main.cpp", |
Steven Moreland | 5e561af | 2020-10-08 02:16:03 +0000 | [diff] [blame] | 24 | "random_fd.cpp", |
| 25 | "random_parcel.cpp", |
Steven Moreland | 46e0da7 | 2019-09-05 15:52:02 -0700 | [diff] [blame] | 26 | "util.cpp", |
| 27 | ], |
| 28 | static_libs: [ |
| 29 | "libbase", |
Steven Moreland | 362e4da | 2020-10-16 19:49:39 +0000 | [diff] [blame] | 30 | "libbinder_random_parcel", |
Steven Moreland | 46e0da7 | 2019-09-05 15:52:02 -0700 | [diff] [blame] | 31 | "libcgrouprc", |
| 32 | "libcgrouprc_format", |
| 33 | "libcutils", |
| 34 | "libhidlbase", |
| 35 | "liblog", |
| 36 | "libprocessgroup", |
| 37 | "libjsoncpp", |
| 38 | "libutils", |
| 39 | ], |
| 40 | |
| 41 | target: { |
| 42 | android: { |
Steven Moreland | 28f8142 | 2019-10-03 10:40:59 -0700 | [diff] [blame] | 43 | shared_libs: [ |
| 44 | "libbinder_ndk", |
| 45 | "libbinder", |
| 46 | ], |
Steven Moreland | 46e0da7 | 2019-09-05 15:52:02 -0700 | [diff] [blame] | 47 | }, |
| 48 | host: { |
Steven Moreland | 28f8142 | 2019-10-03 10:40:59 -0700 | [diff] [blame] | 49 | static_libs: [ |
| 50 | "libbinder_ndk", |
| 51 | "libbinder", |
| 52 | ], |
Steven Moreland | 46e0da7 | 2019-09-05 15:52:02 -0700 | [diff] [blame] | 53 | }, |
| 54 | }, |
Steven Moreland | 88b1d3c | 2019-10-14 17:19:28 -0700 | [diff] [blame] | 55 | // This flag enables verbose output in the fuzz target, and is very useful |
| 56 | // for debugging a failure. If you are trying to diagnose how a crash was |
| 57 | // produced, you may find uncommenting the below line very useful. |
| 58 | // cflags: ["-DENABLE_LOG_FUZZ"], |
Steven Moreland | 46e0da7 | 2019-09-05 15:52:02 -0700 | [diff] [blame] | 59 | } |
Steven Moreland | 362e4da | 2020-10-16 19:49:39 +0000 | [diff] [blame] | 60 | |
| 61 | cc_library_static { |
| 62 | name: "libbinder_random_parcel", |
| 63 | host_supported: true, |
Yifan Hong | f856a98 | 2020-10-30 14:51:17 -0700 | [diff] [blame] | 64 | target: { |
| 65 | darwin: { |
| 66 | enabled: false, |
| 67 | } |
| 68 | }, |
Steven Moreland | 362e4da | 2020-10-16 19:49:39 +0000 | [diff] [blame] | 69 | srcs: [ |
| 70 | "random_fd.cpp", |
| 71 | "random_parcel.cpp", |
| 72 | ], |
| 73 | shared_libs: [ |
| 74 | "libbase", |
| 75 | "libbinder", |
| 76 | "libcutils", |
| 77 | "libutils", |
| 78 | ], |
| 79 | local_include_dirs: ["include_random_parcel"], |
| 80 | export_include_dirs: ["include_random_parcel"], |
| 81 | } |