• 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/hdf_core/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 = [ "//drivers/peripheral/display/hal:hdi_display_gralloc" ]
37
38    if (target_cpu == "arm") {
39      deps += [ "//drivers/peripheral/display/hal:hdi_display_layer" ]
40    }
41
42    if (is_standard_system) {
43      external_deps = [
44        "hdf_core:libhdf_host",
45        "hdf_core:libhdf_ipc_adapter",
46        "hdf_core:libhdf_utils",
47        "hdf_core:libhdi",
48        "hiviewdfx_hilog_native:libhilog",
49        "ipc:ipc_single",
50      ]
51    } else {
52      external_deps = [ "hilog:libhilog" ]
53    }
54    external_deps += [ "graphic_chipsetsdk:surface" ]
55
56    install_images = [ chipset_base_dir ]
57    subsystem_name = "hdf"
58    part_name = "drivers_peripheral_display"
59  }
60}
61