Myles Watson | 6d5e772 | 2022-09-30 06:22:43 -0700 | [diff] [blame] | 1 | package { |
| 2 | default_applicable_licenses: ["Android-Apache-2.0"], |
| 3 | } |
| 4 | |
| 5 | cc_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 | |
| 26 | cc_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", |
Myles Watson | efa25d7 | 2022-10-03 16:27:32 -0700 | [diff] [blame] | 33 | "net_bluetooth_mgmt.cpp", |
Myles Watson | 6d5e772 | 2022-09-30 06:22:43 -0700 | [diff] [blame] | 34 | ], |
| 35 | } |
| 36 | |
| 37 | cc_binary { |
| 38 | name: "android.hardware.bluetooth-service.default", |
| 39 | relative_install_path: "hw", |
| 40 | init_rc: ["bluetooth-service-default.rc"], |
Myles Watson | efa25d7 | 2022-10-03 16:27:32 -0700 | [diff] [blame] | 41 | vintf_fragments: [":manifest_android.hardware.bluetooth-service.default.xml"], |
Myles Watson | 6d5e772 | 2022-09-30 06:22:43 -0700 | [diff] [blame] | 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 | |
| 60 | cc_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 | } |
Myles Watson | efa25d7 | 2022-10-03 16:27:32 -0700 | [diff] [blame] | 81 | |
| 82 | filegroup { |
| 83 | name: "manifest_android.hardware.bluetooth-service.default.xml", |
| 84 | srcs: ["bluetooth-service-default.xml"], |
| 85 | } |