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: [ 30 "com.android.btservices", 31 ], 32 host_supported: true, 33 min_sdk_version: "Tiramisu", 34 header_libs: ["libbluetooth_headers"], 35 static_libs: [ 36 "libbluetooth_log", 37 "libbt_shim_bridge", 38 ], 39} 40 41// HCI unit tests for target 42cc_test { 43 name: "net_test_hci", 44 test_suites: ["general-tests"], 45 defaults: [ 46 "fluoride_defaults", 47 "mts_defaults", 48 ], 49 local_include_dirs: [ 50 "include", 51 ], 52 include_dirs: [ 53 "packages/modules/Bluetooth/system", 54 "packages/modules/Bluetooth/system/gd", 55 "packages/modules/Bluetooth/system/include", 56 "packages/modules/Bluetooth/system/osi/test", 57 ], 58 srcs: [ 59 "test/packet_fragmenter_test.cc", 60 ], 61 shared_libs: [ 62 "libbase", 63 "liblog", 64 ], 65 static_libs: [ 66 "libbluetooth-types", 67 "libbluetooth_log", 68 "libbt-hci", 69 "libchrome", 70 "libosi", 71 ], 72 sanitize: { 73 address: true, 74 cfi: true, 75 misc_undefined: ["bounds"], 76 }, 77} 78