| # Copyright 2021 The ChromiumOS Authors | |
| # Use of this source code is governed by a BSD-style license that can be | |
| # found in the LICENSE file. | |
| import("//camera/build/cc_embed_data.gni") | |
| import("//common-mk/pkg_config.gni") | |
| pkg_config("target_defaults") { | |
| configs = [ "//camera/build:cros_camera_common" ] | |
| pkg_deps = [ | |
| "libcros_camera_android_deps", | |
| "libsync", | |
| ] | |
| } | |
| if (use.ipu6 || use.ipu6ep || use.ipu6epmtl) { | |
| cc_embed_data("embedded_hdrnet_processor_shaders_ipu6") { | |
| sources = [ | |
| "//camera/features/hdrnet/shaders/postprocess_ipu6.frag", | |
| "//camera/features/hdrnet/shaders/preprocess_ipu6.frag", | |
| ] | |
| } | |
| } | |
| source_set("hdrnet") { | |
| sources = [ | |
| "//camera/features/hdrnet/hdrnet_config.cc", | |
| "//camera/features/hdrnet/hdrnet_processor_device_adapter.cc", | |
| "//camera/features/hdrnet/hdrnet_processor_impl.cc", | |
| "//camera/features/hdrnet/hdrnet_stream_manipulator.cc", | |
| ] | |
| libs = [ "gcam_cros" ] | |
| public_configs = [ ":target_defaults" ] | |
| # -fPIC needed by the libcros_camera.so shared library. | |
| configs += [ "//common-mk:pic" ] | |
| public_deps = [ "//camera/gpu" ] | |
| deps = [ | |
| "//camera/common:libcros_camera_mojom", | |
| "//camera/gpu:image_processor", | |
| ] | |
| if (use.ipu6 || use.ipu6ep || use.ipu6epmtl) { | |
| sources += [ | |
| "//camera/features/hdrnet/hdrnet_processor_device_adapter_ipu6.cc", | |
| "//camera/features/hdrnet/ipu6_gamma.cc", | |
| ] | |
| deps += [ ":embedded_hdrnet_processor_shaders_ipu6" ] | |
| } | |
| } |