blob: fb903b91f659eed25f3acef09d88eaf0c1917b35 [file] [log] [blame] [edit]
# 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("$zx/public/gn/config/standard.gni")
import("$zx/public/gn/toolchain/select_toolchain.gni")
group("default") {
deps = [
# TODO: ":tools",
# TODO: make it host_cpu? or standard_fuchsia_cpus (i.e. both)?
# Add a buildarg to build multiple variants into complete ZBIs.
":x64",
]
}
# Build the native host tools intended for developer use.
select_toolchain("host_dev_tools") {
environment_label = "$zx/public/gn/toolchain:host"
deps = [
# TODO: "$zx/system/host:tools"
]
}
if (false) { #TODO: later
# Install the host developer tools for the running host platform in the
# "$root_build_dir/tools/" directory.
copy("tools") {
sources = [
# TODO: get_metadata([ ":host_dev_tools" ], [ "tool_executables" ]),
]
outputs = [
"$root_build_dir/tools/{{source_file_part}}",
]
}
}
foreach(cpu, standard_fuchsia_cpus) {
group(cpu) {
deps = [
"$zx/public/kernel:$cpu",
]
}
}