| # 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/fuchsia_component.gni") |
| import("//src/sys/build/fuchsia_package.gni") |
| |
| group("runner") { |
| testonly = true |
| deps = [ ":netemul-runner" ] |
| } |
| |
| executable("bin") { |
| testonly = true |
| output_name = "netemul-runner" |
| sources = [ |
| "main.cc", |
| "runner.cc", |
| "runner.h", |
| ] |
| |
| deps = [ |
| "//sdk/fidl/fuchsia.sys", |
| "//sdk/lib/sys/cpp", |
| "//src/lib/cmx", |
| "//src/lib/fsl", |
| "//src/lib/fxl", |
| "//src/lib/pkg_url", |
| "//third_party/rapidjson", |
| "//zircon/public/lib/async-cpp", |
| "//zircon/system/ulib/async-default", |
| "//zircon/system/ulib/async-loop:async-loop-cpp", |
| "//zircon/system/ulib/async-loop:async-loop-default", |
| ] |
| } |
| |
| fuchsia_component("component") { |
| testonly = true |
| component_name = "netemul-runner" |
| deps = [ ":bin" ] |
| manifest = "meta/netemul_runner.cmx" |
| } |
| |
| fuchsia_package("netemul-runner") { |
| testonly = true |
| deps = [ ":component" ] |
| } |