• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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("video_layer_service") {
18  if (is_standard_system) {
19    deps = [ ":libhdi_video_layer_service" ]
20  }
21}
22
23if (is_standard_system) {
24  ohos_shared_library("libhdi_video_layer_service") {
25    include_dirs = [
26      "//drivers/peripheral/display/interfaces/include",
27      "//drivers/peripheral/base",
28    ]
29
30    sources = [
31      "video_layer_driver.cpp",
32      "video_layer_service.cpp",
33      "video_layer_stub.cpp",
34    ]
35
36    deps = [
37      "//drivers/peripheral/display/hal:hdi_display_gralloc",
38      "//foundation/graphic/standard/utils:buffer_handle",
39    ]
40
41    if (target_cpu == "arm") {
42      deps += [ "//drivers/peripheral/display/hal:hdi_display_layer" ]
43    }
44
45    if (is_standard_system) {
46      external_deps = [
47        "device_driver_framework:libhdf_host",
48        "device_driver_framework:libhdf_ipc_adapter",
49        "device_driver_framework:libhdf_utils",
50        "device_driver_framework:libhdi",
51        "hiviewdfx_hilog_native:libhilog",
52        "ipc:ipc_single",
53      ]
54    } else {
55      external_deps = [ "hilog:libhilog" ]
56    }
57
58    install_images = [ chipset_base_dir ]
59    subsystem_name = "hdf"
60    part_name = "display_device_driver"
61  }
62}
63