blob: b620a5956b6b1e3f85553b84e988cce0cdbcb981 [file] [log] [blame]
Weilin Xub2a6ca62022-05-08 23:47:04 +00001//
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
Weilin Xu3e6625c2024-04-16 15:41:26 -070023 default_team: "trendy_team_aaos_framework",
Weilin Xub2a6ca62022-05-08 23:47:04 +000024 default_applicable_licenses: ["hardware_interfaces_license"],
25}
26
Weilin Xuacb8fb62023-05-02 22:03:00 +000027cc_defaults {
28 name: "BroadcastRadioHalDefaults",
Weilin Xu3e6625c2024-04-16 15:41:26 -070029 defaults: [
30 "latest_android_hardware_broadcastradio_ndk_static",
31 ],
Weilin Xub2a6ca62022-05-08 23:47:04 +000032 static_libs: [
Weilin Xu3e6625c2024-04-16 15:41:26 -070033 "android.hardware.broadcastradio@common-utils-aidl-lib-latest",
Weilin Xub2a6ca62022-05-08 23:47:04 +000034 "android.hardware.broadcastradio@common-utils-lib",
35 ],
36 shared_libs: [
Weilin Xub2a6ca62022-05-08 23:47:04 +000037 "libbase",
38 "libbinder_ndk",
39 "liblog",
40 "libcutils",
41 ],
Weilin Xuacb8fb62023-05-02 22:03:00 +000042 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",
Steven Moreland50f10402023-10-24 23:40:26 +000068 vendor_available: true,
Weilin Xuacb8fb62023-05-02 22:03:00 +000069 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",
Steven Moreland50f10402023-10-24 23:40:26 +000082 // TODO(b/307611931): avoid fuzzing on vendor until hermiticity issue is fixed
83 // vendor: true,
Weilin Xuacb8fb62023-05-02 22:03:00 +000084 defaults: [
Weilin Xu3e6625c2024-04-16 15:41:26 -070085 "latest_android_hardware_broadcastradio_ndk_static",
Weilin Xuacb8fb62023-05-02 22:03:00 +000086 "BroadcastRadioHalDefaults",
87 "service_fuzzer_defaults",
88 ],
89 static_libs: [
90 "DefaultBroadcastRadioHal",
Weilin Xuacb8fb62023-05-02 22:03:00 +000091 ],
92 srcs: [
93 "fuzzer.cpp",
94 ],
95 fuzz_config: {
96 cc: [
97 "xuweilin@google.com",
98 ],
99 },
Weilin Xub2a6ca62022-05-08 23:47:04 +0000100}