1# Copyright (c) 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("//device/board/${product_company}/${product_name}/device.gni") 16import("//drivers/hdf_core/adapter/uhdf2/uhdf.gni") 17import("//drivers/peripheral/camera/camera.gni") 18 19config("ohos_camera_demo_config") { 20 visibility = [ ":*" ] 21 cflags_cc = [ 22 "-Wno-error", 23 "-std=c++17", 24 ] 25} 26 27ohos_executable("ohos_camera_demo") { 28 install_enable = false 29 sources = [ 30 "$camera_path/../../test/demo/demo_main.cpp", 31 "$camera_path/../../test/demo/ohos_camera_demo.cpp", 32 "$camera_path/../../test/demo/stream_customer.cpp", 33 ] 34 35 include_dirs = [ 36 "$board_camera_path/demo/include", 37 "$camera_path/../../test/demo/include", 38 "$camera_path/../../interfaces/include", 39 "$camera_path/../../interfaces/hdi_ipc", 40 "$camera_path/../../interfaces/hdi_ipc/utils/include", 41 "$camera_path/../../test/common/callback/include", 42 "$camera_path/include", 43 "$camera_path/../v4l2", 44 "$camera_path/../v4l2/include", 45 "$camera_path/../v4l2/include/camera_host", 46 "$camera_path/../v4l2/include/camera_device", 47 "$camera_path/../v4l2/include/stream_operator", 48 "$camera_path/../v4l2/include/offline_stream_operator", 49 "$camera_path/device_manager/include/", 50 "$camera_path/device_manager/include/mpi", 51 "$camera_path/utils/event", 52 53 #producer 54 "$camera_path/pipeline_core/utils", 55 "$camera_path/pipeline_core/include", 56 "$camera_path/pipeline_core/host_stream/include", 57 "$camera_path/pipeline_core/nodes/include", 58 "$camera_path/pipeline_core/nodes/src/node_base", 59 "$camera_path/pipeline_core/nodes/src/dummy_node", 60 "$camera_path/pipeline_core/pipeline_impl/src/strategy/config", 61 "$camera_path/pipeline_core/pipeline_impl/include", 62 "$camera_path/pipeline_core/pipeline_impl/src", 63 "$camera_path/pipeline_core/pipeline_impl/src/builder", 64 "$camera_path/pipeline_core/pipeline_impl/src/dispatcher", 65 "$camera_path/pipeline_core/pipeline_impl/src/parser", 66 "$camera_path/pipeline_core/pipeline_impl/src/strategy", 67 "$camera_path/pipeline_core/ipp/include", 68 ] 69 70 deps = 71 [ "$camera_path/../../hdi_service/v1_0:camera_host_service_1.0_static" ] 72 73 if (is_standard_system) { 74 external_deps = [ 75 "c_utils:utils", 76 "graphic_surface:surface", 77 "hdf_core:libhdf_host", 78 "hdf_core:libhdf_ipc_adapter", 79 "hdf_core:libhdf_utils", 80 "hdf_core:libhdi", 81 "hilog:libhilog", 82 "samgr:samgr_proxy", 83 ] 84 } else { 85 external_deps = [ "hilog:libhilog" ] 86 } 87 88 external_deps += [ 89 "drivers_interface_camera:libcamera_proxy_1.0", 90 "drivers_interface_camera:metadata", 91 "drivers_interface_display:libdisplay_composer_proxy_1.0", 92 "ipc:ipc_single", 93 "samgr:samgr_proxy", 94 ] 95 96 public_configs = [ ":ohos_camera_demo_config" ] 97 install_enable = false 98 install_images = [ chipset_base_dir ] 99 subsystem_name = "device_rk3588" 100 part_name = "device_rk3588" 101} 102