blob: a6809b3a341fca2163d551575537afc05c67e4b8 [file] [log] [blame]
# 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 is shared between the client and agent code. You should depend
# on it via one of those targets.
group("ipc") {
testonly = true
deps = [
":agent",
":client",
":shared",
":tests",
]
}
static_library("shared") {
visibility = [ ":*" ]
sources = [
"decode_exception.cc",
"decode_exception.h",
"message_reader.cc",
"message_reader.h",
"message_writer.cc",
"message_writer.h",
"protocol.cc",
"protocol.h",
"protocol_helpers.cc",
"protocol_helpers.h",
"records.cc",
"records.h",
"register_desc.cc",
"register_desc.h",
"register_test_support.cc",
"register_test_support.h",
]
deps = [
"//src/developer/debug/shared",
"//zircon/system/public",
]
public_deps = [ "//src/lib/fxl" ]
}
static_library("agent") {
sources = [
"agent_protocol.cc",
"agent_protocol.h",
]
public_deps = [ ":shared" ]
}
static_library("client") {
sources = [
"client_protocol.cc",
"client_protocol.h",
]
public_deps = [ ":shared" ]
}
# Unit tests for this directory. These are intended to be referenced by unit
# test targets for the consumers of this library.
source_set("tests") {
testonly = true
sources = [
"decode_exception_unittests.cc",
"message_unittests.cc",
"protocol_unittests.cc",
"register_desc_unittest.cc",
]
deps = [
"//src/developer/debug/shared",
"//third_party/googletest:gtest",
]
public_deps = [
":agent",
":client",
]
}