1//
2// Copyright (C) 2019 The Android Open-Source Project
3//
4// Licensed under the Apache License, Version 2.0 (the "License");
5// you may not use this file except in compliance with the License.
6// You may obtain a copy of the License at
7//
8//      http://www.apache.org/licenses/LICENSE-2.0
9//
10// Unless required by applicable law or agreed to in writing, software
11// distributed under the License is distributed on an "AS IS" BASIS,
12// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13// See the License for the specific language governing permissions and
14// limitations under the License.
15//
16
17// WARNING: Everything listed here will be built on ALL platforms,
18// including x86, the emulator, and the SDK.  Modules must be uniquely
19// named (liblights.tuna), and must build everywhere, or limit themselves
20// to only building on ARM if they include assembly. Individual makefiles
21// are responsible for having their own logic, for fine-grained control.
22
23// HAL module implementation, not prelinked and stored in
24// hw/<COPYPIX_HARDWARE_MODULE_ID>.<ro.board.platform>.so
25package {
26    // See: http://go/android-license-faq
27    // A large-scale-change added 'default_applicable_licenses' to import
28    // all of the 'license_kinds' from "device_amlogic_yukawa_license"
29    // to get the below license kinds:
30    //   SPDX-license-identifier-Apache-2.0
31    default_applicable_licenses: ["device_amlogic_yukawa_license"],
32}
33
34cc_library_shared {
35    name: "hdmi_cec.yukawa",
36    proprietary: true,
37    srcs: ["hdmi_cec.c"],
38    cflags: ["-Werror"],
39
40    relative_install_path: "hw",
41
42    shared_libs: [
43        "liblog",
44        "libcutils",
45        "libhardware",
46    ],
47
48}
49
50//#######################################################
51cc_binary {
52    name: "hdmicec_test",
53    defaults: ["hidl_defaults"],
54    vendor: true,
55    srcs: ["hdmi_cec_test_hal.c"] + ["hdmi_cec.c"],
56    cflags: [
57        "-Wno-error",
58        "-Wno-unused-parameter",
59    ],
60    header_libs: ["libhardware_headers"],
61    shared_libs: [
62        "liblog",
63        "libcutils",
64    ],
65
66}
67