blob: 117b71961175313a598e5f2e2751b6d92d400b47 [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/components.gni")
fuchsia_component("crasher_v1") {
component_name = "cpp_crasher"
manifest = "meta/crasher.cmx"
deps = [ ":crasher_exe" ]
}
fuchsia_component("crasher_v2") {
component_name = "cpp_crasher"
manifest = "meta/crasher.cml"
deps = [ ":crasher_exe" ]
}
executable("crasher_exe") {
output_name = "crasher"
configs += [ "//build/config:all_source" ]
sources = [
"cpp_specific.cc",
"crasher.c",
]
cflags = [ "-fstack-protector-all" ]
deps = [
"//sdk/fidl/fuchsia.feedback:fuchsia.feedback_llcpp",
"//sdk/lib/fdio",
"//src/zircon/lib/zircon",
"//zircon/system/ulib/async-loop:async-loop-cpp",
"//zircon/system/ulib/async-loop:async-loop-default",
]
}