• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (c) 2021-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")
15import("//build/ohos_var.gni")
16import(
17    "//foundation/distributedhardware/distributed_camera/distributedcamera.gni")
18
19ohos_shared_library("distributed_camera_client") {
20  include_dirs = [
21    "${camera_hdf_path}/camera/interfaces/metadata/include",
22    "//commonlibrary/c_utils/base/include",
23    "//utils/system/safwk/native/include",
24    "${graphicstandard_path}/frameworks/surface/include",
25    "${camerastandard_path}/interfaces/inner_api/native/camera/include",
26    "${camerastandard_path}/interfaces/inner_api/native/camera/include/input",
27    "${camerastandard_path}/interfaces/inner_api/native/camera/include/output",
28    "${camerastandard_path}/interfaces/inner_api/native/camera/include/session",
29    "${camerastandard_path}/services/camera_service/binder/base/include",
30    "${camerastandard_path}/services/camera_service/binder/client/include",
31    "${camerastandard_path}/services/camera_service/binder/server/include",
32    "${camerastandard_path}/services/camera_service/include",
33  ]
34
35  include_dirs += [
36    "include",
37    "include/callback",
38    "include/listener",
39    "${common_path}/include/constants",
40    "${common_path}/include/utils",
41    "${services_path}/cameraservice/base/include",
42    "//third_party/jsoncpp/include",
43  ]
44
45  sources = [
46    "src/callback/dcamera_input_callback.cpp",
47    "src/callback/dcamera_manager_callback.cpp",
48    "src/callback/dcamera_photo_callback.cpp",
49    "src/callback/dcamera_preview_callback.cpp",
50    "src/callback/dcamera_session_callback.cpp",
51    "src/callback/dcamera_video_callback.cpp",
52  ]
53
54  if (!distributed_camera_common) {
55    sources += [
56      "src/dcamera_client.cpp",
57      "src/listener/dcamera_photo_surface_listener.cpp",
58      "src/listener/dcamera_video_surface_listener.cpp",
59    ]
60  } else {
61    sources += [
62      "src/dcamera_client_common.cpp",
63      "src/listener/dcamera_photo_surface_listener_common.cpp",
64      "src/listener/dcamera_video_surface_listener_common.cpp",
65    ]
66  }
67
68  deps = [
69    "${camerastandard_path}/frameworks/native/camera:camera_framework",
70    "${common_path}:distributed_camera_utils",
71    "${graphicstandard_path}:libsurface",
72    "//drivers/peripheral/camera/interfaces/metadata:metadata",
73  ]
74
75  defines = [
76    "HI_LOG_ENABLE",
77    "DH_LOG_TAG=\"dcameraclient\"",
78    "LOG_DOMAIN=0xD004100",
79  ]
80
81  external_deps = [
82    "c_utils:utils",
83    "drivers_interface_camera:libcamera_proxy_1.0",
84    "drivers_interface_distributed_camera:libdistributed_camera_provider_proxy_1.0",
85    "ipc:ipc_core",
86  ]
87
88  subsystem_name = "distributedhardware"
89
90  part_name = "distributed_camera"
91}
92