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("//drivers/hdf_core/adapter/uhdf2/uhdf.gni") 16import("./../../display_config.gni") 17 18root_path = "../../../../.." 19 20ohos_shared_library("display_composer_vdi_impl_default") { 21 defines = [] 22 defines += display_defines 23 sources = [ 24 "src/display_composer_vdi_impl.cpp", 25 "src/drm_connector.cpp", 26 "src/drm_crtc.cpp", 27 "src/drm_device.cpp", 28 "src/drm_display.cpp", 29 "src/drm_encoder.cpp", 30 "src/drm_plane.cpp", 31 "src/drm_vsync_worker.cpp", 32 "src/hdi_composer.cpp", 33 "src/hdi_device_interface.cpp", 34 "src/hdi_display.cpp", 35 "src/hdi_drm_composition.cpp", 36 "src/hdi_drm_layer.cpp", 37 "src/hdi_gfx_composition.cpp", 38 "src/hdi_layer.cpp", 39 "src/hdi_netlink_monitor.cpp", 40 "src/hdi_session.cpp", 41 ] 42 output_name = "display_composer_vdi_impl_default" 43 include_dirs = [ 44 "include/", 45 "../../buffer/vdi_base/include", 46 "${root_path}/drivers/peripheral/display/buffer/hdi_service/include", 47 "${root_path}/drivers/peripheral/display/composer/hdi_service/include", 48 "${root_path}/drivers/peripheral/display/utils/include", 49 "${root_path}/drivers/peripheral/base", 50 "${root_path}/drivers/interface/display/composer", 51 "${root_path}/foundation/communication/ipc/interfaces/innerkits/ipc_core/include", 52 "${root_path}/drivers/interface/display/composer/hdifd_parcelable", 53 ] 54 55 deps = [ 56 "${root_path}/third_party/libdrm:libdrm", 57 "../../buffer/vdi_base:display_buffer_vdi_impl_default", 58 ] 59 cflags_cc = [ 60 "-Wno-error=unused-function", 61 "-Wno-error=missing-braces", 62 "-Wno-error=#warnings", 63 ] 64 external_deps = [ 65 "c_utils:utils", 66 "drivers_interface_display:display_buffer_idl_headers", 67 "drivers_interface_display:display_composer_idl_headers", 68 "graphic_surface:buffer_handle", 69 "hdf_core:libhdf_utils", 70 "hilog:libhilog", 71 "hitrace:hitrace_meter", 72 "ipc:ipc_single", 73 ] 74 install_enable = false 75 install_images = [ chipset_base_dir ] 76 subsystem_name = "hdf" 77 part_name = "drivers_peripheral_display" 78} 79