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") 15 16hdi_hisplay_device_base = "//drivers/peripheral/display/hdi_service/device" 17 18group("display_device_server") { 19 deps = [ ":libdisplay_device_server" ] 20} 21 22ohos_shared_library("libdisplay_device_server") { 23 include_dirs = [ 24 "//drivers/peripheral/display/interfaces/include", 25 "$hdi_hisplay_device_base/include/util", 26 "$hdi_hisplay_device_base/include/interfaces", 27 "$hdi_hisplay_device_base/include/server", 28 "$hdi_hisplay_device_base/include/proxy", 29 ] 30 31 sources = [ 32 "$hdi_hisplay_device_base/src/util/display_device_common.cpp", 33 "display_device_callback_proxy.cpp", 34 "display_device_host_driver.cpp", 35 "display_device_service.cpp", 36 ] 37 deps = [ "//drivers/peripheral/display/hal:hdi_display_device" ] 38 39 cflags = [ 40 "-Wall", 41 "-Wextra", 42 "-Werror", 43 "-Wno-inconsistent-missing-override", 44 ] 45 46 external_deps = [ 47 "c_utils:utils", 48 "graphic_surface:surface", 49 "hdf_core:libhdf_host", 50 "hdf_core:libhdf_ipc_adapter", 51 "hdf_core:libhdf_utils", 52 "hdf_core:libhdi", 53 "hilog: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