1# Copyright (C) 2021–2023 Beijing OSWare Technology Co., Ltd 2# This file contains confidential and proprietary information of 3# OSWare Technology Co., Ltd 4# 5# Licensed under the Apache License, Version 2.0 (the "License"); 6# you may not use this file except in compliance with the License. 7# You may obtain a copy of the License at 8# 9# http://www.apache.org/licenses/LICENSE-2.0 10# 11# Unless required by applicable law or agreed to in writing, software 12# distributed under the License is distributed on an "AS IS" BASIS, 13# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14# See the License for the specific language governing permissions and 15# limitations under the License. 16import("//build/ohos.gni") 17import("//device/board/${product_company}/${device_name}/device.gni") 18import("//drivers/peripheral/camera/camera.gni") 19 20config("device_manager_config") { 21 visibility = [ ":*" ] 22 23 cflags_cc = [ 24 "-Wall", 25 "-Wextra", 26 "-Werror", 27 "-Wno-error", 28 "-DGST_DISABLE_DEPRECATED", 29 "-DHAVE_CONFIG_H", 30 "-DCOLORSPACE=\"videoconvert\"", 31 "-fno-strict-aliasing", 32 "-Wno-sign-compare", 33 "-Wno-builtin-requires-header", 34 "-Wno-unused-variable", 35 "-Wno-unused-label", 36 "-Wno-implicit-function-declaration", 37 "-Wno-format", 38 "-Wno-int-conversion", 39 "-Wno-unused-function", 40 "-Wno-thread-safety-attributes", 41 "-Wno-inconsistent-missing-override", 42 "-fno-rtti", 43 "-fno-exceptions", 44 "-ffunction-sections", 45 "-fdata-sections", 46 ] 47} 48 49ohos_shared_library("camera_device_manager") { 50 sources = [ 51 "$board_camera_path/device_manager/src/mx6s_csi.cpp", 52 "$board_camera_path/device_manager/src/sensor_controller.cpp", 53 "$camera_path/adapter/platform/v4l2/src/device_manager/enumerator_manager.cpp", 54 "$camera_path/adapter/platform/v4l2/src/device_manager/flash_controller.cpp", 55 "$camera_path/adapter/platform/v4l2/src/device_manager/flash_manager.cpp", 56 "$camera_path/adapter/platform/v4l2/src/device_manager/idevice_manager.cpp", 57 "$camera_path/adapter/platform/v4l2/src/device_manager/isp_controller.cpp", 58 "$camera_path/adapter/platform/v4l2/src/device_manager/isp_manager.cpp", 59 "$camera_path/adapter/platform/v4l2/src/device_manager/sensor_manager.cpp", 60 "$camera_path/adapter/platform/v4l2/src/device_manager/v4l2_device_manager.cpp", 61 "$camera_path/device_manager/src/icontroller.cpp", 62 "$camera_path/device_manager/src/imanager.cpp", 63 "$camera_path/device_manager/src/isensor.cpp", 64 ] 65 66 include_dirs = [ 67 "//base/hiviewdfx/interfaces/innerkits/libhilog/include", 68 "$camera_path/include", 69 "$camera_path/utils/event", 70 "$camera_path/device_manager/include", 71 "include", 72 "$board_camera_path/device_manager/include", 73 "$board_camera_path/driver_adapter/include", 74 "$camera_path/adapter/platform/v4l2/src/device_manager/include", 75 "$camera_path/adapter/platform/v4l2/src/driver_adapter/include/", 76 "//commonlibrary/c_utils/base/include", 77 ] 78 79 deps = [ "$board_camera_path/driver_adapter:camera_v4l2_adapter" ] 80 81 if (is_standard_system) { 82 external_deps = [ 83 "c_utils:utils", 84 "hdf_core:libhdf_utils", 85 "hilog:libhilog", 86 ] 87 } else { 88 external_deps = [ 89 "c_utils:utils", 90 "hilog:libhilog", 91 ] 92 } 93 external_deps += [ "drivers_interface_camera:metadata" ] 94 95 public_configs = [ ":device_manager_config" ] 96 install_images = [ chipset_base_dir ] 97 subsystem_name = "osware_products" 98 part_name = "osware_products" 99} 100