blob: 2a07acdc5dc23c21cd43b365cf635b4650d48ed3 [file] [log] [blame]
# 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/package.gni")
import("//build/rust/rustc_binary.gni")
import("//build/test/test_package.gni")
rustc_binary("bin") {
name = "wasm_runner"
edition = "2018"
with_unit_tests = true
deps = [
"//garnet/public/lib/fidl/rust/fidl",
"//garnet/public/rust/fuchsia-async",
"//garnet/public/rust/fuchsia-component",
"//garnet/public/rust/fuchsia-runtime",
"//garnet/public/rust/fuchsia-syslog",
"//garnet/public/rust/fuchsia-zircon",
"//sdk/fidl/fuchsia.sys:fuchsia.sys-rustc",
"//src/sys/lib/fuchsia_url:fuchsia_url",
"//third_party/rust_crates:failure",
"//third_party/rust_crates:futures-preview",
"//third_party/rust_crates:serde_json",
"//zircon/system/fidl/fuchsia-io:fuchsia-io-rustc",
]
}
package("wasm_runner") {
deps = [
":bin",
]
binaries = [
{
name = "wasm_runner"
},
]
meta = [
{
path = "meta/wasm_runner.cmx"
dest = "wasm_runner.cmx"
},
]
}
test_package("wasm_runner_tests") {
deps = [
":bin_test",
]
tests = [
{
name = "wasm_runner_bin_test"
},
]
}