• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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
17package {
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_team: "trendy_team_aaos_framework",
24    default_applicable_licenses: ["hardware_interfaces_license"],
25}
26
27cc_defaults {
28    name: "BroadcastRadioHalDefaults",
29    defaults: [
30        "latest_android_hardware_broadcastradio_ndk_static",
31    ],
32    static_libs: [
33        "android.hardware.broadcastradio@common-utils-aidl-lib-latest",
34        "android.hardware.broadcastradio@common-utils-lib",
35    ],
36    shared_libs: [
37        "libbase",
38        "libbinder_ndk",
39        "liblog",
40        "libcutils",
41    ],
42    cflags: [
43        "-Wall",
44        "-Wextra",
45        "-Werror",
46    ],
47}
48
49cc_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
66cc_library {
67    name: "DefaultBroadcastRadioHal",
68    vendor_available: true,
69    export_include_dirs: ["."],
70    defaults: [
71        "BroadcastRadioHalDefaults",
72    ],
73    srcs: [
74        "BroadcastRadio.cpp",
75        "VirtualProgram.cpp",
76        "VirtualRadio.cpp",
77    ],
78}
79
80cc_fuzz {
81    name: "android.hardware.broadcastradio-service.default_fuzzer",
82    // TODO(b/307611931): avoid fuzzing on vendor until hermiticity issue is fixed
83    // vendor: true,
84    defaults: [
85        "latest_android_hardware_broadcastradio_ndk_static",
86        "BroadcastRadioHalDefaults",
87        "service_fuzzer_defaults",
88    ],
89    static_libs: [
90        "DefaultBroadcastRadioHal",
91    ],
92    srcs: [
93        "fuzzer.cpp",
94    ],
95    fuzz_config: {
96        cc: [
97            "xuweilin@google.com",
98        ],
99    },
100}
101