1// Bluetooth test suite 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_defaults { 12 name: "net_test_defaults", 13 defaults: ["fluoride_defaults"], 14 include_dirs: [ 15 "frameworks/av/media/libaaudio/include", 16 "packages/modules/Bluetooth/system", 17 "packages/modules/Bluetooth/system/bta/dm", 18 "packages/modules/Bluetooth/system/bta/include", 19 "packages/modules/Bluetooth/system/bta/sys", 20 "packages/modules/Bluetooth/system/btif/avrcp", 21 "packages/modules/Bluetooth/system/btif/co", 22 "packages/modules/Bluetooth/system/embdrv/sbc/decoder/include", 23 "packages/modules/Bluetooth/system/embdrv/sbc/encoder/include", 24 "packages/modules/Bluetooth/system/gd", 25 "packages/modules/Bluetooth/system/include", 26 "packages/modules/Bluetooth/system/stack/a2dp", 27 "packages/modules/Bluetooth/system/stack/avdt", 28 "packages/modules/Bluetooth/system/stack/btm", 29 "packages/modules/Bluetooth/system/stack/include", 30 "packages/modules/Bluetooth/system/stack/l2cap", 31 "packages/modules/Bluetooth/system/udrv/include", 32 "system/libfmq/include", 33 "system/libhwbinder/include", 34 ], 35 srcs: [ 36 ":BtaDmSources", 37 ":TestCommonMockFunctions", 38 ":TestMockHci", 39 ":TestMockUdrv", 40 "adapter/bluetooth_test.cc", 41 ], 42 shared_libs: [ 43 "libPlatformProperties", 44 "libaaudio", 45 "libbinder", 46 "libbinder_ndk", 47 "libcrypto", 48 "libcutils", 49 "libfmq", 50 "libhidlbase", 51 "liblog", 52 "libstatssocket", 53 "libutils", 54 ], 55 static_libs: [ 56 "[email protected]", 57 "[email protected]", 58 "[email protected]", 59 "android.hardware.common-V2-ndk", 60 "android.hardware.common.fmq-V1-ndk", 61 "android.system.suspend-V1-ndk", 62 "android.system.suspend.control-V1-ndk", 63 "avrcp-target-service", 64 "lib-bt-packets", 65 "lib-bt-packets-avrcp", 66 "lib-bt-packets-base", 67 "libFraunhoferAAC", 68 "libbluetooth-types", 69 "libbluetooth_core_rs", 70 "libbluetooth_core_rs_bridge", 71 "libbluetooth_log", 72 "libbt-audio-asrc", 73 "libbt-audio-hal-interface", 74 "libbt-bta", 75 "libbt-bta-core", 76 "libbt-common", 77 "libbt-hci", 78 "libbt-sbc-decoder", 79 "libbt-sbc-encoder", 80 "libbt-stack", 81 "libbt-stack-core", 82 "libbtcore", 83 "libbtdevice", 84 "libbte", 85 "libbtif", 86 "libbtif-core", 87 "libcom.android.sysprop.bluetooth.wrapped", 88 "libexpresslog", 89 "libflatbuffers-cpp", 90 "libg722codec", 91 "libgmock", 92 "liblc3", 93 "libopus", 94 "libosi", 95 "libstatslog_bt", 96 "libstatslog_express", 97 "libtextclassifier_hash_static", 98 ], 99 header_libs: [ 100 "libbluetooth_headers", 101 "libhardware_headers", 102 ], 103} 104 105cc_test { 106 name: "net_test_bluetooth", 107 test_suites: ["general-tests"], 108 defaults: [ 109 "latest_android_hardware_audio_common_ndk_static", 110 "latest_android_hardware_bluetooth_audio_ndk_static", 111 "latest_android_media_audio_common_types_ndk_static", 112 "mts_defaults", 113 "net_test_defaults", 114 ], 115 srcs: [ 116 "adapter/adapter_unittest.cc", 117 "gatt/gatt_test.cc", 118 "gatt/gatt_unittest.cc", 119 ], 120 static_libs: [ 121 "aics", 122 "bluetooth_flags_c_lib_for_test", 123 "libbluetooth_crypto_toolbox", 124 "libbluetooth_gd", 125 "libbluetooth_hci_pdl", 126 "libbluetooth_log", 127 "libbt-btu-main-thread", 128 "libbt-jni-thread", 129 "libbt-platform-protos-lite", 130 "libchrome", 131 "libevent", 132 "libflags_rust_cpp_bridge", 133 "libprotobuf-cpp-lite", 134 ], 135 aidl: { 136 libs: ["bluetooth_constants"], 137 }, 138 shared_libs: [ 139 "libaconfig_storage_read_api_cc", 140 "libbase", 141 "libbinder", 142 "server_configurable_flags", 143 ], 144 target: { 145 android: { 146 static_libs: [ 147 "[email protected]", 148 "[email protected]", 149 "android.hardware.common-V2-ndk", 150 "android.hardware.common.fmq-V1-ndk", 151 ], 152 }, 153 host: {}, 154 }, 155} 156