// libbtcore static library for target and host 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: "libbtcore", visibility: [ "//packages/modules/Bluetooth:__subpackages__", ], defaults: ["fluoride_defaults"], local_include_dirs: ["include"], include_dirs: [ "packages/modules/Bluetooth/system", "packages/modules/Bluetooth/system/gd", ], srcs: [ "src/module.cc", "src/osi_module.cc", ], header_libs: ["libbluetooth_headers"], static_libs: [ "libbluetooth_log", ], target: { host_linux: { cflags: ["-D_GNU_SOURCE"], }, }, host_supported: true, apex_available: ["com.android.bt"], min_sdk_version: "Tiramisu", } cc_library_headers { name: "libbtcore_headers", export_include_dirs: ["./"], vendor_available: true, host_supported: true, apex_available: [ "//apex_available:platform", "com.android.bt", ], min_sdk_version: "30", }