1package { 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 10aidl_interface { 11 name: "binderReadParcelIface", 12 host_supported: true, 13 unstable: true, 14 srcs: [ 15 "parcelables/EmptyParcelable.aidl", 16 "parcelables/SingleDataParcelable.aidl", 17 "parcelables/GenericDataParcelable.aidl", 18 ], 19 backend: { 20 java: { 21 enabled: true, 22 platform_apis: true, 23 }, 24 rust: { 25 enabled: true, 26 }, 27 }, 28} 29 30cc_fuzz { 31 name: "binder_parcel_fuzzer", 32 host_supported: true, 33 34 fuzz_config: { 35 cc: ["smoreland@google.com"], 36 }, 37 38 srcs: [ 39 "binder.cpp", 40 "binder_ndk.cpp", 41 "hwbinder.cpp", 42 "main.cpp", 43 "random_fd.cpp", 44 "random_parcel.cpp", 45 ], 46 static_libs: [ 47 "libbase", 48 "libbinder_random_parcel", 49 "libcutils", 50 "libhidlbase", 51 "liblog", 52 "binderReadParcelIface-cpp", 53 "binderReadParcelIface-ndk", 54 ], 55 56 target: { 57 android: { 58 shared_libs: [ 59 "libbinder_ndk", 60 "libbinder", 61 "libutils", 62 ], 63 }, 64 host: { 65 static_libs: [ 66 "libbinder_ndk", 67 "libbinder", 68 "libutils", 69 ], 70 }, 71 darwin: { 72 enabled: false, 73 }, 74 }, 75 // This flag enables verbose output in the fuzz target, and is very useful 76 // for debugging a failure. If you are trying to diagnose how a crash was 77 // produced, you may find uncommenting the below line very useful. 78 // cflags: ["-DENABLE_LOG_FUZZ"], 79} 80 81cc_library_static { 82 name: "libbinder_random_parcel", 83 host_supported: true, 84 vendor_available: true, 85 target: { 86 darwin: { 87 enabled: false, 88 }, 89 }, 90 srcs: [ 91 "random_binder.cpp", 92 "random_fd.cpp", 93 "random_parcel.cpp", 94 "libbinder_driver.cpp", 95 "libbinder_ndk_driver.cpp", 96 ], 97 shared_libs: [ 98 "libbase", 99 "libbinder", 100 "libbinder_ndk", 101 "libcutils", 102 "libutils", 103 ], 104 local_include_dirs: ["include_random_parcel"], 105 export_include_dirs: ["include_random_parcel"], 106} 107