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/hdf_core/adapter/uhdf2/uhdf.gni") 16 17config("video_layer_public_config") { 18 include_dirs = [ 19 "//drivers/peripheral/display/interfaces/include", 20 "//drivers/peripheral/display/hdi_service/video_layer/client", 21 "//drivers/hdf_core/adapter/uhdf2/include/hdi", 22 ] 23} 24 25group("video_layer_client") { 26 if (is_standard_system) { 27 deps = [ ":libhdi_video_layer_client" ] 28 public_configs = [ ":video_layer_public_config" ] 29 } 30} 31 32if (is_standard_system) { 33 ohos_shared_library("libhdi_video_layer_client") { 34 include_dirs = [ 35 "//drivers/peripheral/display/interfaces/include", 36 "//drivers/peripheral/base", 37 ] 38 39 sources = [ "video_layer_proxy.cpp" ] 40 41 if (is_standard_system) { 42 external_deps = [ 43 "hdf_core:libhdi", 44 "hiviewdfx_hilog_native:libhilog", 45 "ipc:ipc_single", 46 ] 47 } else { 48 external_deps = [ "hilog:libhilog" ] 49 } 50 external_deps += [ "graphic_chipsetsdk:surface" ] 51 install_enable = false 52 subsystem_name = "hdf" 53 part_name = "drivers_peripheral_display" 54 } 55} 56