• 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")
15
16config("gralloc_client_public_config") {
17  include_dirs = [
18    "../../../interfaces/include",
19    "../include",
20  ]
21}
22if (defined(ohos_lite)) {
23  group("hdi_gralloc_client") {
24    deps = []
25    public_configs = []
26  }
27} else {
28  declare_args() {
29    drivers_peripheral_display_hdi_gralloc_client =
30        ":libhdi_display_gralloc_client"
31  }
32  group("hdi_gralloc_client") {
33    public_configs = [ ":gralloc_client_public_config" ]
34  }
35
36  ohos_shared_library("libhdi_display_gralloc_client") {
37    include_dirs = [
38      "../../../interfaces/include",
39      "../include",
40    ]
41    sources = [
42      "allocator_proxy.cpp",
43      "display_gralloc_client.cpp",
44      "mapper_adapter.cpp",
45    ]
46    deps = [ "../../../../../interface/display/v1_0:libdisplay_gralloc" ]
47
48    if (is_standard_system) {
49      external_deps = [
50        "c_utils:utils",
51        "hdf_core:libhdf_host",
52        "hdf_core:libhdf_ipc_adapter",
53        "hdf_core:libhdi",
54        "hdf_core:libpub_utils",
55        "hilog:libhilog",
56        "ipc:ipc_single",
57      ]
58    } else {
59      external_deps = [ "hilog:libhilog" ]
60    }
61    external_deps += [ "graphic_chipsetsdk:buffer_handle" ]
62    subsystem_name = "hdf"
63    part_name = "drivers_interface_display"
64  }
65}
66