1// Copyright (C) 2022 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
15package {
16    default_team: "trendy_team_tv_os",
17    default_applicable_licenses: ["hardware_interfaces_license"],
18}
19
20cc_binary {
21    name: "android.hardware.tv.hdmi.earc-service",
22    vintf_fragments: ["android.hardware.tv.hdmi.earc-service.xml"],
23    relative_install_path: "hw",
24    vendor: true,
25    cflags: [
26        "-Wall",
27        "-Wextra",
28    ],
29    init_rc: ["android.hardware.tv.hdmi.earc-service.rc"],
30    srcs: [
31        "serviceMock.cpp",
32        "EArcMock.cpp",
33    ],
34    shared_libs: [
35        "libbinder_ndk",
36        "liblog",
37        "libbase",
38        "libutils",
39        "libhardware",
40        "libhidlbase",
41        "android.hardware.tv.hdmi.earc-V1-ndk",
42    ],
43}
44
45cc_fuzz {
46    name: "android.hardware.tv.hdmi.earc-service_fuzzer",
47    defaults: ["service_fuzzer_defaults"],
48    static_libs: [
49        "android.hardware.tv.hdmi.earc-V1-ndk",
50        "liblog",
51    ],
52    srcs: [
53        "fuzzer.cpp",
54        "EArcMock.cpp",
55    ],
56    fuzz_config: {
57        componentid: 826094,
58    },
59}
60