1*e01b6f76SAndroid Build Coastguard Worker// Copyright (C) 2008 The Android Open Source Project 2*e01b6f76SAndroid Build Coastguard Worker// 3*e01b6f76SAndroid Build Coastguard Worker// Licensed under the Apache License, Version 2.0 (the "License"); 4*e01b6f76SAndroid Build Coastguard Worker// you may not use this file except in compliance with the License. 5*e01b6f76SAndroid Build Coastguard Worker// You may obtain a copy of the License at 6*e01b6f76SAndroid Build Coastguard Worker// 7*e01b6f76SAndroid Build Coastguard Worker// http://www.apache.org/licenses/LICENSE-2.0 8*e01b6f76SAndroid Build Coastguard Worker// 9*e01b6f76SAndroid Build Coastguard Worker// Unless required by applicable law or agreed to in writing, software 10*e01b6f76SAndroid Build Coastguard Worker// distributed under the License is distributed on an "AS IS" BASIS, 11*e01b6f76SAndroid Build Coastguard Worker// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12*e01b6f76SAndroid Build Coastguard Worker// See the License for the specific language governing permissions and 13*e01b6f76SAndroid Build Coastguard Worker// limitations under the License. 14*e01b6f76SAndroid Build Coastguard Worker 15*e01b6f76SAndroid Build Coastguard Worker// HAL module implementation stored in 16*e01b6f76SAndroid Build Coastguard Worker// hw/<OVERLAY_HARDWARE_MODULE_ID>.<ro.product.board>.so 17*e01b6f76SAndroid Build Coastguard Workerpackage { 18*e01b6f76SAndroid Build Coastguard Worker // See: http://go/android-license-faq 19*e01b6f76SAndroid Build Coastguard Worker default_applicable_licenses: [ 20*e01b6f76SAndroid Build Coastguard Worker "hardware_libhardware_license", 21*e01b6f76SAndroid Build Coastguard Worker ], 22*e01b6f76SAndroid Build Coastguard Worker} 23*e01b6f76SAndroid Build Coastguard Worker 24*e01b6f76SAndroid Build Coastguard Workercc_library_shared { 25*e01b6f76SAndroid Build Coastguard Worker name: "gralloc.default", 26*e01b6f76SAndroid Build Coastguard Worker relative_install_path: "hw", 27*e01b6f76SAndroid Build Coastguard Worker proprietary: true, 28*e01b6f76SAndroid Build Coastguard Worker shared_libs: [ 29*e01b6f76SAndroid Build Coastguard Worker "liblog", 30*e01b6f76SAndroid Build Coastguard Worker "libcutils", 31*e01b6f76SAndroid Build Coastguard Worker ], 32*e01b6f76SAndroid Build Coastguard Worker srcs: [ 33*e01b6f76SAndroid Build Coastguard Worker "gralloc.cpp", 34*e01b6f76SAndroid Build Coastguard Worker "framebuffer.cpp", 35*e01b6f76SAndroid Build Coastguard Worker "mapper.cpp", 36*e01b6f76SAndroid Build Coastguard Worker ], 37*e01b6f76SAndroid Build Coastguard Worker header_libs: ["libhardware_headers"], 38*e01b6f76SAndroid Build Coastguard Worker cflags: [ 39*e01b6f76SAndroid Build Coastguard Worker "-DLOG_TAG=\"gralloc\"", 40*e01b6f76SAndroid Build Coastguard Worker "-Wno-missing-field-initializers", 41*e01b6f76SAndroid Build Coastguard Worker ] + select(soong_config_variable("gralloc", "target_use_pan_display"), { 42*e01b6f76SAndroid Build Coastguard Worker true: ["-DUSE_PAN_DISPLAY=1"], 43*e01b6f76SAndroid Build Coastguard Worker default: [], 44*e01b6f76SAndroid Build Coastguard Worker }), 45*e01b6f76SAndroid Build Coastguard Worker} 46