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 10// HCI static library for target 11cc_library_static { 12 name: "libbt-hci", 13 defaults: ["fluoride_defaults"], 14 srcs: [ 15 "src/buffer_allocator.cc", 16 "src/packet_fragmenter.cc", 17 ], 18 local_include_dirs: [ 19 "include", 20 ], 21 include_dirs: [ 22 "packages/modules/Bluetooth/system", 23 "packages/modules/Bluetooth/system/bta/include", 24 "packages/modules/Bluetooth/system/btif/include", 25 "packages/modules/Bluetooth/system/gd", 26 "packages/modules/Bluetooth/system/stack/include", 27 "system/libhwbinder/include", 28 ], 29 apex_available: ["com.android.bt"], 30 host_supported: true, 31 min_sdk_version: "Tiramisu", 32 header_libs: ["libbluetooth_headers"], 33 static_libs: [ 34 "libbluetooth_log", 35 ], 36} 37 38// HCI unit tests for target 39cc_test { 40 name: "net_test_hci", 41 test_suites: ["general-tests"], 42 defaults: [ 43 "fluoride_defaults", 44 "mts_defaults", 45 ], 46 local_include_dirs: [ 47 "include", 48 ], 49 include_dirs: [ 50 "packages/modules/Bluetooth/system", 51 "packages/modules/Bluetooth/system/gd", 52 "packages/modules/Bluetooth/system/include", 53 "packages/modules/Bluetooth/system/osi/test", 54 ], 55 srcs: [ 56 "test/packet_fragmenter_test.cc", 57 ], 58 shared_libs: [ 59 "libbase", 60 "liblog", 61 ], 62 static_libs: [ 63 "libbluetooth-types", 64 "libbluetooth_log", 65 "libbt-hci", 66 "libchrome", 67 "libcom.android.sysprop.bluetooth.wrapped", 68 "libosi", 69 ], 70 sanitize: { 71 address: true, 72 cfi: true, 73 misc_undefined: ["bounds"], 74 }, 75} 76