1# Copyright (c) 2021 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("//drivers/adapter/uhdf2/uhdf.gni") 16 17group("display_service") { 18 if (is_standard_system) { 19 deps = [ ":libhdi_display_layer_service" ] 20 } 21} 22 23if (is_standard_system) { 24 ohos_shared_library("libhdi_display_layer_service") { 25 include_dirs = [ 26 "../../include", 27 "//drivers/peripheral/base", 28 ] 29 30 sources = [ 31 "display_hdi_driver.cpp", 32 "display_layer_service_impl.cpp", 33 "display_layer_service_stub.cpp", 34 ] 35 36 deps = [ 37 "$hdf_uhdf_path/hdi:libhdi", 38 "//drivers/adapter/uhdf2/host:libhdf_host", 39 "//drivers/adapter/uhdf2/ipc:libhdf_ipc_adapter", 40 "//drivers/adapter/uhdf2/osal:libhdf_utils", 41 "//drivers/peripheral/display/hal:hdi_display_gralloc", 42 "//foundation/graphic/standard/utils:buffer_handle", 43 ] 44 45 if (target_cpu == "arm") { 46 deps += [ "//drivers/peripheral/display/hal:hdi_display_layer" ] 47 } 48 49 if (is_standard_system) { 50 external_deps = [ 51 "hiviewdfx_hilog_native:libhilog", 52 "ipc:ipc_core", 53 ] 54 } else { 55 external_deps = [ "hilog:libhilog" ] 56 } 57 58 # install_images = [ "vendor" ] 59 subsystem_name = "hdf" 60 part_name = "hdf" 61 } 62} 63