blob: d3332990634e89a8d3c0e21f5d8344bc74cb4c7e [file] [edit]
# 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.
# This library contains helper classes used by both the debug_agent and zxdb
# but that aren't directly related to the protocol.
## 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")
static_library("test_support") {
testonly = true
sources = [
"mock_memory.cc",
"mock_memory.h",
"register_test_support.cc",
"register_test_support.h",
"test_with_loop.h",
]
visibility = [
":*",
"//src/developer/debug/*",
"//src/lib/unwinder/*",
]
public_deps = [
":shared",
"//third_party/googletest:gtest",
]
}
static_library("tests") {
testonly = true
sources = []
sources += [
"address_range_unittest.cc",
"handle_info_unittest.cc",
"largest_less_or_equal_unittest.cc",
"message_loop_unittest.cc",
"regex_unittest.cc",
"register_info_unittest.cc",
"stream_buffer_unittest.cc",
"string_util_unittest.cc",
]
if (is_linux) {
sources += [ "message_loop_linux_unittest.cc" ]
} else if (is_fuchsia) {
sources += [ "message_loop_fuchsia_unittest.cc" ]
}
deps = [
":shared",
"//third_party/googletest:gtest",
]
}
source_set("shared") {
sources = []
sources += [
"address_range.cc",
"arch.cc",
"arch_x86.cc",
"buffered_bidi_pipe.cc",
"buffered_fd.cc",
"handle_info.cc",
"message_loop.cc",
"platform.cc",
"regex.cc",
"register_info.cc",
"register_value.cc",
"serialization.cc",
"status.cc",
"stream_buffer.cc",
"string_util.cc",
"test_stream_buffer.cc",
"zx_status.cc",
]
if (is_fuchsia) {
sources += [
"buffered_zx_socket.cc",
"event_handlers.cc",
"message_loop_fuchsia.cc",
"zircon_utils.cc",
]
} else if (is_linux) {
sources += [
"message_loop_linux.cc",
"message_loop_poll.cc",
]
} else {
sources += [ "message_loop_poll.cc" ]
}
public = []
public += [
"address_range.h",
"arch.h",
"arch_arm64.h",
"arch_x86.h",
"buffered_bidi_pipe.h",
"buffered_fd.h",
"buffered_stream.h",
"handle_info.h",
"largest_less_or_equal.h",
"message_loop.h",
"platform.h",
"platform_message_loop.h",
"regex.h",
"register_id.h",
"register_info.h",
"register_value.h",
"result.h",
"serialization.h",
"status.h",
"stream_buffer.h",
"string_util.h",
"test_stream_buffer.h",
"zx_status.h",
"zx_status_definitions.h",
]
if (is_fuchsia) {
public += [
"buffered_zx_socket.h",
"channel_watcher.h",
"event_handlers.h",
"event_pair_watcher.h",
"message_loop_fuchsia.h",
"peered_object_watcher.h",
"socket_watcher.h",
"zircon_exception_watcher.h",
"zircon_utils.h",
]
} else if (is_linux) {
public += [
"message_loop_linux.h",
"message_loop_poll.h",
]
} else {
public += [ "message_loop_poll.h" ]
}
visibility = [ "*" ]
public_deps = []
public_deps += [
"//sdk/lib/fit-promise",
"//sdk/lib/syslog/cpp",
"//src/developer/debug/shared/logging",
"//src/lib/containers/cpp",
"//src/lib/fxl",
"//third_party/re2",
]
if (is_fuchsia) {
public_deps += [
"//sdk/lib/async:async-cpp",
"//sdk/lib/async-default",
"//sdk/lib/async-loop:async-loop-cpp",
"//sdk/lib/async-loop:async-loop-default",
"//sdk/lib/fdio",
"//sdk/lib/fit",
"//zircon/system/ulib/zx",
]
}
}