• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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")
15config("utils_config") {
16  visibility = [ ":*" ]
17
18  include_dirs = [
19    "//drivers/peripheral/display/interfaces/include",
20    "//drivers/peripheral/base",
21    "include",
22  ]
23
24  cflags_cc = [
25    "-Wno-error=missing-braces",
26    "-Wno-error=#warnings",
27  ]
28}
29
30ohos_static_library("display_utils") {
31  sources = [
32    "src/display_adapter.cpp",
33    "src/display_utils.cpp",
34    "src/id_generator.cpp",
35  ]
36
37  public_configs = [ ":utils_config" ]
38
39  output_name = "display_utils"
40
41  include_dirs = [ "src" ]
42
43  external_deps = [
44    "c_utils:utils",
45    "hilog:libhilog",
46  ]
47
48  deps = [
49    "//device/soc/hisilicon/hi3751v350/sdk_linux:libhal.so",
50    "//drivers/peripheral/display/hal/default_standard:def_display_gralloc",
51  ]
52  subsystem_name = "hdf"
53  part_name = "display_device_driver"
54}
55