| # 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.gni") |
| import("//build/test.gni") |
| |
| test("branch-bin") { |
| output_name = "branch_bin_cpp" |
| deps = [ |
| "//examples/components/services/fidl:fuchsia.examples.services_hlcpp", |
| "//sdk/fidl/fuchsia.component:fuchsia.component_hlcpp", |
| "//sdk/fidl/fuchsia.component.decl:fuchsia.component.decl_hlcpp", |
| "//sdk/lib/sys/cpp", |
| "//sdk/lib/syslog/cpp", |
| "//src/lib/fxl/test:gtest_main", |
| "//src/lib/testing/loop_fixture:gtest", |
| "//zircon/system/ulib/async-loop:async-loop-cpp", |
| "//zircon/system/ulib/async-loop:async-loop-default", |
| ] |
| sources = [ "branch.cc" ] |
| } |
| |
| executable("provider-bin") { |
| output_name = "provider_bin_cpp" |
| deps = [ |
| "//examples/components/services/fidl:fuchsia.examples.services_cpp", |
| "//sdk/lib/component/outgoing/cpp", |
| "//sdk/lib/syslog/cpp", |
| "//zircon/system/ulib/async-loop:async-loop-cpp", |
| "//zircon/system/ulib/async-loop:async-loop-default", |
| ] |
| sources = [ "provider.cc" ] |
| } |
| |
| fuchsia_package_with_single_component("branch") { |
| component_name = "default" |
| testonly = true |
| manifest = "meta/branch.cml" |
| deps = [ ":branch-bin" ] |
| } |
| |
| fuchsia_package_with_single_component("provider-a") { |
| component_name = "default" |
| testonly = true |
| manifest = "meta/provider-a.cml" |
| deps = [ ":provider-bin" ] |
| } |
| |
| fuchsia_package_with_single_component("provider-b") { |
| component_name = "default" |
| testonly = true |
| manifest = "meta/provider-b.cml" |
| deps = [ ":provider-bin" ] |
| } |