# Copyright (c) 2022 - 2024 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/peripheral/distributed_camera/distributedcamera.gni") config("dcamera_hdf_demo_config") { visibility = [ ":*" ] } ohos_executable("dcamera_hdf_demo") { install_enable = false sources = [ "./dcamera_hdf_demo.cpp", "./demo_main.cpp", "./stream_customer.cpp", ] include_dirs = [ "$distributedcamera_hdf_path/hdi_service/include/dcamera_host", "$distributedcamera_hdf_path/hdi_service/include/dcamera_device", "$distributedcamera_hdf_path/hdi_service/include/dstream_operator", "$distributedcamera_hdf_path/hdi_service/include/dstream_provider", "$distributedcamera_hdf_path/hdi_service/include/utils", ] deps = [ "$distributedcamera_hdf_path/hdi_service:libdistributed_camera_hdf_service_1.1" ] cflags = [ "-fPIC", "-Wall", ] if (!drivers_peripheral_distributed_camera_extension) { cflags += [ "-DDCAMERA_DRIVER_YUV" ] } external_deps = [ "cJSON:cjson", "c_utils:utils", "drivers_interface_camera:libbuffer_producer_sequenceable_1.0", "drivers_interface_camera:libcamera_proxy_1.0", "drivers_interface_camera:metadata", "drivers_interface_display:libdisplay_composer_proxy_1.0", "graphic_surface:surface", "hdf_core:libhdf_ipc_adapter", "hdf_core:libhdf_utils", "hdf_core:libhdi", "hilog:libhilog", "ipc:ipc_single", "samgr:samgr_proxy", ] defines = [ "HI_LOG_ENABLE", "DH_LOG_TAG=\"DCameraHdfDemo\"", "LOG_DOMAIN=0xD004150", ] cflags_cc = cflags subsystem_name = "hdf" part_name = "drivers_peripheral_distributed_camera" }