Weilin Xu | b2a6ca6 | 2022-05-08 23:47:04 +0000 | [diff] [blame] | 1 | // |
| 2 | // Copyright (C) 2022 The Android Open Source Project |
| 3 | // |
| 4 | // Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | // you may not use this file except in compliance with the License. |
| 6 | // You may obtain a copy of the License at |
| 7 | // |
| 8 | // http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | // |
| 10 | // Unless required by applicable law or agreed to in writing, software |
| 11 | // distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | // See the License for the specific language governing permissions and |
| 14 | // limitations under the License. |
| 15 | // |
| 16 | |
| 17 | package { |
| 18 | // See: http://go/android-license-faq |
| 19 | // A large-scale-change added 'default_applicable_licenses' to import |
| 20 | // all of the 'license_kinds' from "hardware_interfaces_license" |
| 21 | // to get the below license kinds: |
| 22 | // SPDX-license-identifier-Apache-2.0 |
Weilin Xu | 3e6625c | 2024-04-16 15:41:26 -0700 | [diff] [blame] | 23 | default_team: "trendy_team_aaos_framework", |
Weilin Xu | b2a6ca6 | 2022-05-08 23:47:04 +0000 | [diff] [blame] | 24 | default_applicable_licenses: ["hardware_interfaces_license"], |
| 25 | } |
| 26 | |
Weilin Xu | acb8fb6 | 2023-05-02 22:03:00 +0000 | [diff] [blame] | 27 | cc_defaults { |
| 28 | name: "BroadcastRadioHalDefaults", |
Weilin Xu | 3e6625c | 2024-04-16 15:41:26 -0700 | [diff] [blame] | 29 | defaults: [ |
| 30 | "latest_android_hardware_broadcastradio_ndk_static", |
| 31 | ], |
Weilin Xu | b2a6ca6 | 2022-05-08 23:47:04 +0000 | [diff] [blame] | 32 | static_libs: [ |
Weilin Xu | 3e6625c | 2024-04-16 15:41:26 -0700 | [diff] [blame] | 33 | "android.hardware.broadcastradio@common-utils-aidl-lib-latest", |
Weilin Xu | b2a6ca6 | 2022-05-08 23:47:04 +0000 | [diff] [blame] | 34 | "android.hardware.broadcastradio@common-utils-lib", |
| 35 | ], |
| 36 | shared_libs: [ |
Weilin Xu | b2a6ca6 | 2022-05-08 23:47:04 +0000 | [diff] [blame] | 37 | "libbase", |
| 38 | "libbinder_ndk", |
| 39 | "liblog", |
| 40 | "libcutils", |
| 41 | ], |
Weilin Xu | acb8fb6 | 2023-05-02 22:03:00 +0000 | [diff] [blame] | 42 | cflags: [ |
| 43 | "-Wall", |
| 44 | "-Wextra", |
| 45 | "-Werror", |
| 46 | ], |
| 47 | } |
| 48 | |
| 49 | cc_binary { |
| 50 | name: "android.hardware.broadcastradio-service.default", |
| 51 | relative_install_path: "hw", |
| 52 | init_rc: ["broadcastradio-default.rc"], |
| 53 | vintf_fragments: ["broadcastradio-default.xml"], |
| 54 | vendor: true, |
| 55 | defaults: [ |
| 56 | "BroadcastRadioHalDefaults", |
| 57 | ], |
| 58 | srcs: [ |
| 59 | "main.cpp", |
| 60 | ], |
| 61 | static_libs: [ |
| 62 | "DefaultBroadcastRadioHal", |
| 63 | ], |
| 64 | } |
| 65 | |
| 66 | cc_library { |
| 67 | name: "DefaultBroadcastRadioHal", |
Steven Moreland | 50f1040 | 2023-10-24 23:40:26 +0000 | [diff] [blame] | 68 | vendor_available: true, |
Weilin Xu | acb8fb6 | 2023-05-02 22:03:00 +0000 | [diff] [blame] | 69 | export_include_dirs: ["."], |
| 70 | defaults: [ |
| 71 | "BroadcastRadioHalDefaults", |
| 72 | ], |
| 73 | srcs: [ |
| 74 | "BroadcastRadio.cpp", |
| 75 | "VirtualProgram.cpp", |
| 76 | "VirtualRadio.cpp", |
| 77 | ], |
| 78 | } |
| 79 | |
| 80 | cc_fuzz { |
| 81 | name: "android.hardware.broadcastradio-service.default_fuzzer", |
Steven Moreland | 50f1040 | 2023-10-24 23:40:26 +0000 | [diff] [blame] | 82 | // TODO(b/307611931): avoid fuzzing on vendor until hermiticity issue is fixed |
| 83 | // vendor: true, |
Weilin Xu | acb8fb6 | 2023-05-02 22:03:00 +0000 | [diff] [blame] | 84 | defaults: [ |
Weilin Xu | 3e6625c | 2024-04-16 15:41:26 -0700 | [diff] [blame] | 85 | "latest_android_hardware_broadcastradio_ndk_static", |
Weilin Xu | acb8fb6 | 2023-05-02 22:03:00 +0000 | [diff] [blame] | 86 | "BroadcastRadioHalDefaults", |
| 87 | "service_fuzzer_defaults", |
| 88 | ], |
| 89 | static_libs: [ |
| 90 | "DefaultBroadcastRadioHal", |
Weilin Xu | acb8fb6 | 2023-05-02 22:03:00 +0000 | [diff] [blame] | 91 | ], |
| 92 | srcs: [ |
| 93 | "fuzzer.cpp", |
| 94 | ], |
| 95 | fuzz_config: { |
| 96 | cc: [ |
| 97 | "xuweilin@google.com", |
| 98 | ], |
| 99 | }, |
Weilin Xu | b2a6ca6 | 2022-05-08 23:47:04 +0000 | [diff] [blame] | 100 | } |