| # 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/package.gni") |
| import("//build/fidl/fidl.gni") |
| |
| executable("mock_runner") { |
| testonly = true |
| output_name = "appmgr_mock_runner" |
| |
| sources = [ |
| "main.cc", |
| "mock_runner.cc", |
| "mock_runner.h", |
| ] |
| |
| deps = [ |
| "//garnet/bin/appmgr/integration_tests/fidl:test.component.mockrunner", |
| "//garnet/public/fidl/fuchsia.sys", |
| "//garnet/public/lib/component/cpp", |
| "//zircon/public/lib/async-loop-cpp", |
| ] |
| } |
| |
| package("fake_component_for_runner") { |
| testonly = true |
| |
| meta = [ |
| { |
| path = rebase_path("fake_component/meta/fake_component.cmx") |
| dest = "fake_component_for_runner.cmx" |
| }, |
| ] |
| } |
| |
| package("appmgr_mock_runner") { |
| testonly = true |
| |
| deps = [ |
| ":fake_component_for_runner", |
| ":mock_runner", |
| ] |
| |
| meta = [ |
| { |
| path = rebase_path("meta/mock_runner.cmx") |
| dest = "appmgr_mock_runner.cmx" |
| }, |
| ] |
| |
| binary = "appmgr_mock_runner" |
| } |