blob: 1d1bef71cbd65c290581e39bec0f6023c3b64acc [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: [
29 "android.hardware.broadcastradio@common-utils-aidl-lib",
30 "android.hardware.broadcastradio@common-utils-lib",
31 ],
32 shared_libs: [
33 "android.hardware.broadcastradio-V1-ndk",
34 "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",
65 vendor: true,
66 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",
79 vendor: true,
80 defaults: [
81 "BroadcastRadioHalDefaults",
82 "service_fuzzer_defaults",
83 ],
84 static_libs: [
85 "DefaultBroadcastRadioHal",
86 "android.hardware.broadcastradio-V1-ndk",
87 ],
88 srcs: [
89 "fuzzer.cpp",
90 ],
91 fuzz_config: {
92 cc: [
93 "xuweilin@google.com",
94 ],
95 },
Weilin Xub2a6ca62022-05-08 23:47:04 +000096}