/* * Copyright (C) 2021 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at: * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package { // See: http://go/android-license-faq // A large-scale-change added 'default_applicable_licenses' to import // all of the 'license_kinds' from "system_bt_license" // to get the below license kinds: // SPDX-license-identifier-Apache-2.0 default_applicable_licenses: ["system_bt_license"], } cc_defaults { name: "libbt_audio_hal_interface_fuzz_defaults", header_libs: [ "avrcp_headers", "libbluetooth_headers", ], shared_libs: [ "libz", "libfmq", "libaaudio", "libcrypto", "libstatslog", "libbinder_ndk", "libstatssocket", "android.hardware.bluetooth.audio-V2-ndk", "android.hardware.bluetooth@1.0", "android.hardware.bluetooth@1.1", "android.hardware.bluetooth.a2dp@1.0", "android.hardware.bluetooth.audio@2.0", "android.hardware.bluetooth.audio@2.1", "android.system.suspend.control-V1-ndk", "android.system.suspend-V1-ndk", ], static_libs: [ "libbte", "liblog", "libosi", "libbtif", "libbase", "libutils", "libevent", "libcutils", "libchrome", "libbtcore", "libbt-bta", "libbt-hci", "libbt_shim_bridge", "libbt_shim_ffi", "libjsoncpp", "libbt-utils", "libbtdevice", "libcgrouprc", "libflatbuffers-cpp", "libhidlbase", "libbt-stack", "libg722codec", "libudrv-uipc", "libbt-common", "liblc3", "libopus", "libstatslog_bt", "libvndksupport", "libprocessgroup", "libbluetooth_gd", "libFraunhoferAAC", "libbt-sbc-decoder", "libbt-sbc-encoder", "libcgrouprc_format", "libbluetooth-types", "libbluetooth-protos", "libbluetooth-dumpsys", "libprotobuf-cpp-lite", "libbt-audio-hal-interface", "libbluetooth_rust_interop", "libaudio-a2dp-hw-utils", ], include_dirs: [ "packages/modules/Bluetooth/system", "packages/modules/Bluetooth/system/gd", "packages/modules/Bluetooth/system/btif", "packages/modules/Bluetooth/system/gd/rust/shim", "packages/modules/Bluetooth/system/stack/include", "packages/modules/Bluetooth/system/bta/include", ], cflags: [ "-DHAS_NO_BDROID_BUILDCFG", ], fuzz_config: { cc: [ "android-media-fuzzing-reports@google.com", ], componentid: 155276, }, } cc_fuzz { name: "libbt_audio_hal_a2dp_encoding_fuzzer", defaults: [ "libbt_audio_hal_interface_fuzz_defaults", ], srcs: [ "libbt_audio_hal_a2dp_encoding_fuzzer.cpp", ], } cc_fuzz { name: "libbt_audio_hal_le_audio_software_fuzzer", defaults: [ "libbt_audio_hal_interface_fuzz_defaults", ], srcs: [ "libbt_audio_hal_le_audio_software_fuzzer.cpp", ], } cc_fuzz { name: "libbt_audio_hal_hearing_aid_software_encoding_fuzzer", defaults: [ "libbt_audio_hal_interface_fuzz_defaults", ], srcs: [ "libbt_audio_hal_hearing_aid_software_encoding_fuzzer.cpp", ], } cc_fuzz { name: "libbt_audio_hal_client_interface_fuzzer", defaults: [ "libbt_audio_hal_interface_fuzz_defaults", ], srcs: [ "libbt_audio_hal_client_interface_fuzzer.cpp", ], }