1// Copyright (C) 2024 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: ["external_edid_decode_license"], 17} 18 19license { 20 name: "external_edid_decode_license", 21 visibility: [":__subpackages__"], 22 license_kinds: [ 23 "SPDX-license-identifier-MIT", 24 ], 25 license_text: ["LICENSE"], 26} 27 28cc_binary { 29 name: "edid-decode", 30 31 srcs: [ 32 "edid-decode.cpp", 33 "edid-decode.cpp", 34 "parse-base-block.cpp", 35 "parse-cta-block.cpp", 36 "parse-displayid-block.cpp", 37 "parse-ls-ext-block.cpp", 38 "parse-di-ext-block.cpp", 39 "parse-vtb-ext-block.cpp", 40 "calc-gtf-cvt.cpp", 41 ], 42 43 cflags: [ 44 "-Wall", 45 "-Wextra", 46 "-Wno-missing-field-initializers", 47 "-Wno-unused-parameter", 48 "-Wno-implicit-fallthrough", 49 // edid-decode version = SHA + DATE 50 // Leave version blank by making SHA and DATE blank 51 "-DSHA=", 52 "-DDATE=", 53 ], 54 55 host_supported: true, 56 vendor_available: true, 57} 58