blob: 71efb092891c737c64eb768d91999ee5db3dfeae [file] [log] [blame]
Venkatarama Avadhani820b5482022-05-18 15:19:04 +05301// 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 {
Aditya Choudharyc5c6c622024-01-31 11:06:17 +000016 default_team: "trendy_team_tv_os",
Venkatarama Avadhani820b5482022-05-18 15:19:04 +053017 default_applicable_licenses: ["hardware_interfaces_license"],
18}
19
20cc_binary {
Venkatarama Avadhani601d2992022-12-12 22:29:30 +053021 name: "android.hardware.tv.hdmi.cec-service",
22 vintf_fragments: ["android.hardware.tv.hdmi.cec-service.xml"],
Venkatarama Avadhani820b5482022-05-18 15:19:04 +053023 relative_install_path: "hw",
24 vendor: true,
25 cflags: [
26 "-Wall",
27 "-Wextra",
28 ],
Venkatarama Avadhani601d2992022-12-12 22:29:30 +053029 init_rc: ["android.hardware.tv.hdmi.cec-service.rc"],
Venkatarama Avadhani820b5482022-05-18 15:19:04 +053030 srcs: [
31 "serviceMock.cpp",
32 "HdmiCecMock.cpp",
33 ],
34 shared_libs: [
35 "libbinder_ndk",
36 "liblog",
37 "libbase",
38 "libutils",
39 "libhardware",
40 "libhidlbase",
Venkatarama Avadhani601d2992022-12-12 22:29:30 +053041 "android.hardware.tv.hdmi.cec-V1-ndk",
Venkatarama Avadhani820b5482022-05-18 15:19:04 +053042 ],
43}
44
45cc_fuzz {
Venkatarama Avadhani601d2992022-12-12 22:29:30 +053046 name: "android.hardware.tv.hdmi.cec-service_fuzzer",
Venkatarama Avadhani820b5482022-05-18 15:19:04 +053047 defaults: ["service_fuzzer_defaults"],
48 static_libs: [
Venkatarama Avadhani601d2992022-12-12 22:29:30 +053049 "android.hardware.tv.hdmi.cec-V1-ndk",
Venkatarama Avadhani820b5482022-05-18 15:19:04 +053050 "liblog",
51 ],
52 srcs: [
53 "fuzzer.cpp",
54 "HdmiCecMock.cpp",
55 ],
56 fuzz_config: {
57 componentid: 826094,
58 },
59}