1*ec779b8eSAndroid Build Coastguard Worker// Copyright (C) 2020 The Android Open Source Project 2*ec779b8eSAndroid Build Coastguard Worker// 3*ec779b8eSAndroid Build Coastguard Worker// Licensed under the Apache License, Version 2.0 (the "License"); 4*ec779b8eSAndroid Build Coastguard Worker// you may not use this file except in compliance with the License. 5*ec779b8eSAndroid Build Coastguard Worker// You may obtain a copy of the License at 6*ec779b8eSAndroid Build Coastguard Worker// 7*ec779b8eSAndroid Build Coastguard Worker// http://www.apache.org/licenses/LICENSE-2.0 8*ec779b8eSAndroid Build Coastguard Worker// 9*ec779b8eSAndroid Build Coastguard Worker// Unless required by applicable law or agreed to in writing, software 10*ec779b8eSAndroid Build Coastguard Worker// distributed under the License is distributed on an "AS IS" BASIS, 11*ec779b8eSAndroid Build Coastguard Worker// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12*ec779b8eSAndroid Build Coastguard Worker// See the License for the specific language governing permissions and 13*ec779b8eSAndroid Build Coastguard Worker// limitations under the License. 14*ec779b8eSAndroid Build Coastguard Worker 15*ec779b8eSAndroid Build Coastguard Worker// This is the version of the drm metrics configured for protobuf full on host. 16*ec779b8eSAndroid Build Coastguard Worker// It is used by the metrics_dump tool. 17*ec779b8eSAndroid Build Coastguard Worker 18*ec779b8eSAndroid Build Coastguard Workerpackage { 19*ec779b8eSAndroid Build Coastguard Worker // See: http://go/android-license-faq 20*ec779b8eSAndroid Build Coastguard Worker // A large-scale-change added 'default_applicable_licenses' to import 21*ec779b8eSAndroid Build Coastguard Worker // all of the 'license_kinds' from "frameworks_av_license" 22*ec779b8eSAndroid Build Coastguard Worker // to get the below license kinds: 23*ec779b8eSAndroid Build Coastguard Worker // SPDX-license-identifier-Apache-2.0 24*ec779b8eSAndroid Build Coastguard Worker default_applicable_licenses: ["frameworks_av_license"], 25*ec779b8eSAndroid Build Coastguard Worker} 26*ec779b8eSAndroid Build Coastguard Worker 27*ec779b8eSAndroid Build Coastguard Workercc_library_host_shared { 28*ec779b8eSAndroid Build Coastguard Worker name: "libdrm_metrics_protos_full_host", 29*ec779b8eSAndroid Build Coastguard Worker vendor_available: true, 30*ec779b8eSAndroid Build Coastguard Worker 31*ec779b8eSAndroid Build Coastguard Worker include_dirs: ["external/protobuf/src"], 32*ec779b8eSAndroid Build Coastguard Worker 33*ec779b8eSAndroid Build Coastguard Worker srcs: [ 34*ec779b8eSAndroid Build Coastguard Worker "metrics.proto", 35*ec779b8eSAndroid Build Coastguard Worker ], 36*ec779b8eSAndroid Build Coastguard Worker 37*ec779b8eSAndroid Build Coastguard Worker proto: { 38*ec779b8eSAndroid Build Coastguard Worker export_proto_headers: true, 39*ec779b8eSAndroid Build Coastguard Worker type: "full", 40*ec779b8eSAndroid Build Coastguard Worker }, 41*ec779b8eSAndroid Build Coastguard Worker 42*ec779b8eSAndroid Build Coastguard Worker cflags: [ 43*ec779b8eSAndroid Build Coastguard Worker // Suppress unused parameter error. This error occurs 44*ec779b8eSAndroid Build Coastguard Worker // when using the map type in a proto definition. 45*ec779b8eSAndroid Build Coastguard Worker "-Wno-unused-parameter", 46*ec779b8eSAndroid Build Coastguard Worker ], 47*ec779b8eSAndroid Build Coastguard Worker} 48