| # 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("//build/fidl/fidl.gni") |
| import("//src/sys/build/components.gni") |
| |
| group("mock_runner") { |
| testonly = true |
| deps = [ |
| ":appmgr_mock_runner", |
| ":fake_component_for_runner", |
| ] |
| } |
| |
| executable("bin") { |
| testonly = true |
| output_name = "appmgr_mock_runner" |
| |
| sources = [ |
| "main.cc", |
| "mock_runner.cc", |
| "mock_runner.h", |
| ] |
| |
| deps = [ |
| "//sdk/fidl/fuchsia.sys", |
| "//sdk/lib/sys/cpp", |
| "//src/lib/fxl", |
| "//src/sys/appmgr/integration_tests/fidl:test.component.mockrunner", |
| "//zircon/system/ulib/async-loop:async-loop-cpp", |
| "//zircon/system/ulib/async-loop:async-loop-default", |
| ] |
| |
| # TODO(fxbug.dev/58162): delete the below and fix compiler warnings |
| configs += [ "//build/config:Wno-conversion" ] |
| } |
| |
| fuchsia_component("fake_component_for_runner_component") { |
| component_name = "fake_component_for_runner" |
| testonly = true |
| manifest = "fake_component/meta/fake_component.cmx" |
| } |
| |
| fuchsia_package("fake_component_for_runner") { |
| testonly = true |
| deps = [ ":fake_component_for_runner_component" ] |
| } |
| |
| fuchsia_component("appmgr_mock_runner_component") { |
| testonly = true |
| component_name = "appmgr_mock_runner" |
| deps = [ ":bin" ] |
| manifest = "meta/mock_runner.cmx" |
| } |
| |
| fuchsia_package("appmgr_mock_runner") { |
| testonly = true |
| deps = [ ":appmgr_mock_runner_component" ] |
| } |