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", |
| 33 | ], |
| 34 | } |
| 35 | |
| 36 | cc_binary { |
| 37 | name: "android.hardware.bluetooth-service.default", |
| 38 | relative_install_path: "hw", |
| 39 | init_rc: ["bluetooth-service-default.rc"], |
| 40 | vintf_fragments: ["bluetooth-service-default.xml"], |
| 41 | vendor: true, |
| 42 | defaults: ["android.hardware.bluetooth-service-build-defaults"], |
| 43 | srcs: [ |
| 44 | "service.cpp", |
| 45 | ], |
| 46 | shared_libs: [ |
| 47 | "android.hardware.bluetooth-V1-ndk", |
| 48 | "libbase", |
| 49 | "libbinder_ndk", |
| 50 | "libhidlbase", |
| 51 | "libutils", |
| 52 | "liblog", |
| 53 | ], |
| 54 | static_libs: [ |
| 55 | "libbluetoothhcihalimpl", |
| 56 | ], |
| 57 | } |
| 58 | |
| 59 | cc_fuzz { |
| 60 | name: "android.hardware.bluetooth-service.default_fuzzer", |
| 61 | host_supported: true, |
| 62 | defaults: ["service_fuzzer_defaults"], |
| 63 | srcs: [ |
| 64 | "test/fuzzer.cpp", |
| 65 | ], |
| 66 | static_libs: [ |
| 67 | "android.hardware.bluetooth.async", |
| 68 | "android.hardware.bluetooth.hci", |
| 69 | "android.hardware.bluetooth-V1-ndk", |
| 70 | "libbluetoothhcihalimpl", |
| 71 | "liblog", |
| 72 | ], |
| 73 | fuzz_config: { |
| 74 | componentid: 27441, |
| 75 | cc: [ |
| 76 | "mylesgw@google.com", |
| 77 | ], |
| 78 | }, |
| 79 | } |