2022-05-09 01:47:04 +02:00
|
|
|
//
|
|
|
|
// Copyright (C) 2022 The Android Open Source Project
|
|
|
|
//
|
|
|
|
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
|
// you may not use this file except in compliance with the License.
|
|
|
|
// You may obtain a copy of the License at
|
|
|
|
//
|
|
|
|
// http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
//
|
|
|
|
// Unless required by applicable law or agreed to in writing, software
|
|
|
|
// distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
// See the License for the specific language governing permissions and
|
|
|
|
// limitations under the License.
|
|
|
|
//
|
|
|
|
|
|
|
|
package {
|
|
|
|
// See: http://go/android-license-faq
|
|
|
|
// A large-scale-change added 'default_applicable_licenses' to import
|
|
|
|
// all of the 'license_kinds' from "hardware_interfaces_license"
|
|
|
|
// to get the below license kinds:
|
|
|
|
// SPDX-license-identifier-Apache-2.0
|
|
|
|
default_applicable_licenses: ["hardware_interfaces_license"],
|
|
|
|
}
|
|
|
|
|
2023-05-03 00:03:00 +02:00
|
|
|
cc_defaults {
|
|
|
|
name: "BroadcastRadioHalDefaults",
|
|
|
|
static_libs: [
|
2023-09-08 02:00:57 +02:00
|
|
|
"android.hardware.broadcastradio@common-utils-aidl-lib-V2",
|
2023-05-03 00:03:00 +02:00
|
|
|
"android.hardware.broadcastradio@common-utils-lib",
|
|
|
|
],
|
|
|
|
shared_libs: [
|
2023-09-08 02:00:57 +02:00
|
|
|
"android.hardware.broadcastradio-V2-ndk",
|
2023-05-03 00:03:00 +02:00
|
|
|
"libbase",
|
|
|
|
"libbinder_ndk",
|
|
|
|
"liblog",
|
|
|
|
"libcutils",
|
|
|
|
],
|
|
|
|
cflags: [
|
|
|
|
"-Wall",
|
|
|
|
"-Wextra",
|
|
|
|
"-Werror",
|
|
|
|
],
|
|
|
|
}
|
|
|
|
|
2022-05-09 01:47:04 +02:00
|
|
|
cc_binary {
|
|
|
|
name: "android.hardware.broadcastradio-service.default",
|
|
|
|
relative_install_path: "hw",
|
|
|
|
init_rc: ["broadcastradio-default.rc"],
|
|
|
|
vintf_fragments: ["broadcastradio-default.xml"],
|
|
|
|
vendor: true,
|
2023-05-03 00:03:00 +02:00
|
|
|
defaults: [
|
|
|
|
"BroadcastRadioHalDefaults",
|
2022-05-09 01:47:04 +02:00
|
|
|
],
|
|
|
|
srcs: [
|
|
|
|
"main.cpp",
|
2023-05-03 00:03:00 +02:00
|
|
|
],
|
|
|
|
static_libs: [
|
|
|
|
"DefaultBroadcastRadioHal",
|
|
|
|
],
|
|
|
|
}
|
|
|
|
|
|
|
|
cc_library {
|
|
|
|
name: "DefaultBroadcastRadioHal",
|
2023-10-25 01:40:26 +02:00
|
|
|
vendor_available: true,
|
2023-05-03 00:03:00 +02:00
|
|
|
export_include_dirs: ["."],
|
|
|
|
defaults: [
|
|
|
|
"BroadcastRadioHalDefaults",
|
|
|
|
],
|
|
|
|
srcs: [
|
|
|
|
"BroadcastRadio.cpp",
|
2022-05-09 01:47:04 +02:00
|
|
|
"VirtualProgram.cpp",
|
|
|
|
"VirtualRadio.cpp",
|
|
|
|
],
|
2023-05-03 00:03:00 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
cc_fuzz {
|
|
|
|
name: "android.hardware.broadcastradio-service.default_fuzzer",
|
2023-10-25 01:40:26 +02:00
|
|
|
// TODO(b/307611931): avoid fuzzing on vendor until hermiticity issue is fixed
|
|
|
|
// vendor: true,
|
2023-05-03 00:03:00 +02:00
|
|
|
defaults: [
|
|
|
|
"BroadcastRadioHalDefaults",
|
|
|
|
"service_fuzzer_defaults",
|
2022-05-09 01:47:04 +02:00
|
|
|
],
|
2023-05-03 00:03:00 +02:00
|
|
|
static_libs: [
|
|
|
|
"DefaultBroadcastRadioHal",
|
2023-09-08 02:00:57 +02:00
|
|
|
"android.hardware.broadcastradio-V2-ndk",
|
2022-05-09 01:47:04 +02:00
|
|
|
],
|
2023-05-03 00:03:00 +02:00
|
|
|
srcs: [
|
|
|
|
"fuzzer.cpp",
|
|
|
|
],
|
|
|
|
fuzz_config: {
|
|
|
|
cc: [
|
|
|
|
"xuweilin@google.com",
|
|
|
|
],
|
|
|
|
},
|
2022-05-09 01:47:04 +02:00
|
|
|
}
|