1# Copyright (c) 2022 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") 15import("../display_config.gni") 16 17config("display_gralloc_config") { 18 visibility = [ ":*" ] 19 20 include_dirs = [ "include" ] 21} 22ohos_shared_library("hisi_display_gralloc") { 23 sources = [ 24 "src/allocator.cpp", 25 "src/allocator_manager.cpp", 26 "src/display_gralloc.cpp", 27 "src/display_gralloc_private.cpp", 28 "src/dmabufferheap_allocator.cpp", 29 "src/drm_allocator.cpp", 30 "src/framebuffer_allocator.cpp", 31 ] 32 33 public_configs = [ ":display_gralloc_config" ] 34 35 configs = [] 36 37 output_name = "display_gralloc" 38 39 include_dirs = [ 40 "//drivers/peripheral/display/interfaces/include", 41 "//drivers/peripheral/base", 42 "//third_party/libdrm", 43 "//third_party/libdrm/include/drm", 44 "src", 45 ] 46 47 external_deps = [ "hilog:libhilog" ] 48 49 deps = [ 50 "../utils:display_utils", 51 "//commonlibrary/memory_utils/libdmabufheap:libdmabufheap", 52 "//third_party/libdrm:libdrm", 53 ] 54 55 install_enable = true 56 install_images = [ "system" ] 57 subsystem_name = "hdf" 58 part_name = "display_device_driver" 59} 60