| # Copyright 2020 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/components.gni") | |
| fuchsia_unittest_component("rust_crasher_test") { | |
| deps = [ ":crasher_exe_test" ] | |
| } | |
| # Because the test package is declared in another file. | |
| fuchsia_test("tests") { | |
| package = "..:crasher_test" | |
| component = ":rust_crasher_test" | |
| build_only = true # don't run it on any bots | |
| } | |
| ## 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") | |
| rustc_binary("crasher_exe") { | |
| sources = [ "src/main.rs" ] | |
| output_name = "rust_crasher" | |
| edition = "2024" | |
| deps = [ | |
| "//src/lib/fuchsia-async", | |
| "//third_party/rust_crates:argh", | |
| ] | |
| } | |
| fuchsia_component_manifest("rust_crasher_manifest") { | |
| component_name = "rust_crasher" | |
| manifest = "meta/crasher.cml" | |
| } | |
| fuchsia_component("rust_crasher") { | |
| cm_label = ":rust_crasher_manifest" | |
| visibility = [ | |
| ":*", | |
| "//src/developer/forensics/crasher:*", | |
| ] | |
| deps = [ ":crasher_exe" ] | |
| } | |
| rustc_test("crasher_exe_test") { | |
| sources = [ "src/main.rs" ] | |
| edition = "2024" | |
| deps = [ | |
| "//src/lib/fuchsia-async", | |
| "//third_party/rust_crates:argh", | |
| ] + [ "//src/lib/fuchsia" ] | |
| source_root = "src/main.rs" | |
| output_name = "rust_crasher_bin_test" | |
| } |