| # Copyright 2022 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/components/fuchsia_unittest_package.gni") |
| import("//build/testing/cc_test_executable.gni") |
| |
| group("formatting") { |
| public_deps = [ ":lib" ] |
| } |
| |
| group("tests") { |
| testonly = true |
| public_deps = [ ":formatting-unittest" ] |
| } |
| |
| source_set("lib") { |
| visibility = [ ":*" ] |
| sources = [ |
| "formatting.cc", |
| "macros.h", |
| ] |
| public = [ "formatting.h" ] |
| deps = [ |
| "//sdk/fidl/fuchsia.camera2:fuchsia.camera2_hlcpp", |
| "//sdk/fidl/fuchsia.camera2.hal:fuchsia.camera2.hal_hlcpp", |
| "//sdk/fidl/fuchsia.camera3:fuchsia.camera3_hlcpp", |
| "//sdk/fidl/fuchsia.images2:fuchsia.images2_hlcpp", |
| "//sdk/fidl/fuchsia.sysmem:fuchsia.sysmem_hlcpp", |
| "//sdk/fidl/fuchsia.sysmem2:fuchsia.sysmem2_hlcpp", |
| ] |
| } |
| |
| cc_test_executable("formatting-unittest-bin") { |
| visibility = [ ":*" ] |
| testonly = true |
| sources = [ "formatting-unittest.cc" ] |
| deps = [ |
| "//sdk/fidl/fuchsia.camera2:fuchsia.camera2_hlcpp", |
| "//src/camera/lib/formatting", |
| "//src/lib/fxl/test:gtest_main", |
| ] |
| } |
| |
| fuchsia_unittest_package("formatting-unittest") { |
| visibility = [ ":*" ] |
| deps = [ ":formatting-unittest-bin" ] |
| } |