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 |
| 23 | default_applicable_licenses: ["hardware_interfaces_license"], |
| 24 | } |
| 25 | |
Weilin Xu | acb8fb6 | 2023-05-02 22:03:00 +0000 | [diff] [blame] | 26 | cc_defaults { |
| 27 | name: "BroadcastRadioHalDefaults", |
Weilin Xu | b2a6ca6 | 2022-05-08 23:47:04 +0000 | [diff] [blame] | 28 | static_libs: [ |
Weilin Xu | e3b5cda | 2023-12-15 16:05:31 -0800 | [diff] [blame] | 29 | "android.hardware.broadcastradio-V2-ndk", |
Weilin Xu | 31c541c | 2023-09-07 17:00:57 -0700 | [diff] [blame] | 30 | "android.hardware.broadcastradio@common-utils-aidl-lib-V2", |
Weilin Xu | b2a6ca6 | 2022-05-08 23:47:04 +0000 | [diff] [blame] | 31 | "android.hardware.broadcastradio@common-utils-lib", |
| 32 | ], |
| 33 | shared_libs: [ |
Weilin Xu | b2a6ca6 | 2022-05-08 23:47:04 +0000 | [diff] [blame] | 34 | "libbase", |
| 35 | "libbinder_ndk", |
| 36 | "liblog", |
| 37 | "libcutils", |
| 38 | ], |
Weilin Xu | acb8fb6 | 2023-05-02 22:03:00 +0000 | [diff] [blame] | 39 | cflags: [ |
| 40 | "-Wall", |
| 41 | "-Wextra", |
| 42 | "-Werror", |
| 43 | ], |
| 44 | } |
| 45 | |
| 46 | cc_binary { |
| 47 | name: "android.hardware.broadcastradio-service.default", |
| 48 | relative_install_path: "hw", |
| 49 | init_rc: ["broadcastradio-default.rc"], |
| 50 | vintf_fragments: ["broadcastradio-default.xml"], |
| 51 | vendor: true, |
| 52 | defaults: [ |
| 53 | "BroadcastRadioHalDefaults", |
| 54 | ], |
| 55 | srcs: [ |
| 56 | "main.cpp", |
| 57 | ], |
| 58 | static_libs: [ |
| 59 | "DefaultBroadcastRadioHal", |
| 60 | ], |
| 61 | } |
| 62 | |
| 63 | cc_library { |
| 64 | name: "DefaultBroadcastRadioHal", |
Steven Moreland | 50f1040 | 2023-10-24 23:40:26 +0000 | [diff] [blame] | 65 | vendor_available: true, |
Weilin Xu | acb8fb6 | 2023-05-02 22:03:00 +0000 | [diff] [blame] | 66 | export_include_dirs: ["."], |
| 67 | defaults: [ |
| 68 | "BroadcastRadioHalDefaults", |
| 69 | ], |
| 70 | srcs: [ |
| 71 | "BroadcastRadio.cpp", |
| 72 | "VirtualProgram.cpp", |
| 73 | "VirtualRadio.cpp", |
| 74 | ], |
| 75 | } |
| 76 | |
| 77 | cc_fuzz { |
| 78 | name: "android.hardware.broadcastradio-service.default_fuzzer", |
Steven Moreland | 50f1040 | 2023-10-24 23:40:26 +0000 | [diff] [blame] | 79 | // TODO(b/307611931): avoid fuzzing on vendor until hermiticity issue is fixed |
| 80 | // vendor: true, |
Weilin Xu | acb8fb6 | 2023-05-02 22:03:00 +0000 | [diff] [blame] | 81 | defaults: [ |
| 82 | "BroadcastRadioHalDefaults", |
| 83 | "service_fuzzer_defaults", |
| 84 | ], |
| 85 | static_libs: [ |
| 86 | "DefaultBroadcastRadioHal", |
Weilin Xu | 31c541c | 2023-09-07 17:00:57 -0700 | [diff] [blame] | 87 | "android.hardware.broadcastradio-V2-ndk", |
Weilin Xu | acb8fb6 | 2023-05-02 22:03:00 +0000 | [diff] [blame] | 88 | ], |
| 89 | srcs: [ |
| 90 | "fuzzer.cpp", |
| 91 | ], |
| 92 | fuzz_config: { |
| 93 | cc: [ |
| 94 | "xuweilin@google.com", |
| 95 | ], |
| 96 | }, |
Weilin Xu | b2a6ca6 | 2022-05-08 23:47:04 +0000 | [diff] [blame] | 97 | } |