| # 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") | |
| package(default_applicable_licenses = ["//:license"]) | |
| fx_cc_library( | |
| name = "format_conversion", | |
| srcs = ["format_conversion.cc"], | |
| hdrs = ["format_conversion.h"], | |
| implementation_deps = [ | |
| "//sdk/fidl/fuchsia.sysmem:fuchsia.sysmem_cpp_hlcpp_conversion", | |
| "//sdk/fidl/fuchsia.sysmem2:fuchsia.sysmem2_cpp_hlcpp_conversion", | |
| "//zircon/system/ulib/image-format", | |
| "//zircon/system/ulib/sysmem-version", | |
| ], | |
| visibility = [ | |
| "//src/camera/drivers/controller:__pkg__", | |
| "//src/camera/lib:__pkg__", | |
| "//src/camera/lib/stream_utils:__pkg__", | |
| "//vendor:__subpackages__", | |
| ], | |
| deps = [ | |
| "//sdk/fidl/fuchsia.sysmem:fuchsia.sysmem_cpp", | |
| "//sdk/fidl/fuchsia.sysmem:fuchsia.sysmem_hlcpp", | |
| ], | |
| alwayslink = True, | |
| ) |