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_library_static { name: "avrcp-target-service", defaults: [ "fluoride_defaults", "clang_file_coverage", ], host_supported: true, include_dirs: [ "system/bt", "system/bt/btcore/include", "system/bt/internal_include", "system/bt/stack/include", "system/bt/gd/rust/shim", ], export_include_dirs: ["./"], srcs: [ "connection_handler.cc", "device.cc", ], static_libs: [ "lib-bt-packets", "libbluetooth-types", "libosi", ], shared_libs: [ "libchrome", ], apex_available: [ "//apex_available:platform", "com.android.bluetooth.updatable", ], } cc_test { name: "net_test_avrcp", test_suites: ["general-tests"], defaults: [ "fluoride_defaults", "clang_coverage_bin", ], host_supported: true, test_options: { unit_test: true, }, include_dirs: [ "system/bt", "system/bt/btcore/include", "system/bt/internal_include", "system/bt/stack/include", ], srcs: [ "tests/avrcp_connection_handler_test.cc", "tests/avrcp_device_test.cc", ], static_libs: [ "libgmock", "lib-bt-packets", "libosi", "liblog", "libcutils", "libbase", "libbtdevice", "avrcp-target-service", ], shared_libs: [ "libchrome", ], sanitize: { cfi: false, }, cflags: ["-DBUILDCFG"], } cc_fuzz { name: "avrcp_device_fuzz", host_supported: true, defaults: [ "fluoride_defaults_fuzzable", ], srcs: [ "tests/avrcp_device_fuzz/avrcp_device_fuzz.cc", ], include_dirs: [ "system/bt", "system/bt/packet/tests", "system/bt/btcore/include", "system/bt/internal_include", "system/bt/stack/include", ], static_libs: [ "avrcp-target-service", "lib-bt-packets", "libbase", "libchrome", "libcutils", "libevent", "liblog", "libstatslog", ], header_libs: ["libbluetooth_headers"], corpus: [ "tests/avrcp_device_fuzz/corpus/*", ], target: { darwin: { enabled: false, }, }, }