1// Bluetooth device static library for target 2package { 3 // See: http://go/android-license-faq 4 // A large-scale-change added 'default_applicable_licenses' to import 5 // all of the 'license_kinds' from "system_bt_license" 6 // to get the below license kinds: 7 // SPDX-license-identifier-Apache-2.0 8 default_applicable_licenses: ["system_bt_license"], 9} 10 11cc_library_static { 12 name: "libbtdevice", 13 defaults: ["fluoride_defaults"], 14 host_supported: true, 15 local_include_dirs: [ 16 "include", 17 ], 18 include_dirs: [ 19 "packages/modules/Bluetooth/system", 20 "packages/modules/Bluetooth/system/gd", 21 "packages/modules/Bluetooth/system/stack/include", 22 ], 23 srcs: [ 24 "src/device_iot_config.cc", 25 "src/device_iot_config_int.cc", 26 "src/esco_parameters.cc", 27 "src/interop.cc", 28 ], 29 apex_available: [ 30 "com.android.btservices", 31 ], 32 generated_headers: [ 33 "BluetoothGeneratedDumpsysDataSchema_h", 34 ], 35 min_sdk_version: "Tiramisu", 36 header_libs: ["libbluetooth_headers"], 37 static_libs: [ 38 "bluetooth_flags_c_lib", 39 "libaconfig_storage_read_api_cc", 40 "libbluetooth_hci_pdl", 41 "libbluetooth_log", 42 "libbt_shim_bridge", 43 "libflatbuffers-cpp", 44 "server_configurable_flags", 45 ], 46} 47 48// Bluetooth device unit tests for target 49cc_test { 50 name: "net_test_device", 51 test_suites: ["general-tests"], 52 defaults: [ 53 "fluoride_defaults", 54 "mts_defaults", 55 ], 56 host_supported: true, 57 include_dirs: ["packages/modules/Bluetooth/system"], 58 srcs: [ 59 "test/interop_test.cc", 60 ], 61 shared_libs: [ 62 "libbase", 63 "liblog", 64 ], 65 static_libs: [ 66 "libbluetooth-types", 67 "libbluetooth_gd", 68 "libbluetooth_log", 69 "libbt_shim_bridge", 70 "libbt_shim_ffi", 71 "libbtcore", 72 "libbtdevice", 73 "libchrome", 74 "libosi", 75 ], 76 header_libs: ["libbluetooth_headers"], 77} 78 79// Bluetooth device unit tests for target 80cc_test { 81 name: "net_test_device_iot_config", 82 test_suites: ["general-tests"], 83 defaults: [ 84 "fluoride_defaults", 85 "mts_defaults", 86 ], 87 include_dirs: [ 88 "packages/modules/Bluetooth/system", 89 "packages/modules/Bluetooth/system/device/src", 90 "packages/modules/Bluetooth/system/gd", 91 "packages/modules/Bluetooth/system/stack/include", 92 ], 93 srcs: [ 94 ":TestCommonMockFunctions", 95 ":TestMockOsi", 96 "test/device_iot_config_test.cc", 97 ], 98 shared_libs: [ 99 "libaconfig_storage_read_api_cc", 100 "libbase", 101 "libdl", 102 "liblog", 103 ], 104 static_libs: [ 105 "bluetooth_flags_c_lib", 106 "libbluetooth-types", 107 "libbluetooth_log", 108 "libbt-platform-protos-lite", 109 "libbt_shim_bridge", 110 "libbt_shim_ffi", 111 "libbtcore", 112 "libbtdevice", 113 "libchrome", 114 "libflagtest", 115 "libgmock", 116 "server_configurable_flags", 117 ], 118 header_libs: ["libbluetooth_headers"], 119 cflags: ["-Wno-unused-parameter"], 120} 121