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