1# Copyright (c) 2021-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("//build/ohos_var.gni") 16import( 17 "//foundation/distributedhardware/distributed_camera/distributedcamera.gni") 18 19ohos_shared_library("distributed_camera_sink") { 20 include_dirs = [ 21 "${av_transport_path}/common/include", 22 "${graphicstandard_path}/frameworks/surface/include", 23 "${camerastandard_path}/interfaces/inner_api/native/camera/include", 24 "${camerastandard_path}/interfaces/inner_api/native/camera/include/input", 25 "${camerastandard_path}/interfaces/inner_api/native/camera/include/output", 26 "${camerastandard_path}/interfaces/inner_api/native/camera/include/session", 27 "${camerastandard_path}/services/camera_service/binder/base/include", 28 "${camerastandard_path}/services/camera_service/binder/client/include", 29 "${camerastandard_path}/services/camera_service/binder/server/include", 30 "${camerastandard_path}/services/camera_service/include", 31 "${fwk_common_path}/utils/include", 32 "${fwk_utils_path}/include/eventbus", 33 "//third_party/jsoncpp/include", 34 ] 35 36 include_dirs += [ 37 "include/distributedcamera", 38 "include/distributedcameramgr", 39 "include/distributedcameramgr/callback", 40 "include/distributedcameramgr/eventbus", 41 "include/distributedcameramgr/interface", 42 "include/distributedcameramgr/listener", 43 "${common_path}/include/constants", 44 "${common_path}/include/utils", 45 "${innerkits_path}/native_cpp/camera_sink/include", 46 "${innerkits_path}/native_cpp/camera_source/include", 47 "${innerkits_path}/native_cpp/camera_source/include/callback", 48 "${services_path}/cameraservice/base/include", 49 "${services_path}/cameraservice/cameraoperator/client/include", 50 "${services_path}/cameraservice/cameraoperator/client/include/callback", 51 "${services_path}/cameraservice/cameraoperator/client/include/listener", 52 "${services_path}/cameraservice/cameraoperator/handler/include", 53 "${services_path}/channel/include", 54 "${services_path}/data_process/include/eventbus", 55 "${services_path}/data_process/include/interfaces", 56 "${services_path}/data_process/include/pipeline", 57 "${services_path}/data_process/include/utils", 58 "${feeding_smoother_path}/base", 59 "${feeding_smoother_path}/derived", 60 "${feeding_smoother_path}/utils", 61 "${fwk_common_path}/utils/include", 62 "${fwk_innerkits_path}/include", 63 "//third_party/json/include", 64 ] 65 66 sources = [ 67 "${innerkits_path}/native_cpp/camera_source/src/distributed_camera_source_proxy.cpp", 68 "${services_path}/cameraservice/base/src/dcamera_capture_info_cmd.cpp", 69 "${services_path}/cameraservice/base/src/dcamera_channel_info_cmd.cpp", 70 "${services_path}/cameraservice/base/src/dcamera_event_cmd.cpp", 71 "${services_path}/cameraservice/base/src/dcamera_info_cmd.cpp", 72 "${services_path}/cameraservice/base/src/dcamera_metadata_setting_cmd.cpp", 73 "${services_path}/cameraservice/base/src/dcamera_open_info_cmd.cpp", 74 "src/distributedcamera/dcamera_sink_hidumper.cpp", 75 "src/distributedcamera/distributed_camera_sink_service.cpp", 76 "src/distributedcamera/distributed_camera_sink_stub.cpp", 77 "src/distributedcameramgr/callback/dcamera_sink_controller_state_callback.cpp", 78 "src/distributedcameramgr/callback/dcamera_sink_output_result_callback.cpp", 79 "src/distributedcameramgr/dcamera_sink_access_control.cpp", 80 "src/distributedcameramgr/dcamera_sink_controller.cpp", 81 "src/distributedcameramgr/dcamera_sink_data_process.cpp", 82 "src/distributedcameramgr/dcamera_sink_dev.cpp", 83 "src/distributedcameramgr/dcamera_sink_output.cpp", 84 "src/distributedcameramgr/dcamera_sink_service_ipc.cpp", 85 "src/distributedcameramgr/eventbus/dcamera_frame_trigger_event.cpp", 86 "src/distributedcameramgr/eventbus/dcamera_photo_output_event.cpp", 87 "src/distributedcameramgr/eventbus/dcamera_post_authorization_event.cpp", 88 "src/distributedcameramgr/eventbus/dcamera_video_output_event.cpp", 89 "src/distributedcameramgr/listener/dcamera_sink_controller_channel_listener.cpp", 90 "src/distributedcameramgr/listener/dcamera_sink_data_process_listener.cpp", 91 "src/distributedcameramgr/listener/dcamera_sink_output_channel_listener.cpp", 92 ] 93 94 deps = [ 95 "${common_path}:distributed_camera_utils", 96 "${services_path}/cameraservice/cameraoperator/client:distributed_camera_client", 97 "${services_path}/cameraservice/cameraoperator/handler:distributed_camera_handler", 98 "${services_path}/channel:distributed_camera_channel", 99 "${services_path}/data_process:distributed_camera_data_process", 100 "//third_party/jsoncpp:jsoncpp", 101 ] 102 103 defines = [ 104 "HI_LOG_ENABLE", 105 "DH_LOG_TAG=\"dcamerasinksvr\"", 106 "LOG_DOMAIN=0xD004100", 107 ] 108 109 external_deps = [ 110 "c_utils:utils", 111 "camera_framework:camera_framework", 112 "drivers_interface_distributed_camera:libdistributed_camera_provider_proxy_1.0", 113 "eventhandler:libeventhandler", 114 "graphic_2d:surface", 115 "ipc:ipc_core", 116 "safwk:system_ability_fwk", 117 "samgr:samgr_proxy", 118 ] 119 120 subsystem_name = "distributedhardware" 121 122 part_name = "distributed_camera" 123} 124