• 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("//build/ohos_var.gni")
16import(
17    "//foundation/distributedhardware/distributed_camera/distributedcamera.gni")
18
19ohos_shared_library("distributed_camera_handler") {
20  include_dirs = [
21    "//third_party/jsoncpp/include",
22    "${graphicstandard_path}/frameworks/surface/include",
23    "${camerastandard_path}/interfaces/inner_api/native/camera/include",
24    "${camerastandard_path}/interfaces/inner_api/native/camera/include/input",
25    "${camerastandard_path}/interfaces/inner_api/native/camera/include/output",
26    "${camerastandard_path}/interfaces/inner_api/native/camera/include/session",
27    "${camerastandard_path}/services/camera_service/binder/base/include",
28    "${camerastandard_path}/services/camera_service/binder/client/include",
29    "${camerastandard_path}/services/camera_service/binder/server/include",
30    "${camerastandard_path}/services/camera_service/include",
31    "${mediastandard_path}/interfaces/innerkits/native/media/include",
32    "${fwk_common_path}/utils/include",
33    "${fwk_utils_path}/include",
34  ]
35
36  include_dirs += [
37    "include",
38    "${common_path}/include/constants",
39    "${common_path}/include/utils",
40    "${services_path}/cameraservice/cameraoperator/client/include/callback",
41  ]
42
43  sources = [ "${services_path}/cameraservice/cameraoperator/client/src/callback/dcamera_manager_callback.cpp" ]
44
45  if (!distributed_camera_common) {
46    sources += [ "src/dcamera_handler.cpp" ]
47  } else {
48    sources += [ "src/dcamera_handler_common.cpp" ]
49  }
50
51  deps = [
52    "${common_path}:distributed_camera_utils",
53    "//third_party/jsoncpp:jsoncpp",
54  ]
55
56  defines = [
57    "HI_LOG_ENABLE",
58    "DH_LOG_TAG=\"dcamerahandler\"",
59    "LOG_DOMAIN=0xD004100",
60  ]
61
62  external_deps = [
63    "c_utils:utils",
64    "camera_framework:camera_framework",
65    "drivers_interface_camera:metadata",
66    "drivers_interface_distributed_camera:libdistributed_camera_provider_proxy_1.0",
67    "graphic_2d:surface",
68    "ipc:ipc_core",
69    "player_framework:media_client",
70  ]
71
72  subsystem_name = "distributedhardware"
73
74  part_name = "distributed_camera"
75}
76