blob: d047c1711f6038fe353ef895ec30cd2bfdaadab4 [file]
# 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/assembly/bootfs_files_for_assembly.gni")
import("//build/components.gni")
bootfs_files_for_assembly("bootfs") {
deps = [ ":crasher_exe" ]
}
fuchsia_unittest_component("cpp_crasher_test") {
deps = [ ":crasher_test" ]
}
# Because the test package is declared in another file.
fuchsia_test("tests") {
package = "..:crasher_test"
component = ":cpp_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")
executable("crasher_exe") {
sources = [
"cpp_specific.cc",
"crasher.c",
]
configs += [ "//build/cpp:fidl-wire-deprecated-mutable-tables" ]
defines = [ "_ALL_SOURCE" ]
output_name = "crasher"
deps = [
"//sdk/fidl/fuchsia.feedback:fuchsia.feedback_cpp",
"//sdk/lib/async-loop:async-loop-cpp",
"//sdk/lib/async-loop:async-loop-default",
"//sdk/lib/fdio",
"//sdk/lib/syslog/cpp",
"//src/zircon/lib/zircon",
]
cflags = [ "-fstack-protector-all" ]
}
fuchsia_component_manifest("cpp_crasher_manifest") {
component_name = "cpp_crasher"
manifest = "meta/crasher.cml"
}
fuchsia_component("cpp_crasher") {
cm_label = ":cpp_crasher_manifest"
visibility = [
":*",
"//src/developer/forensics/crasher:*",
]
deps = [ ":crasher_exe" ]
}
cc_test_executable("crasher_test") {
sources = [ "crasher_test.cc" ]
deps = [
"//src/lib/fxl/test:gtest_main",
"//third_party/googletest:gtest",
]
testonly = true
emit_tool_path = false
}