• 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("//drivers/hdf_core/adapter/uhdf2/uhdf.gni")
16import(
17    "//foundation/distributedhardware/distributed_camera/distributedcamera.gni")
18
19ohos_executable("dcamera_hdi_sample") {
20  install_enable = false
21  sources = [
22    "common.cpp",
23    "dcamera_hdi_sample.cpp",
24  ]
25
26  include_dirs = [
27    "${distributedcamera_hdf_path}/hdi_service/include/dcamera_device",
28    "${distributedcamera_hdf_path}/hdi_service/include/dcamera_host",
29    "${distributedcamera_hdf_path}/hdi_service/include/dcamera_provider",
30    "${distributedcamera_hdf_path}/hdi_service/include/dstream_operator",
31    "${distributedcamera_hdf_path}/hdi_service/include/utils",
32    "${fwk_common_path}/log/include",
33    "${fwk_common_path}/utils/include/",
34    "${common_path}/include/constants",
35    "${fwk_utils_path}/include",
36    "${fwk_utils_path}/include/log",
37    "${hdf_framework_path}/include/utils",
38    "${hdf_uhdf_path}/include/hdi",
39    "${hdf_uhdf_path}/osal/include",
40
41    "//drivers/peripheral/camera/interfaces/metadata/include",
42
43    "${innerkits_path}/native_cpp/camera_source/include",
44    "${innerkits_path}/native_cpp/camera_source/include/callback",
45    "${fwk_common_path}/utils/include",
46  ]
47
48  deps = [
49    "${fwk_utils_path}:distributedhardwareutils",
50    "${fwk_utils_path}:distributedhardwareutils",
51    "${hdf_uhdf_path}/hdi:libhdi",
52    "${innerkits_path}/native_cpp/camera_source:distributed_camera_source_sdk",
53    "//drivers/peripheral/camera/interfaces/metadata:metadata",
54  ]
55
56  external_deps = [
57    "drivers_interface_distributed_camera:libdistributed_camera_provider_proxy_1.0",
58    "graphic_chipsetsdk:surface",
59    "hiviewdfx_hilog_native:libhilog",
60    "ipc:ipc_single",
61    "samgr:samgr_proxy",
62  ]
63
64  part_name = "distributed_camera"
65  subsystem_name = "distributedhardware"
66}
67