1# Copyright (c) 2021 Huawei Device Co., Ltd. 2# Licensed under the Apache License, Version 2.0 (the "License"); 3# you may not use this file except in compliance with the License. 4# You may obtain a copy of the License at 5# 6# http://www.apache.org/licenses/LICENSE-2.0 7# 8# Unless required by applicable law or agreed to in writing, software 9# distributed under the License is distributed on an "AS IS" BASIS, 10# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 11# See the License for the specific language governing permissions and 12# limitations under the License. 13 14import("//build/ohos.gni") 15import("//drivers/hdf_core/adapter/uhdf2/uhdf.gni") 16 17config("gralloc_client_public_config") { 18 include_dirs = [ 19 "//drivers/peripheral/base", 20 "//drivers/peripheral/display/interfaces/include", 21 "//drivers/peripheral/display/hdi_service/gralloc/include", 22 ] 23} 24if (defined(ohos_lite)) { 25 group("hdi_gralloc_client") { 26 deps = [] 27 public_configs = [] 28 } 29} else { 30 declare_args() { 31 drivers_peripheral_display_hdi_gralloc_client = 32 ":libhdi_display_gralloc_client" 33 } 34 group("hdi_gralloc_client") { 35 deps = [ drivers_peripheral_display_hdi_gralloc_client ] 36 public_configs = [ ":gralloc_client_public_config" ] 37 } 38 39 ohos_shared_library("libhdi_display_gralloc_client") { 40 include_dirs = [ 41 "//drivers/peripheral/base", 42 "//drivers/peripheral/display/interfaces/include", 43 "//drivers/peripheral/display/hdi_service/gralloc/include", 44 ] 45 sources = [ 46 "allocator_proxy.cpp", 47 "display_gralloc_client.cpp", 48 "mapper_adapter.cpp", 49 ] 50 deps = [ "//drivers/interface/display/v1_0:libdisplay_gralloc" ] 51 52 if (is_standard_system) { 53 external_deps = [ 54 "c_utils:utils", 55 "hdf_core:libhdf_host", 56 "hdf_core:libhdi", 57 "hiviewdfx_hilog_native:libhilog", 58 "ipc:ipc_single", 59 ] 60 } else { 61 external_deps = [ "hilog:libhilog" ] 62 } 63 external_deps += [ "graphic_chipsetsdk:buffer_handle" ] 64 subsystem_name = "hdf" 65 part_name = "drivers_interface_display" 66 } 67} 68