• 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.
13
14import("//build/ohos.gni")
15import("//drivers/interface/camera/camera.gni")
16
17config("camera_metadata_config") {
18  include_dirs = [ "./include" ]
19}
20
21ohos_shared_library("metadata") {
22  install_enable = true
23  cflags = [
24    "-fPIC",
25    "-Wall",
26    "--coverage",
27  ]
28  ldflags = [ "--coverage" ]
29  cflags_cc = cflags
30  all_dependent_configs = [ ":camera_metadata_config" ]
31  if (defined(ohos_lite)) {
32    sources = [
33      "src/camera_metadata_info.cpp",
34      "src/camera_metadata_operator.cpp",
35    ]
36    external_deps = [ "hilog_lite:hilog_shared" ]
37  } else {
38    sources = [
39      "src/camera_metadata_info.cpp",
40      "src/camera_metadata_operator.cpp",
41      "src/metadata_utils.cpp",
42    ]
43
44    if (drivers_interface_camera_feature_vendor_tag == true) {
45      defines = []
46      defines += [ "CAMERA_VENDOR_TAG" ]
47    }
48
49    deps = [ "../v1_0:libcamera_proxy_1.0" ]
50    external_deps = [
51      "c_utils:utils",
52      "hilog:libhilog",
53      "ipc:ipc_single",
54    ]
55  }
56
57  install_images = [ system_base_dir ]
58  innerapi_tags = [
59    "chipsetsdk",
60    "platformsdk_indirect",
61  ]
62  part_name = "drivers_interface_camera"
63  subsystem_name = "hdf"
64}
65