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 "system_bt_license" 5 // to get the below license kinds: 6 // SPDX-license-identifier-Apache-2.0 7 default_applicable_licenses: ["system_bt_license"], 8} 9 10cc_defaults { 11 name: "bluetooth_fuzz_stack_defaults", 12 defaults: [ 13 "fluoride_defaults", 14 "latest_android_hardware_audio_common_ndk_static", 15 "latest_android_hardware_bluetooth_audio_ndk_static", 16 "latest_android_media_audio_common_types_ndk_static", 17 ], 18 cflags: [ 19 // Fuzzers are hopeless.. 20 "-Wno-missing-prototypes", 21 ], 22 include_dirs: [ 23 "packages/modules/Bluetooth/system", 24 "packages/modules/Bluetooth/system/bta/include", 25 "packages/modules/Bluetooth/system/bta/sys", 26 "packages/modules/Bluetooth/system/gd", 27 "packages/modules/Bluetooth/system/include", 28 "packages/modules/Bluetooth/system/stack/include", 29 "packages/modules/Bluetooth/system/stack/test", 30 ], 31 static_libs: [ 32 "android.hardware.audio.common@5.0", 33 "android.hardware.bluetooth.audio@2.0", 34 "android.hardware.bluetooth.audio@2.1", 35 "android.hardware.bluetooth@1.0", 36 "android.hardware.bluetooth@1.1", 37 "android.hardware.common-V2-ndk", 38 "android.hardware.common.fmq-V1-ndk", 39 "android.system.suspend-V1-ndk", 40 "android.system.suspend.control-V1-ndk", 41 "bluetooth_flags_c_lib", 42 "libFraunhoferAAC", 43 "libbluetooth-types", 44 "libbluetooth_core_rs", 45 "libbluetooth_crypto_toolbox", 46 "libbluetooth_gd", 47 "libbluetooth_log", 48 "libbt-audio-hal-interface", 49 "libbt-bta", 50 "libbt-btu-main-thread", 51 "libbt-common", 52 "libbt-hci", 53 "libbt-jni-thread", 54 "libbt-sbc-decoder", 55 "libbt-sbc-encoder", 56 "libbt-stack", 57 "libbtcore", 58 "libbtdevice", 59 "libbte", 60 "libbtif", 61 "libchrome", 62 "libcom.android.sysprop.bluetooth.wrapped", 63 "libexpresslog", 64 "libflags_rust_cpp_bridge", 65 "libg722codec", 66 "liblc3", 67 "libopus", 68 "libosi", 69 "libstatslog_bt", 70 "libstatslog_express", 71 "libtextclassifier_hash_static", 72 "libudrv-uipc", 73 ], 74 shared_libs: [ 75 "libPlatformProperties", 76 "libaaudio", 77 "libaconfig_storage_read_api_cc", 78 "libbase", 79 "libbinder", 80 "libbinder_ndk", 81 "libcrypto", 82 "libcutils", 83 "libevent", 84 "libfmq", 85 "libhidlbase", 86 "liblog", 87 "libprotobuf-cpp-lite", 88 "libstatssocket", 89 "libutils", 90 "server_configurable_flags", 91 ], 92 target: { 93 android: { 94 static_libs: [ 95 "libperfetto_client_experimental", 96 ], 97 }, 98 }, 99} 100 101cc_fuzz { 102 name: "bluetooth_fuzz_stack_a2dp", 103 defaults: ["bluetooth_fuzz_stack_defaults"], 104 srcs: ["a2dp/fuzz_a2dp.cc"], 105} 106 107cc_fuzz { 108 name: "bluetooth_fuzz_stack_a2dp_codec", 109 defaults: ["bluetooth_fuzz_stack_defaults"], 110 srcs: ["a2dp/codec/fuzz_a2dp_codec.cc"], 111} 112 113cc_fuzz { 114 name: "bluetooth_fuzz_stack_a2dp_codec_info", 115 defaults: ["bluetooth_fuzz_stack_defaults"], 116 srcs: ["a2dp/codec/fuzz_a2dp_codec_info.cc"], 117} 118 119cc_fuzz { 120 name: "bluetooth_fuzz_stack_a2dp_codec_config", 121 defaults: ["bluetooth_fuzz_stack_defaults"], 122 srcs: ["a2dp/codec/fuzz_a2dp_codec_config.cc"], 123} 124 125cc_fuzz { 126 name: "bluetooth_fuzz_stack_avrc", 127 defaults: ["bluetooth_fuzz_stack_defaults"], 128 srcs: ["avrc/fuzz_avrc.cc"], 129} 130 131cc_fuzz { 132 name: "bluetooth_fuzz_stack_sdp", 133 defaults: ["bluetooth_fuzz_stack_defaults"], 134 srcs: ["sdp/fuzz_sdp.cc"], 135} 136