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