1# Copyright (C) 2021-2023 HiHope Open Source Organization . 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("./../../display_config.gni") 16 17config("libdisplay_buffer_vdi_impl_default_config") { 18 include_dirs = [ "include/" ] 19} 20 21ohos_shared_library("display_buffer_vdi_impl_default") { 22 defines = [] 23 defines += display_defines 24 sources = [ 25 "src/display_buffer_vdi_impl.cpp", 26 "src/display_gralloc_gbm.cpp", 27 "src/hi_gbm.cpp", 28 ] 29 30 public_configs = [ ":libdisplay_buffer_vdi_impl_default_config" ] 31 32 include_dirs = [ 33 "include/", 34 "../../utils/include", 35 "../hdi_service/include", 36 ] 37 38 output_name = "display_buffer_vdi_impl_default" 39 40 cflags = [ 41 "-DGRALLOC_GBM_SUPPORT", 42 "-Wno-macro-redefined", 43 ] 44 45 external_deps = [ 46 "c_utils:utils", 47 "drivers_interface_display:libdisplay_buffer_stub_1.0", 48 "drivers_interface_display:libdisplay_composer_stub_1.0", 49 "hdf_core:libhdf_utils", 50 "hilog:libhilog", 51 "ipc:ipc_single", 52 "libdrm:libdrm", 53 ] 54 55 install_enable = false 56 install_images = [ chipset_base_dir ] 57 innerapi_tags = [ "chipsetsdk" ] 58 subsystem_name = "hdf" 59 part_name = "drivers_peripheral_display" 60} 61