| # 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/rust/rustc_binary.gni") |
| |
| rustc_binary("bin") { |
| name = "xi_core" |
| edition = "2018" |
| deps = [ |
| "//garnet/public/fidl/fuchsia.xi:fuchsia.xi-rustc", |
| "//garnet/public/lib/fidl/rust/fidl", |
| "//garnet/public/rust/fuchsia-app", |
| "//garnet/public/rust/fuchsia-async", |
| "//garnet/public/rust/fuchsia-zircon", |
| "//third_party/rust-crates/rustc_deps:byteorder", |
| "//third_party/rust-crates/rustc_deps:failure", |
| "//third_party/rust-crates/rustc_deps:futures-preview", |
| "//third_party/rust-crates/rustc_deps:xi-core-lib", |
| "//third_party/rust-crates/rustc_deps:xi-rpc", |
| ] |
| } |
| |
| package("xi_core") { |
| meta = [ |
| { |
| path = rebase_path("meta/xi_core.cmx") |
| dest = "xi_core.cmx" |
| }, |
| ] |
| |
| deps = [ |
| ":bin", |
| ] |
| |
| binary = "xi_core" |
| } |