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("//drivers/hdf_core/adapter/uhdf2/uhdf.gni") 16 17hdi_hisplay_device_base = "//drivers/peripheral/display/hdi_service/device" 18 19group("display_device_server") { 20 deps = [ ":libdisplay_device_server" ] 21} 22 23ohos_shared_library("libdisplay_device_server") { 24 include_dirs = [ 25 "//drivers/peripheral/display/interfaces/include", 26 "$hdi_hisplay_device_base/include/util", 27 "$hdi_hisplay_device_base/include/interfaces", 28 "$hdi_hisplay_device_base/include/server", 29 "$hdi_hisplay_device_base/include/proxy", 30 ] 31 32 sources = [ 33 "$hdi_hisplay_device_base/src/util/display_device_common.cpp", 34 "display_device_callback_proxy.cpp", 35 "display_device_host_driver.cpp", 36 "display_device_service.cpp", 37 ] 38 deps = [ "//drivers/peripheral/display/hal:hdi_display_device" ] 39 40 cflags = [ 41 "-Wall", 42 "-Wextra", 43 "-Werror", 44 "-Wno-inconsistent-missing-override", 45 ] 46 47 external_deps = [ 48 "c_utils:utils", 49 "graphic_chipsetsdk:surface", 50 "hdf_core:libhdf_host", 51 "hdf_core:libhdf_ipc_adapter", 52 "hdf_core:libhdi", 53 "hiviewdfx_hilog_native:libhilog", 54 "ipc:ipc_single", 55 ] 56 57 install_images = [ chipset_base_dir ] 58 install_enable = true 59 subsystem_name = "hdf" 60 part_name = "drivers_peripheral_display" 61} 62