11bd4fe43Sopenharmony_ci# Copyright (c) 2022 Huawei Device Co., Ltd. 21bd4fe43Sopenharmony_ci# Licensed under the Apache License, Version 2.0 (the "License"); 31bd4fe43Sopenharmony_ci# you may not use this file except in compliance with the License. 41bd4fe43Sopenharmony_ci# You may obtain a copy of the License at 51bd4fe43Sopenharmony_ci# 61bd4fe43Sopenharmony_ci# http://www.apache.org/licenses/LICENSE-2.0 71bd4fe43Sopenharmony_ci# 81bd4fe43Sopenharmony_ci# Unless required by applicable law or agreed to in writing, software 91bd4fe43Sopenharmony_ci# distributed under the License is distributed on an "AS IS" BASIS, 101bd4fe43Sopenharmony_ci# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 111bd4fe43Sopenharmony_ci# See the License for the specific language governing permissions and 121bd4fe43Sopenharmony_ci# limitations under the License. 131bd4fe43Sopenharmony_ci 141bd4fe43Sopenharmony_ciimport("//build/ohos.gni") 151bd4fe43Sopenharmony_ciimport("../display_config.gni") 161bd4fe43Sopenharmony_ci 171bd4fe43Sopenharmony_ciconfig("display_gralloc_config") { 181bd4fe43Sopenharmony_ci visibility = [ ":*" ] 191bd4fe43Sopenharmony_ci 201bd4fe43Sopenharmony_ci include_dirs = [ "include" ] 211bd4fe43Sopenharmony_ci} 221bd4fe43Sopenharmony_ciohos_shared_library("hisi_display_gralloc") { 231bd4fe43Sopenharmony_ci sources = [ 241bd4fe43Sopenharmony_ci "src/allocator.cpp", 251bd4fe43Sopenharmony_ci "src/allocator_manager.cpp", 261bd4fe43Sopenharmony_ci "src/display_gralloc.cpp", 271bd4fe43Sopenharmony_ci "src/display_gralloc_private.cpp", 281bd4fe43Sopenharmony_ci "src/dmabufferheap_allocator.cpp", 291bd4fe43Sopenharmony_ci "src/drm_allocator.cpp", 301bd4fe43Sopenharmony_ci "src/framebuffer_allocator.cpp", 311bd4fe43Sopenharmony_ci ] 321bd4fe43Sopenharmony_ci 331bd4fe43Sopenharmony_ci public_configs = [ ":display_gralloc_config" ] 341bd4fe43Sopenharmony_ci 351bd4fe43Sopenharmony_ci configs = [] 361bd4fe43Sopenharmony_ci 371bd4fe43Sopenharmony_ci output_name = "display_gralloc" 381bd4fe43Sopenharmony_ci 391bd4fe43Sopenharmony_ci include_dirs = [ 401bd4fe43Sopenharmony_ci "//drivers/peripheral/display/interfaces/include", 411bd4fe43Sopenharmony_ci "//drivers/peripheral/base", 421bd4fe43Sopenharmony_ci "//third_party/libdrm", 431bd4fe43Sopenharmony_ci "//third_party/libdrm/include/drm", 441bd4fe43Sopenharmony_ci "src", 451bd4fe43Sopenharmony_ci ] 461bd4fe43Sopenharmony_ci 471bd4fe43Sopenharmony_ci external_deps = [ "hilog:libhilog" ] 481bd4fe43Sopenharmony_ci 491bd4fe43Sopenharmony_ci deps = [ 501bd4fe43Sopenharmony_ci "../utils:display_utils", 511bd4fe43Sopenharmony_ci "//commonlibrary/memory_utils/libdmabufheap:libdmabufheap", 521bd4fe43Sopenharmony_ci "//third_party/libdrm:libdrm", 531bd4fe43Sopenharmony_ci ] 541bd4fe43Sopenharmony_ci 551bd4fe43Sopenharmony_ci install_enable = true 561bd4fe43Sopenharmony_ci install_images = [ "system" ] 571bd4fe43Sopenharmony_ci subsystem_name = "hdf" 581bd4fe43Sopenharmony_ci part_name = "display_device_driver" 591bd4fe43Sopenharmony_ci} 60