1// Copyright (C) 2017 The Android Open Source Project
2//
3// Licensed under the Apache License, Version 2.0 (the "License");
4// you may not use this file except in compliance with the License.
5// You may obtain a copy of the License at
6//
7//      http://www.apache.org/licenses/LICENSE-2.0
8//
9// Unless required by applicable law or agreed to in writing, software
10// distributed under the License is distributed on an "AS IS" BASIS,
11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12// See the License for the specific language governing permissions and
13// limitations under the License.
14
15// Stub radio HAL module, used for tests
16package {
17    // See: http://go/android-license-faq
18    // A large-scale-change added 'default_applicable_licenses' to import
19    // all of the 'license_kinds' from "hardware_libhardware_license"
20    // to get the below license kinds:
21    //   SPDX-license-identifier-Apache-2.0
22    default_applicable_licenses: ["hardware_libhardware_license"],
23}
24
25cc_library_shared {
26    name: "radio.fm.default",
27    relative_install_path: "hw",
28    vendor: true,
29    srcs: ["radio_hw.c"],
30    cflags: [
31        "-Wall",
32        "-Wno-unused-parameter",
33        "-Werror",
34    ],
35    header_libs: ["libhardware_headers"],
36    shared_libs: [
37        "liblog",
38        "libcutils",
39        "libradio_metadata",
40    ],
41}
42
43// Stub radio tool that can be run in native.
44cc_binary {
45    name: "radio_hal_tool",
46    vendor: true,
47    srcs: ["radio_hal_tool.c"],
48    cflags: [
49        "-Wall",
50        "-Wno-unused-parameter",
51        "-Werror",
52    ],
53    shared_libs: [
54        "libcutils",
55        "libhardware",
56        "liblog",
57        "libradio_metadata",
58    ],
59}
60