blob: d7bb7514b84c68dcc3833ec112fa0e74c88ac30c [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
23 default_applicable_licenses: ["hardware_interfaces_license"],
24}
25
Weilin Xuacb8fb62023-05-02 22:03:00 +000026cc_defaults {
27 name: "BroadcastRadioHalDefaults",
Weilin Xub2a6ca62022-05-08 23:47:04 +000028 static_libs: [
Weilin Xue3b5cda2023-12-15 16:05:31 -080029 "android.hardware.broadcastradio-V2-ndk",
Weilin Xu31c541c2023-09-07 17:00:57 -070030 "android.hardware.broadcastradio@common-utils-aidl-lib-V2",
Weilin Xub2a6ca62022-05-08 23:47:04 +000031 "android.hardware.broadcastradio@common-utils-lib",
32 ],
33 shared_libs: [
Weilin Xub2a6ca62022-05-08 23:47:04 +000034 "libbase",
35 "libbinder_ndk",
36 "liblog",
37 "libcutils",
38 ],
Weilin Xuacb8fb62023-05-02 22:03:00 +000039 cflags: [
40 "-Wall",
41 "-Wextra",
42 "-Werror",
43 ],
44}
45
46cc_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
63cc_library {
64 name: "DefaultBroadcastRadioHal",
Steven Moreland50f10402023-10-24 23:40:26 +000065 vendor_available: true,
Weilin Xuacb8fb62023-05-02 22:03:00 +000066 export_include_dirs: ["."],
67 defaults: [
68 "BroadcastRadioHalDefaults",
69 ],
70 srcs: [
71 "BroadcastRadio.cpp",
72 "VirtualProgram.cpp",
73 "VirtualRadio.cpp",
74 ],
75}
76
77cc_fuzz {
78 name: "android.hardware.broadcastradio-service.default_fuzzer",
Steven Moreland50f10402023-10-24 23:40:26 +000079 // TODO(b/307611931): avoid fuzzing on vendor until hermiticity issue is fixed
80 // vendor: true,
Weilin Xuacb8fb62023-05-02 22:03:00 +000081 defaults: [
82 "BroadcastRadioHalDefaults",
83 "service_fuzzer_defaults",
84 ],
85 static_libs: [
86 "DefaultBroadcastRadioHal",
Weilin Xu31c541c2023-09-07 17:00:57 -070087 "android.hardware.broadcastradio-V2-ndk",
Weilin Xuacb8fb62023-05-02 22:03:00 +000088 ],
89 srcs: [
90 "fuzzer.cpp",
91 ],
92 fuzz_config: {
93 cc: [
94 "xuweilin@google.com",
95 ],
96 },
Weilin Xub2a6ca62022-05-08 23:47:04 +000097}