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