1# Copyright (c) 2025 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_composer") { 17 module_name = "display_composer" 18 19 sources = [ 20 "DisplayComposerType.idl", 21 "IDisplayComposer.idl", 22 "IHwcEventCallback.idl", 23 ] 24 25 proxy_deps = [ "../v1_0:libdisplay_composer_proxy_1.0", 26 "../v1_1:libdisplay_composer_proxy_1.1", 27 "../v1_2:libdisplay_composer_proxy_1.2", 28 "../hdifd_parcelable:libhdifd_parcelable" ] 29 30 stub_deps = [ "../v1_0:libdisplay_composer_stub_1.0", 31 "../v1_1:libdisplay_composer_stub_1.1", 32 "../v1_2:libdisplay_composer_stub_1.2", 33 "../hdifd_parcelable:libhdifd_parcelable" ] 34 35 language = "cpp" 36 subsystem_name = "hdf" 37 part_name = "drivers_interface_display" 38} 39 40config("libdisplay_composer_hdi_impl_config") { 41 include_dirs = [ 42 "../", 43 "../hdifd_parcelable", 44 ] 45} 46 47ohos_shared_library("libdisplay_composer_hdi_impl_1.3") { 48 sources = [ "./hdi_impl/display_composer_interface.cpp" ] 49 50 public_configs = [ ":libdisplay_composer_hdi_impl_config" ] 51 52 deps = [ 53 ":libdisplay_composer_proxy_1.3", 54 "../hdifd_parcelable:libhdifd_parcelable", 55 "../v1_2:libdisplay_composer_proxy_1.2", 56 ] 57 58 external_deps = [ 59 "c_utils:utils", 60 "graphic_surface:buffer_handle", 61 "hdf_core:libhdf_ipc_adapter", 62 "hdf_core:libhdi", 63 "hdf_core:libpub_utils", 64 "hilog:libhilog", 65 "hitrace:hitrace_meter", 66 "init:libbegetutil", 67 "ipc:ipc_single", 68 ] 69 70 install_images = [ "system" ] 71 subsystem_name = "hdf" 72 part_name = "drivers_interface_display" 73} 74