blob: 73b118c7c5669b6116064f20b99b3e9c5eaf1744 [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")
rustc_binary("hello_world_bin") {
source_root = "src/hello_world.rs"
name = "hello_world"
edition = "2018"
}
rustc_binary("ls_root_pkg_bin") {
source_root = "src/ls_root_pkg.rs"
name = "ls_root_pkg"
edition = "2018"
}
fuchsia_component("ls_root_pkg_component") {
manifest = rebase_path("meta/ls_root_pkg.cml")
deps = [
":ls_root_pkg_bin",
]
binary = "ls_root_pkg"
}
fuchsia_component("hello_world_component") {
manifest = rebase_path("meta/hello_world.cml")
deps = [
":hello_world_bin",
]
binary = "hello_world"
}
package("hello_world_hippo") {
components = [
":hello_world_component",
":ls_root_pkg_component",
]
}