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("//drivers/adapter/uhdf2/uhdf.gni") 16import("../../../hal/camera.gni") 17group("camera_client") { 18 deps = [ ":libcamera_client" ] 19} 20 21config("libcamera_client_config") { 22 visibility = [ ":*" ] 23 24 include_dirs = [ 25 "//drivers/peripheral/camera/interfaces/include", 26 "//drivers/peripheral/camera/interfaces/hdi_ipc", 27 "//drivers/peripheral/camera/interfaces/hdi_ipc/utils/include", 28 "//drivers/peripheral/camera/interfaces/hdi_ipc/server/include", 29 "//drivers/peripheral/camera/interfaces/hdi_ipc/callback/device/include", 30 "//drivers/peripheral/camera/interfaces/hdi_ipc/callback/operator/include", 31 "//drivers/peripheral/camera/interfaces/hdi_ipc/callback/host/include", 32 "//drivers/peripheral/display/interfaces/include", 33 ] 34} 35 36if (defined(ohos_lite)) { 37 group("libcamera_client") { 38 deps = [] 39 public_configs = [] 40 } 41} else { 42 ohos_shared_library("libcamera_client") { 43 include_dirs = [ 44 "../", 45 "../server/include", 46 "./include", 47 "../../include", 48 "../utils/include", 49 "../callback/device/include", 50 "../callback/host/include", 51 "../callback/operator/include", 52 "//drivers/peripheral/camera/interfaces/metadata/include", 53 ] 54 public_configs = [ ":libcamera_client_config" ] 55 56 sources = [ 57 "../callback/device/src/camera_device_callback.cpp", 58 "../callback/device/src/camera_device_callback_stub.cpp", 59 "../callback/host/src/camera_host_callback.cpp", 60 "../callback/host/src/camera_host_callback_stub.cpp", 61 "../callback/operator/src/stream_operator_callback.cpp", 62 "../callback/operator/src/stream_operator_callback_stub.cpp", 63 "../utils/src/utils_data_stub.cpp", 64 "./src/camera_device_proxy.cpp", 65 "./src/camera_host_proxy.cpp", 66 "./src/offline_stream_operator_proxy.cpp", 67 "./src/stream_operator_proxy.cpp", 68 ] 69 70 deps = [ "//drivers/peripheral/camera/interfaces/metadata:metadata" ] 71 72 if (is_standard_system) { 73 external_deps = [ 74 "device_driver_framework:libhdf_host", 75 "device_driver_framework:libhdf_ipc_adapter", 76 "device_driver_framework:libhdf_utils", 77 "device_driver_framework:libhdi", 78 "graphic_standard:surface", 79 "hiviewdfx_hilog_native:libhilog", 80 "ipc:ipc_single", 81 "utils_base:utils", 82 ] 83 } else { 84 external_deps = [ "hilog:libhilog" ] 85 } 86 87 install_images = [ chipset_base_dir ] 88 subsystem_name = "hdf" 89 part_name = "camera_device_driver" 90 } 91} 92