| # Copyright 2020 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. | |
| group("tests") { | |
| testonly = true | |
| deps = [ ":virtual_camera_unittest" ] | |
| } | |
| ## BAZEL2GN SENTINEL - DO NOT EDIT BELOW THIS LINE ## | |
| # | |
| # ________ _________ ________ ________ | |
| # |\ ____\|\___ ___\\ __ \|\ __ \ | |
| # \ \ \___|\|___ \ \_\ \ \|\ \ \ \|\ \ | |
| # \ \_____ \ \ \ \ \ \ \\\ \ \ ____\ | |
| # \|____|\ \ \ \ \ \ \ \\\ \ \ \___| | |
| # ____\_\ \ \ \__\ \ \_______\ \__\ | |
| # |\_________\ \|__| \|_______|\|__| | |
| # \|_________| | |
| # | |
| # | |
| # AUTO-GENERATED - DO NOT EDIT | |
| # | |
| # The targets below are auto-generated based on the targets defined in the | |
| # BUILD.bazel file from the same directory. If you made changes to targets in | |
| # Bazel, instead of editing this file manually, run: | |
| # | |
| # > fx bazel2gn | |
| # | |
| # Please do NOT edit this file directly. Instead, edit the BUILD.bazel file and | |
| # rerun bazel2gn. | |
| import("//build/tools/bazel2gn/bazel_migration.gni") | |
| source_set("virtual_camera") { | |
| sources = [ | |
| "virtual_camera_impl.cc", | |
| "virtual_camera_impl.h", | |
| ] | |
| public = [ "virtual_camera.h" ] | |
| deps = [ | |
| "//sdk/fidl/fuchsia.images2:fuchsia.images2_cpp_hlcpp_conversion", | |
| "//sdk/fidl/fuchsia.sysmem:fuchsia.sysmem_cpp_hlcpp_conversion", | |
| "//sdk/lib/async:async-cpp", | |
| "//sdk/lib/async-loop:async-loop-cpp", | |
| "//sdk/lib/async-loop:async-loop-default", | |
| "//sdk/lib/syslog/cpp", | |
| "//src/camera/lib/fake_camera", | |
| "//src/camera/lib/fake_stream", | |
| "//zircon/third_party/ulib/safemath", | |
| ] | |
| visibility = [ | |
| ":*", | |
| "//src/camera/lib:*", | |
| ] | |
| public_deps = [ | |
| "//sdk/fidl/fuchsia.camera3:fuchsia.camera3_hlcpp", | |
| "//sdk/fidl/fuchsia.sysmem:fuchsia.sysmem_hlcpp", | |
| "//sdk/lib/fit-promise", | |
| "//src/lib/fsl", | |
| "//zircon/system/ulib/fzl", | |
| "//zircon/system/ulib/sysmem-version", | |
| ] | |
| } | |
| cc_test_executable("virtual_camera_unittest_bin") { | |
| sources = [ "virtual_camera_unittest.cc" ] | |
| deps = [ | |
| ":virtual_camera", | |
| "//sdk/lib/sys/cpp", | |
| "//src/lib/fxl/test:gtest_main", | |
| "//src/lib/testing/loop_fixture", | |
| ] | |
| testonly = true | |
| emit_tool_path = false | |
| } | |
| fuchsia_component_manifest("virtual_camera_unittest_manifest") { | |
| testonly = true | |
| component_name = "virtual_camera_unittest" | |
| manifest = "meta/virtual_camera_unittest.cml" | |
| } | |
| fuchsia_test_component("virtual_camera_unittest_component") { | |
| cm_label = ":virtual_camera_unittest_manifest" | |
| deps = [ ":virtual_camera_unittest_bin" ] | |
| test_type = "system" | |
| } | |
| fuchsia_test_package("virtual_camera_unittest") { | |
| package_name = "virtual_camera_unittest-gn" | |
| test_components = [ ":virtual_camera_unittest_component" ] | |
| } |