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("//build/ohos_var.gni") 16import("//foundation/distributedhardware/distributedcamera/distributedcamera.gni") 17 18ohos_shared_library("distributed_camera_handler") { 19 include_dirs = [ 20 "//drivers/peripheral/camera/interfaces/metadata/include", 21 "//third_party/jsoncpp/include", 22 "//utils/native/base/include", 23 "//utils/system/safwk/native/include", 24 "${graphicstandard_path}/frameworks/surface/include", 25 "${camerastandard_path}/interfaces/inner_api/native/camera/include", 26 "${camerastandard_path}/interfaces/inner_api/native/camera/include/input", 27 "${camerastandard_path}/interfaces/inner_api/native/camera/include/output", 28 "${camerastandard_path}/interfaces/inner_api/native/camera/include/session", 29 "${camerastandard_path}/services/camera_service/binder/base/include", 30 "${camerastandard_path}/services/camera_service/binder/client/include", 31 "${camerastandard_path}/services/camera_service/binder/server/include", 32 "${camerastandard_path}/services/camera_service/include", 33 "${mediastandard_path}/interfaces/innerkits/native/media/include", 34 "${fwk_common_path}/log/include", 35 "${fwk_common_path}/utils/include", 36 "${fwk_utils_path}/include/log", 37 "${fwk_utils_path}/include", 38 ] 39 40 include_dirs += [ 41 "include", 42 "${common_path}/include/constants", 43 "${common_path}/include/utils", 44 "${distributedcamera_hdf_path}/interfaces/include", 45 "${services_path}/cameraservice/cameraoperator/client/include/callback", 46 ] 47 48 sources = [ 49 "${services_path}/cameraservice/cameraoperator/client/src/callback/dcamera_manager_callback.cpp", 50 ] 51 52 if (device_name == "baltimore") { 53 sources += [ "src/dcamera_handler.cpp", ] 54 } else { 55 sources += [ "src/dcamera_handler_common.cpp", ] 56 } 57 58 deps = [ 59 "${fwk_utils_path}:distributedhardwareutils", 60 "${common_path}:distributed_camera_utils", 61 "${graphicstandard_path}:libsurface", 62 "${camerastandard_path}/frameworks/native/camera:camera_framework", 63 "//drivers/peripheral/camera/interfaces/metadata:metadata", 64 "//utils/native/base:utils", 65 "//third_party/jsoncpp:jsoncpp", 66 ] 67 68 defines = [ 69 "HI_LOG_ENABLE", 70 "DH_LOG_TAG=\"dcamerahandler\"", 71 "LOG_DOMAIN=0xD004100", 72 ] 73 74 external_deps = [ 75 "hiviewdfx_hilog_native:libhilog", 76 "multimedia_media_standard:media_client", 77 ] 78 79 subsystem_name = "distributedhardware" 80 81 part_name = "distributed_camera" 82}