blob: 68d3c79f41e0f87dcdb72ebd37381bffcb2ea840 [file] [log] [blame]
# Copyright 2019 The Fuchsia Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import("//build/bind/bind.gni")
import("//src/camera/debug.gni")
group("tests") {
testonly = true
deps = [
":camera_controller_bind_test",
"sherlock:tests",
"test:tests",
]
}
driver_bind_rules("camera_controller_bind") {
rules = "camera_controller.bind"
header_output = "bind.h"
tests = "bind_tests.json"
deps = [ "//src/devices/bind/fuchsia.composite" ]
}
source_set("source") {
defines = [ camera_debug_define ]
visibility = [ "../*" ]
sources = [
"controller_device.cc",
"controller_device.h",
"controller_protocol.cc",
"controller_protocol.h",
"debug_protocol.cc",
"debug_protocol.h",
"gdc_node.cc",
"gdc_node.h",
"ge2d_node.cc",
"ge2d_node.h",
"input_node.cc",
"input_node.h",
"memory_allocation.cc",
"memory_allocation.h",
"output_node.cc",
"output_node.h",
"passthrough_node.cc",
"passthrough_node.h",
"pipeline_manager.cc",
"pipeline_manager.h",
"processing_node.cc",
"processing_node.h",
]
deps = [
":camera_controller_bind",
"//src/camera/lib/formatting",
"//src/camera/lib/numerics",
"//src/camera/lib/tokens",
"//zircon/third_party/ulib/safemath",
]
public_deps = [
"//sdk/banjo/fuchsia.hardware.camerahwaccel:fuchsia.hardware.camerahwaccel_banjo_cpp",
"//sdk/banjo/fuchsia.hardware.gdc:fuchsia.hardware.gdc_banjo_cpp",
"//sdk/banjo/fuchsia.hardware.ge2d:fuchsia.hardware.ge2d_banjo_cpp",
"//sdk/banjo/fuchsia.hardware.isp:fuchsia.hardware.isp_banjo_cpp",
"//sdk/banjo/fuchsia.hardware.sysmem:fuchsia.hardware.sysmem_banjo_cpp",
"//sdk/fidl/fuchsia.camera2:fuchsia.camera2_hlcpp",
"//sdk/fidl/fuchsia.camera2.debug:fuchsia.camera2.debug_hlcpp",
"//sdk/fidl/fuchsia.camera2.hal:fuchsia.camera2.hal_hlcpp",
# The LLCPP bindings for fuchsia.hardware.camera is used by controller_device.h
"//sdk/fidl/fuchsia.hardware.camera:fuchsia.hardware.camera_cpp_wire",
"//sdk/fidl/fuchsia.sysmem:fuchsia.sysmem_c",
"//sdk/lib/fit",
"//sdk/lib/fit-promise",
"//sdk/lib/syslog/cpp",
"//src/camera/drivers/controller/configs",
"//src/camera/lib/format_conversion",
"//src/devices/bus/lib/device-protocol-pdev",
"//src/devices/bus/lib/device-protocol-platform-device",
"//src/devices/lib/driver",
"//src/devices/lib/sysmem",
"//src/lib/ddk",
"//src/lib/ddktl",
"//src/lib/digest",
"//src/lib/fsl",
"//src/lib/fxl",
"//zircon/system/ulib/async:async-cpp",
"//zircon/system/ulib/async-loop:async-loop-cpp",
"//zircon/system/ulib/async-loop:async-loop-default",
"//zircon/system/ulib/fbl",
"//zircon/system/ulib/fidl-utils",
"//zircon/system/ulib/hwreg",
"//zircon/system/ulib/image-format",
"//zircon/system/ulib/trace",
"//zircon/system/ulib/zircon-internal",
"//zircon/system/ulib/zx",
]
# TODO(fxbug.dev/95833): This target uses the deprecated C bindings.
# Consider switching to the C++ bindings. See linked bug for details.
configs += [ "//build/c:fidl-deprecated-c-bindings" ]
}