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_composer") { 17 module_name = "display_composer" 18 19 sources = [ 20 "DisplayComposerType.idl", 21 "IDisplayComposer.idl", 22 "IHotPlugCallback.idl", 23 "IRefreshCallback.idl", 24 "IVBlankCallback.idl", 25 ] 26 27 sequenceable_pub_deps = [ "../hdifd_parcelable:libhdifd_parcelable" ] 28 29 language = "cpp" 30 subsystem_name = "hdf" 31 part_name = "drivers_interface_display" 32} 33 34config("libdisplay_composer_hdi_impl_config") { 35 include_dirs = [ 36 "../", 37 "../hdifd_parcelable", 38 ] 39} 40 41ohos_shared_library("libdisplay_composer_hdi_impl") { 42 sources = [ "hdi_impl/display_composer_interface.cpp" ] 43 44 public_configs = [ ":libdisplay_composer_hdi_impl_config" ] 45 46 deps = [ 47 ":libdisplay_composer_proxy_1.0", 48 "../hdifd_parcelable:libhdifd_parcelable", 49 ] 50 51 external_deps = [ 52 "c_utils:utils", 53 "graphic_surface:buffer_handle", 54 "hdf_core:libhdi", 55 "hdf_core:libpub_utils", 56 "hilog:libhilog", 57 "hitrace:hitrace_meter", 58 "init:libbegetutil", 59 "ipc:ipc_single", 60 ] 61 62 install_images = [ "system" ] 63 subsystem_name = "hdf" 64 part_name = "drivers_interface_display" 65} 66