1package { 2 default_applicable_licenses: ["Android-Apache-2.0"], 3} 4 5cc_defaults { 6 name: "android.hardware.bluetooth-service-build-defaults", 7 cflags: [ 8 "-Wall", 9 "-Wextra", 10 ], 11 shared_libs: [ 12 "android.hardware.bluetooth-V1-ndk", 13 "libbase", 14 "libbinder_ndk", 15 "libcutils", 16 "libhidlbase", 17 "liblog", 18 "libutils", 19 ], 20 static_libs: [ 21 "android.hardware.bluetooth.async", 22 "android.hardware.bluetooth.hci", 23 ], 24} 25 26cc_library_static { 27 name: "libbluetoothhcihalimpl", 28 vendor_available: true, 29 host_supported: true, 30 defaults: ["android.hardware.bluetooth-service-build-defaults"], 31 srcs: [ 32 "BluetoothHci.cpp", 33 "net_bluetooth_mgmt.cpp", 34 ], 35} 36 37cc_binary { 38 name: "android.hardware.bluetooth-service.default", 39 relative_install_path: "hw", 40 init_rc: ["bluetooth-service-default.rc"], 41 vintf_fragments: [":manifest_android.hardware.bluetooth-service.default.xml"], 42 vendor: true, 43 defaults: ["android.hardware.bluetooth-service-build-defaults"], 44 srcs: [ 45 "service.cpp", 46 ], 47 shared_libs: [ 48 "android.hardware.bluetooth-V1-ndk", 49 "libbase", 50 "libbinder_ndk", 51 "libhidlbase", 52 "libutils", 53 "liblog", 54 ], 55 static_libs: [ 56 "libbluetoothhcihalimpl", 57 ], 58} 59 60cc_fuzz { 61 name: "android.hardware.bluetooth-service.default_fuzzer", 62 host_supported: true, 63 defaults: ["service_fuzzer_defaults"], 64 srcs: [ 65 "test/fuzzer.cpp", 66 ], 67 static_libs: [ 68 "android.hardware.bluetooth.async", 69 "android.hardware.bluetooth.hci", 70 "android.hardware.bluetooth-V1-ndk", 71 "libbluetoothhcihalimpl", 72 "liblog", 73 ], 74 fuzz_config: { 75 componentid: 27441, 76 cc: [ 77 "mylesgw@google.com", 78 ], 79 }, 80} 81 82filegroup { 83 name: "manifest_android.hardware.bluetooth-service.default.xml", 84 srcs: ["bluetooth-service-default.xml"], 85} 86