1# Copyright (c) 2023 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/config/components/hdi/hdi.gni") 15 16hdi("display_buffer") { 17 module_name = "display_buffer" 18 19 sources = [ 20 "DisplayBufferType.idl", 21 "IAllocator.idl", 22 "IMapper.idl", 23 ] 24 25 innerapi_tags = [ 26 "chipsetsdk_indirect", 27 "platformsdk_indirect", 28 ] 29 30 branch_protector_ret = "pac_ret" 31 32 language = "cpp" 33 subsystem_name = "hdf" 34 part_name = "drivers_interface_display" 35} 36 37config("libdisplay_buffer_hdi_impl_config") { 38 include_dirs = [ "./../" ] 39} 40 41ohos_shared_library("libdisplay_buffer_hdi_impl") { 42 sources = [ "hdi_impl/display_buffer_hdi_impl.cpp" ] 43 44 public_configs = [ ":libdisplay_buffer_hdi_impl_config" ] 45 46 deps = [ ":libdisplay_buffer_proxy_1.0" ] 47 48 external_deps = [ 49 "c_utils:utils", 50 "graphic_surface:buffer_handle", 51 "hdf_core:libhdi", 52 "hdf_core:libpub_utils", 53 "hilog:libhilog", 54 "ipc:ipc_single", 55 ] 56 57 install_images = [ "system" ] 58 subsystem_name = "hdf" 59 innerapi_tags = [ 60 "chipsetsdk_indirect", 61 "platformsdk_indirect", 62 ] 63 64 branch_protector_ret = "pac_ret" 65 66 part_name = "drivers_interface_display" 67} 68