1# Copyright (c) Huawei Technologies Co., Ltd. 2021. All rights reserved. 2 3if (defined(ohos_lite)) { 4 import("//build/ohos.gni") 5 import("//drivers/hdf_core/adapter/uhdf/uhdf.gni") 6 import("//drivers/peripheral/camera/hal/camera.gni") 7 config("utils_config") { 8 visibility = [ ":*" ] 9 cflags = [ 10 "-DGST_DISABLE_DEPRECATED", 11 "-DHAVE_CONFIG_H", 12 "-DCOLORSPACE=\"videoconvert\"", 13 ] 14 cflags_cc = [ "-std=c++17" ] 15 } 16 17 ohos_shared_library("camera_utils") { 18 sources = [ "watchdog/watchdog.cpp" ] 19 include_dirs = [ "watchdog" ] 20 libs = [] 21 defines = [] 22 deps = [] 23 public_configs = [ ":utils_config" ] 24 subsystem_name = "hdf" 25 part_name = "drivers_peripheral_camera" 26 } 27} else { 28 import("//build/ohos.gni") 29 import("../camera.gni") 30 config("utils_config") { 31 visibility = [ ":*" ] 32 cflags = [ 33 "-DGST_DISABLE_DEPRECATED", 34 "-DHAVE_CONFIG_H", 35 "-DCOLORSPACE=\"videoconvert\"", 36 ] 37 } 38 ohos_shared_library("camera_utils") { 39 sources = [ 40 "exif/exif_utils.cpp", 41 "watchdog/watchdog.cpp", 42 ] 43 include_dirs = [ 44 "//drivers/peripheral/camera/hal/include", 45 "//drivers/peripheral/camera/interfaces/metadata/include", 46 "//third_party/libexif", 47 "watchdog", 48 "exif", 49 "//drivers/hdf_core/framework/include/utils", 50 "//drivers/hdf_core/adapter/uhdf2/osal/include", 51 ] 52 libs = [] 53 defines = [] 54 deps = [ "//third_party/libexif:libexif" ] 55 56 external_deps = [ 57 "c_utils:utils", 58 "hiviewdfx_hilog_native:libhilog", 59 ] 60 if (enable_camera_device_utest) { 61 defines += [ "CAMERA_DEVICE_UTEST" ] 62 } 63 public_configs = [ ":utils_config" ] 64 install_images = [ chipset_base_dir ] 65 subsystem_name = "hdf" 66 part_name = "drivers_peripheral_camera" 67 } 68} 69