| # Copyright 2021 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. | |
| ## BAZEL2GN SENTINEL - DO NOT EDIT BELOW THIS LINE ## | |
| # | |
| # ________ _________ ________ ________ | |
| # |\ ____\|\___ ___\\ __ \|\ __ \ | |
| # \ \ \___|\|___ \ \_\ \ \|\ \ \ \|\ \ | |
| # \ \_____ \ \ \ \ \ \ \\\ \ \ ____\ | |
| # \|____|\ \ \ \ \ \ \ \\\ \ \ \___| | |
| # ____\_\ \ \ \__\ \ \_______\ \__\ | |
| # |\_________\ \|__| \|_______|\|__| | |
| # \|_________| | |
| # | |
| # | |
| # AUTO-GENERATED - DO NOT EDIT | |
| # | |
| # The targets below are auto-generated based on the targets defined in the | |
| # BUILD.bazel file from the same directory. If you made changes to targets in | |
| # Bazel, instead of editing this file manually, run: | |
| # | |
| # > fx bazel2gn | |
| # | |
| # Please do NOT edit this file directly. Instead, edit the BUILD.bazel file and | |
| # rerun bazel2gn. | |
| import("//build/tools/bazel2gn/bazel_migration.gni") | |
| if (is_host) { | |
| rustc_library("ffx_emulator_common") { | |
| sources = [ | |
| "src/config.rs", | |
| "src/lib.rs", | |
| "src/process.rs", | |
| "src/tuntap.rs", | |
| ] | |
| edition = "2024" | |
| visibility = [ | |
| ":*", | |
| "//src/developer/ffx/plugins/emulator/commands/start:*", | |
| "//src/developer/ffx/plugins/emulator/engines:*", | |
| ] | |
| deps = [ | |
| "//src/developer/ffx/lib/fho:lib", | |
| "//src/developer/ffx/lib/process:lib", | |
| "//third_party/rust_crates:anyhow", | |
| "//third_party/rust_crates:cfg-if", | |
| "//third_party/rust_crates:mockall", | |
| "//third_party/rust_crates:nix", | |
| "//third_party/rust_crates:rand", | |
| "//third_party/rust_crates:shared_child", | |
| "//third_party/rust_crates:signal-hook", | |
| ] | |
| } | |
| } | |
| if (is_host) { | |
| rustc_test("ffx_emulator_common_test") { | |
| sources = [ | |
| "src/config.rs", | |
| "src/lib.rs", | |
| "src/process.rs", | |
| "src/tuntap.rs", | |
| ] | |
| edition = "2024" | |
| deps = [ | |
| "//src/developer/ffx/lib/fho:lib", | |
| "//src/developer/ffx/lib/process:lib", | |
| "//third_party/rust_crates:anyhow", | |
| "//third_party/rust_crates:cfg-if", | |
| "//third_party/rust_crates:mockall", | |
| "//third_party/rust_crates:nix", | |
| "//third_party/rust_crates:rand", | |
| "//third_party/rust_crates:shared_child", | |
| "//third_party/rust_crates:signal-hook", | |
| ] + [ "//third_party/rust_crates:libc" ] | |
| visibility = [ | |
| ":*", | |
| "//src/developer/ffx:*", | |
| ] | |
| } | |
| } |