| # Copyright 2018 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("//src/sys/build/components.gni") |
| |
| group("components") { |
| testonly = true |
| deps = [ ":components_binary_tests" ] |
| } |
| |
| executable("echo1_bin") { |
| output_name = "echo1" |
| |
| sources = [ "echo.cc" ] |
| |
| deps = [] |
| |
| public_deps = [ "//src/lib/fxl" ] |
| } |
| |
| executable("echo2_bin") { |
| output_name = "echo2" |
| |
| sources = [ "echo.cc" ] |
| |
| deps = [] |
| |
| public_deps = [ "//src/lib/fxl" ] |
| } |
| |
| executable("echo_stdin_bin") { |
| output_name = "echo_stdin" |
| |
| sources = [ "echo_stdin.cc" ] |
| |
| deps = [] |
| |
| public_deps = [ "//src/lib/fxl" ] |
| } |
| |
| executable("getenv_bin") { |
| output_name = "getenv" |
| |
| sources = [ "getenv.cc" ] |
| |
| deps = [] |
| |
| public_deps = [ "//src/lib/fxl" ] |
| } |
| |
| executable("components_binary_test_bin") { |
| output_name = "components_binary_test" |
| testonly = true |
| |
| sources = [ "components_binary_test.cc" ] |
| |
| deps = [ |
| "//sdk/lib/sys/cpp/testing:integration", |
| "//src/lib/fxl", |
| "//src/lib/fxl/test:gtest_main", |
| ] |
| } |
| |
| fuchsia_component("echo1") { |
| deps = [ ":echo1_bin" ] |
| manifest = "meta/echo1.cmx" |
| } |
| |
| fuchsia_component("echo2") { |
| deps = [ ":echo2_bin" ] |
| manifest = "meta/echo2.cmx" |
| } |
| |
| fuchsia_component("echo_deprecated_shell") { |
| deps = [ ":echo1_bin" ] |
| manifest = "meta/echo_deprecated_shell.cmx" |
| } |
| |
| fuchsia_component("echo_hub") { |
| deps = [ ":echo1_bin" ] |
| manifest = "meta/echo_hub.cmx" |
| } |
| |
| fuchsia_component("echo_stdin") { |
| deps = [ ":echo_stdin_bin" ] |
| manifest = "meta/echo_stdin.cmx" |
| } |
| |
| fuchsia_component("getenv1") { |
| deps = [ ":getenv_bin" ] |
| manifest = "meta/getenv1.cmx" |
| } |
| |
| fuchsia_component("getenv2") { |
| deps = [ ":getenv_bin" ] |
| manifest = "meta/getenv2.cmx" |
| } |
| |
| fuchsia_unittest_package("components_binary_tests") { |
| component_name = "components_binary_test" |
| manifest = "meta/components_binary_test.cmx" |
| deps = [ |
| ":components_binary_test_bin", |
| ":echo1", |
| ":echo2", |
| ":echo_deprecated_shell", |
| ":echo_hub", |
| ":echo_stdin", |
| ":getenv1", |
| ":getenv2", |
| ] |
| test_specs = { |
| } |
| } |