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