blob: 1fb0da070d5e813517695a03429285747bf13c79 [file]
# Copyright 2026 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.
load("//build/bazel/rules/cc:fx_cc_library.bzl", "fx_cc_library")
load("//build/bazel/rules/cc:fx_cc_test_binary.bzl", "fx_cc_test_binary")
load("//build/bazel/rules/testing:fx_unittest_package.bzl", "fx_unittest_package")
package(default_applicable_licenses = ["//:license"])
fx_cc_library(
name = "lib",
srcs = ["controller_error.cc"],
hdrs = ["controller_error.h"],
implementation_deps = [
"//sdk/lib/sys/cpp",
"//sdk/lib/syslog/cpp",
"//src/lib/fxl",
],
visibility = ["//src/camera/bin/camera-gym/controller_client:__pkg__"],
deps = ["//src/camera/bin/camera-gym/fidl:controller_hlcpp"],
alwayslink = True,
)
fx_cc_test_binary(
name = "camera_gym_controller_error_unittest_bin",
srcs = ["controller_error_unittest.cc"],
tags = ["manual"],
deps = [
":lib",
"//src/lib/fxl/test:gtest_main",
],
)
fx_unittest_package(
name = "camera_gym_controller_error_unittest",
unit_tests = [":camera_gym_controller_error_unittest_bin"],
visibility = ["//src/camera:__pkg__"],
)