1// Bluetooth types 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_headers { 12 name: "libbluetooth-types-header", 13 export_include_dirs: ["./"], 14 vendor_available: true, 15 host_supported: true, 16 // TODO(b/153609531): remove when no longer needed. 17 native_bridge_supported: true, 18 apex_available: [ 19 "//apex_available:platform", 20 "com.android.media", 21 "com.android.media.swcodec", 22 "com.android.bluetooth.updatable" 23 ], 24 // As part of updatable mainline modules(media, swcodec), it should support at least 29(Q) 25 min_sdk_version: "29", 26} 27 28cc_library_static { 29 name: "libbluetooth-types", 30 vendor_available: true, 31 defaults: ["fluoride_types_defaults"], 32 cflags: [ 33 /* we export all classes, so change default visibility, instead of having EXPORT_SYMBOL on each class*/ 34 "-fvisibility=default", 35 ], 36 host_supported: true, 37 srcs: [ 38 "class_of_device.cc", 39 "raw_address.cc", 40 "bluetooth/uuid.cc", 41 ], 42 header_libs: ["libbluetooth-types-header"], 43 export_header_lib_headers: ["libbluetooth-types-header"], 44} 45 46// ======================================================== 47cc_test { 48 name: "net_test_types", 49 test_suites: ["device-tests"], 50 defaults: ["fluoride_defaults"], 51 host_supported: true, 52 srcs: [ 53 "test/class_of_device_unittest.cc", 54 "test/raw_address_unittest.cc", 55 "test/bluetooth/uuid_unittest.cc", 56 ], 57} 58