| # 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", |
| ] |
| } |
| |
| source_set("gcam_ae") { |
| sources = [ |
| "//camera/features/gcam_ae/ae_state_machine.cc", |
| "//camera/features/gcam_ae/gcam_ae_controller_impl.cc", |
| "//camera/features/gcam_ae/gcam_ae_device_adapter.cc", |
| "//camera/features/gcam_ae/gcam_ae_stream_manipulator.cc", |
| ] |
| libs = [ "gcam_cros" ] |
| public_configs = [ ":target_defaults" ] |
| |
| # -fPIC needed by the libcros_camera.so shared library. |
| configs += [ "//common-mk:pic" ] |
| |
| if (use.ipu6 || use.ipu6ep || use.ipu6epmtl) { |
| sources += [ "//camera/features/gcam_ae/gcam_ae_device_adapter_ipu6.cc" ] |
| } |
| deps = [ "//camera/common:libcros_camera_mojom" ] |
| } |