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