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 vintf_fragments: ["android.hardware.tv.cec@1.0.xml"], 40 41 relative_install_path: "hw", 42 43 shared_libs: [ 44 "liblog", 45 "libcutils", 46 "libhardware", 47 ], 48 49} 50 51//####################################################### 52cc_binary { 53 name: "hdmicec_test", 54 defaults: ["hidl_defaults"], 55 vendor: true, 56 srcs: ["hdmi_cec_test_hal.c"] + ["hdmi_cec.c"], 57 cflags: [ 58 "-Wno-error", 59 "-Wno-unused-parameter", 60 ], 61 header_libs: ["libhardware_headers"], 62 shared_libs: [ 63 "liblog", 64 "libcutils", 65 ], 66 67} 68