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/ohos.gni") 15 16group("hdf_display_buffer_service") { 17 deps = [ 18 ":liballocator_driver_1.0", 19 ":liballocator_service_1.0", 20 ":libmapper_driver_1.0", 21 ":libmapper_service_1.0", 22 ":libmetadata_driver_1.1", 23 ":libmetadata_service_1.1", 24 ] 25} 26 27ohos_shared_library("liballocator_service_1.0") { 28 include_dirs = [ 29 "include", 30 "../../utils/include", 31 ] 32 sources = [ "src/allocator_service.cpp" ] 33 34 external_deps = [ 35 "c_utils:utils", 36 "drivers_interface_display:display_buffer_idl_headers", 37 "hdf_core:libhdf_ipc_adapter", 38 "hdf_core:libhdf_utils", 39 "hdf_core:libhdi", 40 "hilog:libhilog", 41 "ipc:ipc_single", 42 ] 43 44 install_images = [ chipset_base_dir ] 45 subsystem_name = "hdf" 46 part_name = "drivers_peripheral_display" 47} 48 49ohos_shared_library("liballocator_driver_1.0") { 50 sources = [ "src/allocator_driver.cpp" ] 51 52 external_deps = [ 53 "c_utils:utils", 54 "drivers_interface_display:libdisplay_buffer_stub_1.0", 55 "hdf_core:libhdf_host", 56 "hdf_core:libhdf_ipc_adapter", 57 "hdf_core:libhdf_utils", 58 "hdf_core:libhdi", 59 "hilog:libhilog", 60 "ipc:ipc_single", 61 ] 62 63 shlib_type = "hdi" 64 install_images = [ chipset_base_dir ] 65 subsystem_name = "hdf" 66 part_name = "drivers_peripheral_display" 67} 68 69ohos_shared_library("libmapper_service_1.0") { 70 include_dirs = [ 71 "include", 72 "../../utils/include", 73 ] 74 sources = [ "src/mapper_service.cpp" ] 75 76 external_deps = [ 77 "c_utils:utils", 78 "drivers_interface_display:display_buffer_idl_headers", 79 "hdf_core:libhdf_ipc_adapter", 80 "hdf_core:libhdf_utils", 81 "hdf_core:libhdi", 82 "hilog:libhilog", 83 "ipc:ipc_single", 84 ] 85 86 install_images = [ chipset_base_dir ] 87 subsystem_name = "hdf" 88 innerapi_tags = [ "passthrough_indirect" ] 89 part_name = "drivers_peripheral_display" 90} 91 92ohos_shared_library("libmapper_driver_1.0") { 93 sources = [ "src/mapper_driver.cpp" ] 94 95 external_deps = [ 96 "c_utils:utils", 97 "drivers_interface_display:libdisplay_buffer_stub_1.0", 98 "hdf_core:libhdf_host", 99 "hdf_core:libhdf_ipc_adapter", 100 "hdf_core:libhdf_utils", 101 "hdf_core:libhdi", 102 "hilog:libhilog", 103 "ipc:ipc_single", 104 ] 105 106 shlib_type = "hdi" 107 install_images = [ chipset_base_dir ] 108 subsystem_name = "hdf" 109 part_name = "drivers_peripheral_display" 110} 111 112ohos_shared_library("libmetadata_service_1.1") { 113 include_dirs = [ 114 "include", 115 "../../utils/include", 116 ] 117 sources = [ "src/metadata_service.cpp" ] 118 119 external_deps = [ 120 "c_utils:utils", 121 "drivers_interface_display:display_buffer_idl_headers_1.0", 122 "drivers_interface_display:display_buffer_idl_headers_1.1", 123 "hdf_core:libhdf_ipc_adapter", 124 "hdf_core:libhdf_utils", 125 "hdf_core:libhdi", 126 "hilog:libhilog", 127 "ipc:ipc_single", 128 ] 129 130 install_images = [ chipset_base_dir ] 131 subsystem_name = "hdf" 132 innerapi_tags = [ "passthrough_indirect" ] 133 part_name = "drivers_peripheral_display" 134} 135 136ohos_shared_library("libmetadata_driver_1.1") { 137 sources = [ "src/metadata_driver.cpp" ] 138 139 external_deps = [ 140 "c_utils:utils", 141 "drivers_interface_display:libdisplay_buffer_stub_1.1", 142 "hdf_core:libhdf_host", 143 "hdf_core:libhdf_ipc_adapter", 144 "hdf_core:libhdf_utils", 145 "hdf_core:libhdi", 146 "hilog:libhilog", 147 "ipc:ipc_single", 148 ] 149 150 shlib_type = "hdi" 151 install_images = [ chipset_base_dir ] 152 subsystem_name = "hdf" 153 part_name = "drivers_peripheral_display" 154} 155