blob: ea4bb946875e686ee3fa80656781d84dcf92c390 [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 {
16 default_applicable_licenses: ["hardware_interfaces_license"],
17}
18
19cc_binary {
Venkatarama Avadhani601d2992022-12-12 22:29:30 +053020 name: "android.hardware.tv.hdmi.cec-service",
21 vintf_fragments: ["android.hardware.tv.hdmi.cec-service.xml"],
Venkatarama Avadhani820b5482022-05-18 15:19:04 +053022 relative_install_path: "hw",
23 vendor: true,
24 cflags: [
25 "-Wall",
26 "-Wextra",
27 ],
Venkatarama Avadhani601d2992022-12-12 22:29:30 +053028 init_rc: ["android.hardware.tv.hdmi.cec-service.rc"],
Venkatarama Avadhani820b5482022-05-18 15:19:04 +053029 srcs: [
30 "serviceMock.cpp",
31 "HdmiCecMock.cpp",
32 ],
33 shared_libs: [
34 "libbinder_ndk",
35 "liblog",
36 "libbase",
37 "libutils",
38 "libhardware",
39 "libhidlbase",
Venkatarama Avadhani601d2992022-12-12 22:29:30 +053040 "android.hardware.tv.hdmi.cec-V1-ndk",
Venkatarama Avadhani820b5482022-05-18 15:19:04 +053041 ],
42}
43
44cc_fuzz {
Venkatarama Avadhani601d2992022-12-12 22:29:30 +053045 name: "android.hardware.tv.hdmi.cec-service_fuzzer",
Venkatarama Avadhani820b5482022-05-18 15:19:04 +053046 defaults: ["service_fuzzer_defaults"],
47 static_libs: [
Venkatarama Avadhani601d2992022-12-12 22:29:30 +053048 "android.hardware.tv.hdmi.cec-V1-ndk",
Venkatarama Avadhani820b5482022-05-18 15:19:04 +053049 "liblog",
50 ],
51 srcs: [
52 "fuzzer.cpp",
53 "HdmiCecMock.cpp",
54 ],
55 fuzz_config: {
56 componentid: 826094,
57 },
58}