• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (c) 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.
13
14import("//build/ohos.gni")
15import("//device/board/${product_company}/${device_name}/device.gni")
16import("//drivers/hdf_core/adapter/uhdf2/uhdf.gni")
17import("//drivers/peripheral/camera/camera.gni")
18
19if (!defined(ohos_lite)) {
20  config("camera_metadata_manager_config") {
21    visibility = [ ":*" ]
22    cflags = [
23      "-DGST_DISABLE_DEPRECATED",
24      "-DHAVE_CONFIG_H",
25    ]
26
27    if (enable_camera_device_utest) {
28      cflags += [
29        "-fprofile-arcs",
30        "-ftest-coverage",
31      ]
32
33      ldflags += [ "--coverage" ]
34    }
35  }
36
37  ohos_shared_library("camera_metadata_manager") {
38    sources = [
39      "$camera_path/metadata_manager/src/metadata_config.cpp",
40      "$camera_path/metadata_manager/src/metadata_controller.cpp",
41    ]
42    include_dirs = [
43      "$camera_path/../../interfaces/include",
44      "$camera_path/include",
45      "$camera_path/device_manager/include",
46      "$camera_path/metadata_manager/include",
47    ]
48
49    deps = [ "$board_camera_path/device_manager:camera_device_manager" ]
50
51    if (is_standard_system) {
52      external_deps = [
53        "graphic_chipsetsdk:surface",
54        "hdf_core:libhdf_host",
55        "hdf_core:libhdf_ipc_adapter",
56        "hdf_core:libhdf_utils",
57        "hdf_core:libhdi",
58        "hilog:libhilog",
59        "ipc:ipc_single",
60      ]
61      if (use_hitrace) {
62        external_deps += [ "hitrace:libhitrace" ]
63      }
64    } else {
65      external_deps = [ "hilog:libhilog" ]
66    }
67    external_deps += [
68      "drivers_interface_camera:metadata",
69      "ipc:ipc_single",
70    ]
71
72    public_configs = [ ":camera_metadata_manager_config" ]
73    install_images = [ chipset_base_dir ]
74    subsystem_name = "rockchip_products"
75    part_name = "rockchip_products"
76  }
77}
78