1genrule { 2 name: "BluetoothGeneratedPacketsHci_h", 3 defaults: ["BluetoothGeneratedPackets_default"], 4 srcs: ["hci_packets.pdl"], 5 out: ["hci/hci_packets.h"], 6 visibility: ["//visibility:private"], 7} 8 9cc_library_headers { 10 name: "libbluetooth_hci_pdl_header", 11 vendor_available: true, 12 export_include_dirs: [ 13 "include", 14 ], 15 generated_headers: [ 16 "BluetoothGeneratedPacketsHci_h", 17 ], 18 export_generated_headers: [ 19 "BluetoothGeneratedPacketsHci_h", 20 ], 21 host_supported: true, 22 apex_available: ["com.android.bt"], 23 min_sdk_version: "33", 24} 25 26cc_library_static { 27 name: "libbluetooth_hci_pdl", 28 vendor_available: true, 29 srcs: [ 30 "address.cc", 31 "class_of_device.cc", 32 ], 33 header_libs: [ 34 "libbluetooth_hci_pdl_header", 35 ], 36 export_header_lib_headers: [ 37 "libbluetooth_hci_pdl_header", 38 ], 39 // TODO remove this 40 // Directly add the common library + the os library as a dependency that export their header_libs 41 include_dirs: [ 42 "packages/modules/Bluetooth/system/gd", 43 ], 44 host_supported: true, 45 visibility: [ 46 "//hardware/interfaces/bluetooth/aidl/vts", 47 "//packages/modules/Bluetooth/system:__subpackages__", 48 ], 49 apex_available: ["com.android.bt"], 50 min_sdk_version: "33", 51} 52