| # Copyright 2019 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") |
| |
| executable("sys_inspect_cpp_bin") { |
| sources = [ "program.cc" ] |
| deps = [ |
| "//sdk/lib/sys/inspect/cpp", |
| "//zircon/system/ulib/async-loop:async-loop-cpp", |
| "//zircon/system/ulib/async-loop:async-loop-default", |
| "//zircon/system/ulib/inspect", |
| ] |
| deps += [ "//src/zircon/lib/zircon" ] |
| } |
| |
| fuchsia_component("sys_inspect_cpp") { |
| deps = [ ":sys_inspect_cpp_bin" ] |
| manifest = "meta/sys_inspect_cpp_bin.cml" |
| } |
| |
| executable("sys_inspect_cpp_tests_bin") { |
| testonly = true |
| sources = [ "test.cc" ] |
| deps = [ |
| "//sdk/fidl/fuchsia.inspect:fuchsia.inspect_hlcpp", |
| "//sdk/lib/inspect/service/cpp", |
| "//sdk/lib/inspect/testing/cpp", |
| "//sdk/lib/sys/component/cpp/testing:cpp", |
| "//sdk/lib/sys/cpp", |
| "//src/lib/fxl", |
| "//src/lib/fxl/test:gtest_main", |
| "//src/lib/testing/loop_fixture:gtest", |
| "//src/zircon/lib/zircon", |
| "//zircon/system/ulib/inspect", |
| ] |
| public_deps = [ |
| "//src/lib/fxl/test:gtest_main", |
| "//third_party/googletest:gmock", |
| ] |
| } |
| |
| fuchsia_unittest_component("sys_inspect_cpp_tests_component") { |
| deps = [ ":sys_inspect_cpp_tests_bin" ] |
| manifest = "meta/sys_inspect_cpp_tests.cml" |
| } |
| |
| fuchsia_test_package("sys_inspect_cpp_tests") { |
| test_components = [ ":sys_inspect_cpp_tests_component" ] |
| deps = [ ":sys_inspect_cpp" ] |
| } |