• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (c) Huawei Technologies Co., Ltd. 2021. All rights reserved.
2import("//build/ohos.gni")
3import("../camera.gni")
4
5config("utils_config") {
6  visibility = [ ":*" ]
7
8  cflags = [
9    "-Wall",
10    "-Wextra",
11    "-Werror",
12    "-Wno-error",
13    "-DGST_DISABLE_DEPRECATED",
14    "-DHAVE_CONFIG_H",
15    "-DCOLORSPACE=\"videoconvert\"",
16    "-fno-strict-aliasing",
17    "-Wno-sign-compare",
18    "-Wno-builtin-requires-header",
19    "-Wno-unused-variable",
20    "-Wno-unused-label",
21    "-Wno-implicit-function-declaration",
22    "-Wno-format",
23    "-Wno-int-conversion",
24    "-Wno-unused-function",
25    "-Wno-thread-safety-attributes",
26    "-Wno-inconsistent-missing-override",
27    "-fno-rtti",
28    "-fno-exceptions",
29    "-ffunction-sections",
30    "-fdata-sections",
31  ]
32}
33
34ohos_shared_library("camera_utils") {
35  sources = [ "watchdog/watchdog.cpp" ]
36
37  include_dirs = [
38    "watchdog",
39    "//drivers/framework/include/utils",
40    "//drivers/adapter/uhdf2/osal/include",
41  ]
42
43  libs = []
44
45  defines = []
46
47  deps = []
48
49  if (enable_camera_device_utest) {
50    defines += [ "CAMERA_DEVICE_UTEST" ]
51  }
52
53  public_configs = [ ":utils_config" ]
54  subsystem_name = "hdf"
55  part_name = "hdf"
56}
57