blob: 34da8376ba322f44c729b895805cbed6f5735f2f [file]
# 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.
# Targets meant for helping zxdb development. See README.md
## 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")
group("debug_so") {
testonly = true
deps = [
":debug_agent_test_loadable_module",
":debug_agent_test_so",
]
}
source_set("debug_agent_test_so_lib") {
testonly = true
sources = []
sources += [ "breakpoint_test_so.cc" ]
if (current_cpu == "x64") {
sources += [ "x64_write_register_test_so.cc" ]
}
public = [ "test_so_symbols.h" ]
deps = [ "//build/config/fuchsia:uses-outline-atomics-fxbug98632" ]
}
shared_library("debug_agent_test_so") {
testonly = true
public_deps = [ ":debug_agent_test_so_lib" ]
deps = [ ":debug_agent_test_so_lib" ]
}
loadable_module("debug_agent_test_loadable_module") {
testonly = true
output_name = "debug_agent_test_so"
ldflags = [ "-Wl,-soname,debug_agent_test_so.so" ]
deps = [ ":debug_agent_test_so_lib" ]
}
group("test_executables") {
testonly = true
deps = []
deps += [
":breakpoint_test_exe",
":load_so_exe",
":multithreaded_breakpoint_test_exe",
":watchpoint_test_exe",
]
if (current_cpu == "x64") {
deps += [ ":write_register_test_exe" ]
}
}
cc_test_executable("breakpoint_test_exe") {
sources = [ "breakpoint_test_exe.cc" ]
testonly = true
emit_tool_path = false
deps = [ ":debug_agent_test_so" ]
}
executable("load_so_exe") {
testonly = true
sources = [ "load_so.cc" ]
visibility = [
":*",
"//src/developer/debug/debug_agent:*",
]
data_deps = [ ":debug_agent_test_loadable_module" ]
}
cc_test_executable("multithreaded_breakpoint_test_exe") {
sources = [ "multithreaded_breakpoint_test_exe.cc" ]
testonly = true
emit_tool_path = false
deps = [ ":debug_agent_test_so" ]
}
cc_test_executable("watchpoint_test_exe") {
sources = [ "watchpoint_test_exe.cc" ]
testonly = true
emit_tool_path = false
}
cc_test_executable("zxdump_test_child") {
sources = [ "zxdump_test_child.cc" ]
visibility = [
":*",
"//src/developer/debug/debug_agent:*",
]
testonly = true
emit_tool_path = false
exclude_toolchain_tags = [ "uses-shadow" ]
}
if (current_cpu == "x64") {
cc_test_executable("write_register_test_exe") {
sources = [ "x64_write_register_test_exe.cc" ]
testonly = true
emit_tool_path = false
deps = [ ":debug_agent_test_so" ]
}
}
group("helper_executables") {
visibility = [
":*",
"//src/developer/debug/debug_agent:*",
]
deps = [
":backtrace_request",
":debug_test_false",
":debug_test_true",
":hw_watchpointer",
":limbo_caller",
":multi_threaded",
":printer",
":test_suite",
":thread_signals",
]
}
executable("backtrace_request") {
sources = [ "backtrace_request.cc" ]
deps = [
"//src/lib/debug:backtrace-request",
"//zircon/system/ulib/zx",
]
}
executable("debug_test_true") {
sources = [ "true.c" ]
}
executable("debug_test_false") {
sources = [ "false.c" ]
}
executable("test_suite") {
sources = [
"test_suite.cc",
"test_suite_helpers.cc",
"test_suite_helpers.h",
]
data_deps = [ ":hw_watchpointer" ]
deps = [
"//sdk/lib/fdio",
"//sdk/lib/fit",
"//sdk/lib/syslog/cpp",
"//src/developer/debug/shared",
"//src/lib/files",
"//src/lib/fxl",
"//zircon/system/ulib/zx",
]
}
executable("hw_watchpointer") {
sources = [ "hw_watchpointer.cc" ]
deps = [
"//sdk/lib/syslog/cpp",
"//src/developer/debug/shared",
"//src/lib/fxl",
"//zircon/system/ulib/zx",
]
}
executable("multi_threaded") {
sources = [ "multi_threaded.cc" ]
defines = [ "_ALL_SOURCE" ]
deps = [
"//sdk/lib/syslog/cpp",
"//src/lib/fxl",
"//zircon/system/ulib/zx",
]
}
executable("printer") {
sources = [ "printer.cc" ]
}
executable("thread_signals") {
sources = [ "thread_signals.cc" ]
deps = [
"//sdk/lib/fdio",
"//sdk/lib/syslog/cpp",
"//src/lib/fxl",
"//zircon/system/ulib/zx",
]
}
executable("limbo_caller") {
sources = [ "limbo_caller.cc" ]
deps = [
"//sdk/fidl/fuchsia.exception:fuchsia.exception_hlcpp",
"//sdk/fidl/fuchsia.io:fuchsia.io_cpp",
"//sdk/lib/async-loop:async-loop-cpp",
"//sdk/lib/async-loop:async-loop-default",
"//sdk/lib/fdio",
"//sdk/lib/sys/cpp",
"//sdk/lib/syslog/cpp",
"//src/lib/fsl",
"//src/lib/fxl",
"//zircon/system/ulib/zx",
]
}