# Copyright (c) 2021 Huawei Device Co., Ltd. # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. import("//build/ohos.gni") import("//drivers/hdf_core/adapter/uhdf2/uhdf.gni") import( "//foundation/distributedhardware/distributed_camera/distributedcamera.gni") ohos_executable("dcamera_hdi_sample") { install_enable = false sources = [ "common.cpp", "dcamera_hdi_sample.cpp", ] include_dirs = [ "${distributedcamera_hdf_path}/hdi_service/include/dcamera_device", "${distributedcamera_hdf_path}/hdi_service/include/dcamera_host", "${distributedcamera_hdf_path}/hdi_service/include/dcamera_provider", "${distributedcamera_hdf_path}/hdi_service/include/dstream_operator", "${distributedcamera_hdf_path}/hdi_service/include/utils", "${fwk_common_path}/log/include", "${fwk_common_path}/utils/include/", "${common_path}/include/constants", "${fwk_utils_path}/include", "${fwk_utils_path}/include/log", "${hdf_framework_path}/include/utils", "${hdf_uhdf_path}/include/hdi", "${hdf_uhdf_path}/osal/include", "//drivers/peripheral/camera/interfaces/metadata/include", "${innerkits_path}/native_cpp/camera_source/include", "${innerkits_path}/native_cpp/camera_source/include/callback", "${fwk_common_path}/utils/include", ] deps = [ "${fwk_utils_path}:distributedhardwareutils", "${fwk_utils_path}:distributedhardwareutils", "${hdf_uhdf_path}/hdi:libhdi", "${innerkits_path}/native_cpp/camera_source:distributed_camera_source_sdk", "//drivers/peripheral/camera/interfaces/metadata:metadata", ] external_deps = [ "drivers_interface_distributed_camera:libdistributed_camera_provider_proxy_1.0", "graphic_chipsetsdk:surface", "hiviewdfx_hilog_native:libhilog", "ipc:ipc_single", "samgr:samgr_proxy", ] part_name = "distributed_camera" subsystem_name = "distributedhardware" }