• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (c) 2021 - 2023 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.
13import("//build/ohos.gni")
14import("//device/board/${product_company}/${product_name}/device.gni")
15import("//drivers/peripheral/camera/camera.gni")
16
17config("device_manager_config") {
18  visibility = [ ":*" ]
19
20  cflags_cc = [
21    "-Wall",
22    "-Wextra",
23    "-Werror",
24    "-Wno-error",
25    "-DGST_DISABLE_DEPRECATED",
26    "-DHAVE_CONFIG_H",
27    "-DCOLORSPACE=\"videoconvert\"",
28    "-fno-strict-aliasing",
29    "-Wno-sign-compare",
30    "-Wno-builtin-requires-header",
31    "-Wno-unused-variable",
32    "-Wno-unused-label",
33    "-Wno-implicit-function-declaration",
34    "-Wno-format",
35    "-Wno-int-conversion",
36    "-Wno-unused-function",
37    "-Wno-thread-safety-attributes",
38    "-Wno-inconsistent-missing-override",
39    "-fno-rtti",
40    "-fno-exceptions",
41    "-ffunction-sections",
42    "-fdata-sections",
43  ]
44}
45
46ohos_shared_library("camera_device_manager") {
47  sources = [
48    "$camera_path/adapter/platform/v4l2/src/device_manager/idevice_manager.cpp",
49    "$camera_path/adapter/platform/v4l2/src/device_manager/v4l2_device_manager.cpp",
50    "src/rkispv6.cpp",
51  ]
52
53  include_dirs = [
54    "//base/hiviewdfx/interfaces/innerkits/libhilog/include",
55    "include",
56    "//commonlibrary/c_utils/base/include",
57  ]
58
59  deps = []
60
61  if (is_standard_system) {
62    external_deps = [
63      "c_utils:utils",
64      "drivers_peripheral_camera:peripheral_camera_device_manager",
65      "drivers_peripheral_camera:peripheral_camera_v4l2_adapter",
66      "hdf_core:libhdf_utils",
67      "hilog:libhilog",
68    ]
69  } else {
70    external_deps = [
71      "c_utils:utils",
72      "hilog:libhilog",
73    ]
74  }
75  external_deps += [ "drivers_interface_camera:metadata" ]
76  public_configs = [ ":device_manager_config" ]
77  install_images = [ chipset_base_dir ]
78  subsystem_name = "device_rk3588"
79  part_name = "device_rk3588"
80}
81