提交 f73e0cbd 编写于 作者: S storypku 提交者: Liu Jiaming

cyber/transport: BUILD files for sub directories and directory layout re-org

上级 ade4cf63
......@@ -30,8 +30,8 @@ cc_binary(
cc_library(
name = "binary",
hdrs = ["binary.h"],
srcs = ["binary.cc"],
hdrs = ["binary.h"],
)
cc_library(
......@@ -104,12 +104,11 @@ cc_library(
"//cyber/time:rate",
"//cyber/timer",
"//cyber/transport",
"//cyber/transport:participant",
"//cyber/transport:sub_listener",
"//cyber/transport/rtps:participant",
"//cyber/transport/rtps:sub_listener",
"@com_google_glog//:glog",
"@com_google_protobuf//:protobuf",
"@fastrtps",
"@uuid",
],
)
......
......@@ -30,11 +30,8 @@ cc_library(
":component_base",
"//cyber/blocker:blocker_manager",
"//cyber/timer",
"//cyber/transport:history",
"//cyber/transport:hybrid_transmitter",
"//cyber/transport:intra_transmitter",
"//cyber/transport:rtps_transmitter",
"//cyber/transport:shm_transmitter",
"//cyber/transport/transmitter",
"//cyber/transport/message:history",
],
)
......
......@@ -10,9 +10,9 @@ cc_library(
deps = [
":channel_manager",
":node_manager",
":participant_listener",
":service_manager",
"//cyber/transport:participant",
"//cyber/service_discovery/communication:participant_listener",
"//cyber/transport/rtps:participant",
],
)
......@@ -26,28 +26,6 @@ cc_test(
],
)
cc_library(
name = "participant_listener",
srcs = ["communication/participant_listener.cc"],
hdrs = ["communication/participant_listener.h"],
deps = [
"//cyber/common:log",
"@fastrtps",
],
)
cc_library(
name = "subscriber_listener",
srcs = ["communication/subscriber_listener.cc"],
hdrs = ["communication/subscriber_listener.h"],
deps = [
"//cyber/common:log",
"//cyber/transport:underlay_message",
"//cyber/transport:underlay_message_type",
"@fastrtps",
],
)
cc_library(
name = "graph",
srcs = ["container/graph.cc"],
......@@ -138,7 +116,6 @@ cc_library(
srcs = ["specific_manager/manager.cc"],
hdrs = ["specific_manager/manager.h"],
deps = [
":subscriber_listener",
"//cyber:state",
"//cyber/base:signal",
"//cyber/message:message_traits",
......@@ -146,10 +123,12 @@ cc_library(
"//cyber/proto:proto_desc_cc_proto",
"//cyber/proto:role_attributes_cc_proto",
"//cyber/proto:topology_change_cc_proto",
"//cyber/service_discovery/communication:subscriber_listener",
"//cyber/time",
"//cyber/transport:attributes_filler",
"//cyber/transport:qos_profile_conf",
"//cyber/transport:underlay_message_type",
"//cyber/transport/qos",
"//cyber/transport/rtps:attributes_filler",
"//cyber/transport/rtps:underlay_message_type",
"@fastrtps",
],
)
......
load("@rules_cc//cc:defs.bzl", "cc_library")
load("//tools:cpplint.bzl", "cpplint")
package(default_visibility = ["//visibility:public"])
cc_library(
name = "participant_listener",
srcs = ["participant_listener.cc"],
hdrs = ["participant_listener.h"],
deps = [
"//cyber/common:log",
"@fastrtps",
],
)
cc_library(
name = "subscriber_listener",
srcs = ["subscriber_listener.cc"],
hdrs = ["subscriber_listener.h"],
deps = [
"//cyber/common:log",
"//cyber/transport/rtps:underlay_message",
"//cyber/transport/rtps:underlay_message_type",
"@fastrtps",
],
)
cpplint()
......@@ -8,561 +8,28 @@ cc_library(
srcs = ["transport.cc"],
hdrs = ["transport.h"],
deps = [
":attributes_filler",
":history",
":hybrid_receiver",
":hybrid_transmitter",
":intra_dispatcher",
":intra_receiver",
":intra_transmitter",
":participant",
":qos_profile_conf",
":rtps_dispatcher",
":rtps_receiver",
":rtps_transmitter",
":shm_dispatcher",
":shm_receiver",
":shm_transmitter",
":sub_listener",
":underlay_message",
":underlay_message_type",
"//cyber/service_discovery:role",
"//cyber/task",
"//cyber/transport/dispatcher:intra_dispatcher",
"//cyber/transport/dispatcher:rtps_dispatcher",
"//cyber/transport/dispatcher:shm_dispatcher",
"//cyber/transport/message:history",
"//cyber/transport/qos",
"//cyber/transport/receiver",
"//cyber/transport/rtps:attributes_filler",
"//cyber/transport/rtps:participant",
"//cyber/transport/rtps:sub_listener",
"//cyber/transport/rtps:underlay_message",
"//cyber/transport/rtps:underlay_message_type",
"//cyber/transport/transmitter",
"@fastrtps",
],
)
cc_test(
name = "transport_test",
size = "large",
srcs = ["transport_test.cc"],
deps = [
"//cyber:cyber_core",
"//cyber/proto:unit_test_cc_proto",
"@com_google_googletest//:gtest",
],
)
cc_library(
name = "endpoint",
srcs = ["common/endpoint.cc"],
hdrs = ["common/endpoint.h"],
deps = [
":identity",
"//cyber/common:global_data",
"//cyber/proto:role_attributes_cc_proto",
],
)
cc_test(
name = "endpoint_test",
size = "small",
srcs = ["common/endpoint_test.cc"],
deps = [
"//cyber:cyber_core",
"@com_google_googletest//:gtest_main",
],
)
cc_library(
name = "identity",
srcs = ["common/identity.cc"],
hdrs = ["common/identity.h"],
deps = [
"//cyber/common:util",
],
)
cc_test(
name = "identity_test",
size = "small",
srcs = ["common/identity_test.cc"],
deps = [
"//cyber:cyber_core",
"@com_google_googletest//:gtest_main",
],
)
cc_test(
name = "common_test",
size = "small",
srcs = ["common/common_test.cc"],
deps = [
"//cyber:cyber_core",
"@com_google_googletest//:gtest_main",
],
)
cc_library(
name = "dispatcher",
srcs = ["dispatcher/dispatcher.cc"],
hdrs = ["dispatcher/dispatcher.h"],
deps = [
":listener_handler",
":message_info",
"//cyber/message:message_traits",
"//cyber/proto:role_attributes_cc_proto",
],
)
cc_test(
name = "dispatcher_test",
size = "small",
srcs = ["dispatcher/dispatcher_test.cc"],
deps = [
"//cyber:cyber_core",
"//cyber/proto:unit_test_cc_proto",
"@com_google_googletest//:gtest_main",
],
)
cc_library(
name = "intra_dispatcher",
srcs = ["dispatcher/intra_dispatcher.cc"],
hdrs = ["dispatcher/intra_dispatcher.h"],
deps = [
":dispatcher",
"//cyber/message:message_traits",
"//cyber/proto:role_attributes_cc_proto",
],
)
cc_test(
name = "intra_dispatcher_test",
size = "small",
srcs = ["dispatcher/intra_dispatcher_test.cc"],
deps = [
"//cyber:cyber_core",
"//cyber/proto:unit_test_cc_proto",
"@com_google_googletest//:gtest_main",
],
)
cc_library(
name = "rtps_dispatcher",
srcs = ["dispatcher/rtps_dispatcher.cc"],
hdrs = ["dispatcher/rtps_dispatcher.h"],
deps = [
":attributes_filler",
":dispatcher",
":participant",
":sub_listener",
"//cyber/message:message_traits",
"//cyber/proto:role_attributes_cc_proto",
],
)
cc_test(
name = "rtps_dispatcher_test",
size = "small",
srcs = ["dispatcher/rtps_dispatcher_test.cc"],
deps = [
"//cyber:cyber_core",
"//cyber/proto:unit_test_cc_proto",
"@com_google_googletest//:gtest",
],
)
cc_library(
name = "shm_dispatcher",
srcs = ["dispatcher/shm_dispatcher.cc"],
hdrs = ["dispatcher/shm_dispatcher.h"],
deps = [
":dispatcher",
":notifier_factory",
":readable_info",
":segment_factory",
"//cyber/message:message_traits",
"//cyber/proto:proto_desc_cc_proto",
"//cyber/scheduler:scheduler_factory",
],
)
cc_test(
name = "shm_dispatcher_test",
size = "small",
srcs = ["dispatcher/shm_dispatcher_test.cc"],
deps = [
"//cyber:cyber_core",
"//cyber/proto:unit_test_cc_proto",
"@com_google_googletest//:gtest_main",
],
)
cc_library(
name = "history_attributes",
hdrs = ["message/history_attributes.h"],
)
cc_library(
name = "history",
hdrs = ["message/history.h"],
deps = [
":history_attributes",
],
)
cc_library(
name = "listener_handler",
hdrs = ["message/listener_handler.h"],
)
cc_library(
name = "message_info",
srcs = ["message/message_info.cc"],
hdrs = ["message/message_info.h"],
deps = [
"//cyber/base:signal",
"//cyber/common",
"//cyber/message:raw_message",
"//cyber/transport:identity",
],
)
cc_test(
name = "message_info_test",
size = "small",
srcs = ["message/message_info_test.cc"],
deps = [
"//cyber:cyber_core",
"@com_google_googletest//:gtest_main",
],
)
cc_test(
name = "message_test",
size = "small",
srcs = ["message/message_test.cc"],
deps = [
"//cyber:cyber_core",
"@com_google_googletest//:gtest_main",
],
)
cc_library(
name = "qos_profile_conf",
srcs = ["qos/qos_profile_conf.cc"],
hdrs = ["qos/qos_profile_conf.h"],
deps = [
":history",
"//cyber/proto:qos_profile_cc_proto",
],
)
cc_library(
name = "hybrid_receiver",
hdrs = ["receiver/hybrid_receiver.h"],
deps = [
":receiver",
],
)
cc_library(
name = "intra_receiver",
hdrs = ["receiver/intra_receiver.h"],
deps = [
":receiver",
],
)
cc_library(
name = "receiver",
hdrs = ["receiver/receiver.h"],
deps = [
":endpoint",
":history",
":message_info",
],
)
cc_library(
name = "rtps_receiver",
hdrs = ["receiver/rtps_receiver.h"],
deps = [
":receiver",
],
)
cc_library(
name = "shm_receiver",
hdrs = ["receiver/shm_receiver.h"],
deps = [
":readable_info",
":receiver",
],
)
cc_library(
name = "attributes_filler",
srcs = ["rtps/attributes_filler.cc"],
hdrs = ["rtps/attributes_filler.h"],
deps = [
":qos_profile_conf",
"//cyber/common:log",
"@fastrtps",
],
)
cc_library(
name = "underlay_message",
srcs = ["rtps/underlay_message.cc"],
hdrs = ["rtps/underlay_message.h"],
deps = [
"//cyber/common:log",
"@fastcdr",
],
)
cc_library(
name = "participant",
srcs = ["rtps/participant.cc"],
hdrs = ["rtps/participant.h"],
deps = [
":underlay_message",
":underlay_message_type",
"//cyber/common:global_data",
],
)
cc_library(
name = "sub_listener",
srcs = ["rtps/sub_listener.cc"],
hdrs = ["rtps/sub_listener.h"],
deps = [
":message_info",
":underlay_message",
":underlay_message_type",
],
)
cc_library(
name = "underlay_message_type",
srcs = ["rtps/underlay_message_type.cc"],
hdrs = ["rtps/underlay_message_type.h"],
deps = [
":underlay_message",
"@fastcdr",
"@fastrtps",
],
)
cc_test(
name = "rtps_test",
size = "small",
srcs = ["rtps/rtps_test.cc"],
deps = [
"//cyber:cyber_core",
"@com_google_googletest//:gtest_main",
"@fastcdr",
],
)
cc_library(
name = "block",
srcs = ["shm/block.cc"],
hdrs = ["shm/block.h"],
deps = [
"//cyber/base:atomic_rw_lock",
"//cyber/common:log",
],
)
cc_library(
name = "condition_notifier",
srcs = ["shm/condition_notifier.cc"],
hdrs = ["shm/condition_notifier.h"],
deps = [
":notifier_base",
"//cyber/common:global_data",
"//cyber/common:log",
"//cyber/common:util",
],
)
cc_library(
name = "multicast_notifier",
srcs = ["shm/multicast_notifier.cc"],
hdrs = ["shm/multicast_notifier.h"],
deps = [
":notifier_base",
"//cyber/common:global_data",
"//cyber/common:log",
"//cyber/common:macros",
],
)
cc_library(
name = "notifier_base",
hdrs = ["shm/notifier_base.h"],
deps = [
":readable_info",
],
)
cc_library(
name = "notifier_factory",
srcs = ["shm/notifier_factory.cc"],
hdrs = ["shm/notifier_factory.h"],
deps = [
":condition_notifier",
":multicast_notifier",
":notifier_base",
"//cyber/common:global_data",
"//cyber/common:log",
],
)
cc_library(
name = "readable_info",
srcs = ["shm/readable_info.cc"],
hdrs = ["shm/readable_info.h"],
deps = [
"//cyber/common:log",
],
)
cc_library(
name = "xsi_segment",
srcs = ["shm/xsi_segment.cc"],
hdrs = ["shm/xsi_segment.h"],
deps = [
":segment",
"//cyber/common:log",
"//cyber/common:util",
],
)
cc_library(
name = "posix_segment",
srcs = ["shm/posix_segment.cc"],
hdrs = ["shm/posix_segment.h"],
deps = [
":segment",
"//cyber/common:log",
"//cyber/common:util",
],
)
cc_library(
name = "segment",
srcs = ["shm/segment.cc"],
hdrs = ["shm/segment.h"],
deps = [
":block",
":shm_conf",
":state",
"//cyber/common:log",
"//cyber/common:util",
],
)
cc_library(
name = "segment_factory",
srcs = ["shm/segment_factory.cc"],
hdrs = ["shm/segment_factory.h"],
deps = [
":posix_segment",
":segment",
":xsi_segment",
"//cyber/common:global_data",
"//cyber/common:log",
],
)
cc_library(
name = "shm_conf",
srcs = ["shm/shm_conf.cc"],
hdrs = ["shm/shm_conf.h"],
deps = [
"//cyber/common:log",
],
)
cc_library(
name = "state",
srcs = ["shm/state.cc"],
hdrs = ["shm/state.h"],
)
cc_library(
name = "hybrid_transmitter",
hdrs = ["transmitter/hybrid_transmitter.h"],
deps = [
":transmitter",
],
)
cc_library(
name = "intra_transmitter",
hdrs = ["transmitter/intra_transmitter.h"],
deps = [
":transmitter",
],
)
cc_library(
name = "transmitter",
hdrs = ["transmitter/transmitter.h"],
deps = [
":endpoint",
":message_info",
"//cyber/event:perf_event_cache",
],
)
cc_library(
name = "rtps_transmitter",
hdrs = ["transmitter/rtps_transmitter.h"],
deps = [
":transmitter",
],
)
cc_library(
name = "shm_transmitter",
hdrs = ["transmitter/shm_transmitter.h"],
deps = [
":transmitter",
],
)
cc_test(
name = "hybrid_transceiver_test",
size = "small",
srcs = ["transceiver/hybrid_transceiver_test.cc"],
deps = [
"//cyber:cyber_core",
"//cyber/proto:unit_test_cc_proto",
"@com_google_googletest//:gtest",
],
)
cc_test(
name = "intra_transceiver_test",
size = "small",
srcs = ["transceiver/intra_transceiver_test.cc"],
deps = [
"//cyber:cyber_core",
"//cyber/proto:unit_test_cc_proto",
"@com_google_googletest//:gtest_main",
],
)
cc_test(
name = "rtps_transceiver_test",
size = "small",
srcs = ["transceiver/rtps_transceiver_test.cc"],
deps = [
"//cyber:cyber_core",
"//cyber/proto:unit_test_cc_proto",
"@com_google_googletest//:gtest",
],
)
cc_test(
name = "shm_transceiver_test",
size = "small",
srcs = ["transceiver/shm_transceiver_test.cc"],
srcs = ["transport_test.cc"],
deps = [
"//cyber:cyber_core",
"//cyber/proto:unit_test_cc_proto",
......@@ -570,14 +37,4 @@ cc_test(
],
)
cc_test(
name = "condition_notifier_test",
size = "large",
srcs = ["shm/condition_notifier_test.cc"],
deps = [
"//cyber:cyber_core",
"@com_google_googletest//:gtest_main",
],
)
cpplint()
load("@rules_cc//cc:defs.bzl", "cc_library", "cc_test")
load("//tools:cpplint.bzl", "cpplint")
package(default_visibility = ["//visibility:public"])
cc_library(
name = "endpoint",
srcs = ["endpoint.cc"],
hdrs = ["endpoint.h"],
deps = [
":identity",
"//cyber/common:global_data",
"//cyber/proto:role_attributes_cc_proto",
],
)
cc_test(
name = "endpoint_test",
size = "small",
srcs = ["endpoint_test.cc"],
deps = [
"//cyber:cyber_core",
"@com_google_googletest//:gtest_main",
],
)
cc_library(
name = "identity",
srcs = ["identity.cc"],
hdrs = ["identity.h"],
deps = [
"//cyber/common:util",
"@uuid",
],
)
cc_test(
name = "identity_test",
size = "small",
srcs = ["identity_test.cc"],
deps = [
"//cyber:cyber_core",
"@com_google_googletest//:gtest_main",
],
)
cpplint()
/******************************************************************************
* Copyright 2018 The Apollo Authors. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*****************************************************************************/
#include <sys/epoll.h>
#include <unistd.h>
#include <string>
#include "gtest/gtest.h"
#include "cyber/common/global_data.h"
#include "cyber/transport/common/endpoint.h"
#include "cyber/transport/common/identity.h"
namespace apollo {
namespace cyber {
namespace transport {
TEST(IdentityTest, identity_test) {
Identity id1;
Identity id2;
Identity id3;
EXPECT_NE(id1, id2);
EXPECT_NE(id2, id3);
EXPECT_NE(id1, id3);
EXPECT_NE(id1.HashValue(), id3.HashValue());
id2 = id2;
EXPECT_NE(id2, id3);
id2 = id3;
EXPECT_EQ(id2, id3);
Identity id4(id1);
EXPECT_EQ(id1, id4);
EXPECT_EQ(id1.ToString(), id4.ToString());
EXPECT_EQ(id1.HashValue(), id4.HashValue());
}
TEST(EndpointTest, endpoint_test) {
// empty attr
RoleAttributes attr;
Endpoint endpoint1(attr);
EXPECT_EQ(common::GlobalData::Instance()->HostName(),
endpoint1.attributes().host_name());
EXPECT_EQ(common::GlobalData::Instance()->ProcessId(),
endpoint1.attributes().process_id());
EXPECT_NE(0, endpoint1.attributes().id());
attr.set_host_name("caros");
attr.set_process_id(1024);
attr.set_id(123);
Endpoint endpoint2(attr);
EXPECT_EQ("caros", endpoint2.attributes().host_name());
EXPECT_EQ(1024, endpoint2.attributes().process_id());
EXPECT_EQ(123, endpoint2.attributes().id());
EXPECT_NE(std::string("endpoint"), std::string(endpoint2.id().data()));
}
} // namespace transport
} // namespace cyber
} // namespace apollo
load("@rules_cc//cc:defs.bzl", "cc_library", "cc_test")
load("//tools:cpplint.bzl", "cpplint")
package(default_visibility = ["//visibility:public"])
cc_library(
name = "dispatcher",
srcs = ["dispatcher.cc"],
hdrs = ["dispatcher.h"],
deps = [
"//cyber/common",
"//cyber/message:message_traits",
"//cyber/proto:role_attributes_cc_proto",
"//cyber/transport/message:listener_handler",
"//cyber/transport/message:message_info",
],
)
cc_test(
name = "dispatcher_test",
size = "small",
srcs = ["dispatcher_test.cc"],
deps = [
"//cyber:cyber_core",
"//cyber/proto:unit_test_cc_proto",
"@com_google_googletest//:gtest_main",
],
)
cc_library(
name = "intra_dispatcher",
srcs = ["intra_dispatcher.cc"],
hdrs = ["intra_dispatcher.h"],
deps = [
":dispatcher",
"//cyber/message:message_traits",
"//cyber/proto:role_attributes_cc_proto",
],
)
cc_test(
name = "intra_dispatcher_test",
size = "small",
srcs = ["intra_dispatcher_test.cc"],
deps = [
"//cyber:cyber_core",
"//cyber/proto:unit_test_cc_proto",
"@com_google_googletest//:gtest_main",
],
)
cc_library(
name = "rtps_dispatcher",
srcs = ["rtps_dispatcher.cc"],
hdrs = ["rtps_dispatcher.h"],
deps = [
":dispatcher",
"//cyber/message:message_traits",
"//cyber/proto:role_attributes_cc_proto",
"//cyber/transport/rtps:attributes_filler",
"//cyber/transport/rtps:participant",
"//cyber/transport/rtps:sub_listener",
],
)
cc_test(
name = "rtps_dispatcher_test",
size = "small",
srcs = ["rtps_dispatcher_test.cc"],
deps = [
"//cyber:cyber_core",
"//cyber/proto:unit_test_cc_proto",
"@com_google_googletest//:gtest",
],
)
cc_library(
name = "shm_dispatcher",
srcs = ["shm_dispatcher.cc"],
hdrs = ["shm_dispatcher.h"],
deps = [
":dispatcher",
"//cyber/message:message_traits",
"//cyber/proto:proto_desc_cc_proto",
"//cyber/scheduler:scheduler_factory",
"//cyber/transport/shm:notifier_factory",
"//cyber/transport/shm:readable_info",
"//cyber/transport/shm:segment_factory",
],
)
cc_test(
name = "shm_dispatcher_test",
size = "small",
srcs = ["shm_dispatcher_test.cc"],
deps = [
"//cyber:cyber_core",
"//cyber/proto:unit_test_cc_proto",
"@com_google_googletest//:gtest_main",
],
)
cpplint()
load("@rules_cc//cc:defs.bzl", "cc_library", "cc_test")
load("//tools:cpplint.bzl", "cpplint")
cc_test(
name = "hybrid_transceiver_test",
size = "small",
srcs = ["hybrid_transceiver_test.cc"],
deps = [
"//cyber:cyber_core",
"//cyber/proto:unit_test_cc_proto",
"@com_google_googletest//:gtest",
],
)
cc_test(
name = "intra_transceiver_test",
size = "small",
srcs = ["intra_transceiver_test.cc"],
deps = [
"//cyber:cyber_core",
"//cyber/proto:unit_test_cc_proto",
"@com_google_googletest//:gtest_main",
],
)
cc_test(
name = "rtps_transceiver_test",
size = "small",
srcs = ["rtps_transceiver_test.cc"],
deps = [
"//cyber:cyber_core",
"//cyber/proto:unit_test_cc_proto",
"@com_google_googletest//:gtest",
],
)
cc_test(
name = "shm_transceiver_test",
size = "small",
srcs = ["shm_transceiver_test.cc"],
deps = [
"//cyber:cyber_core",
"//cyber/proto:unit_test_cc_proto",
"@com_google_googletest//:gtest",
],
)
cpplint()
load("@rules_cc//cc:defs.bzl", "cc_library", "cc_test")
load("//tools:cpplint.bzl", "cpplint")
package(default_visibility = ["//visibility:public"])
cc_library(
name = "history_attributes",
hdrs = ["history_attributes.h"],
deps = [
"//cyber/proto:qos_profile_cc_proto",
],
)
cc_library(
name = "history",
hdrs = ["history.h"],
deps = [
":history_attributes",
],
)
cc_library(
name = "listener_handler",
hdrs = ["listener_handler.h"],
deps = [
":message_info",
"//cyber/base:signal",
"//cyber/message:message_traits",
"//cyber/message:raw_message",
],
)
cc_library(
name = "message_info",
srcs = ["message_info.cc"],
hdrs = ["message_info.h"],
deps = [
"//cyber/common:log",
"//cyber/transport/common:identity",
],
)
cc_test(
name = "message_info_test",
size = "small",
srcs = ["message_info_test.cc"],
deps = [
"//cyber:cyber_core",
"@com_google_googletest//:gtest_main",
],
)
cc_test(
name = "message_test",
size = "small",
srcs = ["message_test.cc"],
deps = [
"//cyber:cyber_core",
"@com_google_googletest//:gtest_main",
],
)
cpplint()
load("@rules_cc//cc:defs.bzl", "cc_library")
load("//tools:cpplint.bzl", "cpplint")
cc_library(
name = "qos",
visibility = ["//visibility:public"],
deps = [
":qos_profile_conf",
],
)
cc_library(
name = "qos_profile_conf",
srcs = ["qos_profile_conf.cc"],
hdrs = ["qos_profile_conf.h"],
deps = [
"//cyber/proto:qos_profile_cc_proto",
],
)
cpplint()
load("@rules_cc//cc:defs.bzl", "cc_library")
load("//tools:cpplint.bzl", "cpplint")
package(default_visibility = ["//visibility:public"])
cc_library(
name = "receiver",
deps = [
":hybrid_receiver",
":intra_receiver",
":rtps_receiver",
":shm_receiver",
],
)
cc_library(
name = "receiver_interface",
hdrs = ["receiver.h"],
deps = [
"//cyber/transport/common:endpoint",
"//cyber/transport/message:history",
"//cyber/transport/message:message_info",
],
)
cc_library(
name = "hybrid_receiver",
hdrs = ["hybrid_receiver.h"],
deps = [
":receiver_interface",
],
)
cc_library(
name = "intra_receiver",
hdrs = ["intra_receiver.h"],
deps = [
":receiver_interface",
],
)
cc_library(
name = "rtps_receiver",
hdrs = ["rtps_receiver.h"],
deps = [
":receiver_interface",
],
)
cc_library(
name = "shm_receiver",
hdrs = ["shm_receiver.h"],
deps = [
":receiver_interface",
"//cyber/transport/shm:readable_info",
],
)
cpplint()
load("@rules_cc//cc:defs.bzl", "cc_library", "cc_test")
load("//tools:cpplint.bzl", "cpplint")
package(default_visibility = ["//visibility:public"])
cc_library(
name = "attributes_filler",
srcs = ["attributes_filler.cc"],
hdrs = ["attributes_filler.h"],
deps = [
"//cyber/common:log",
"//cyber/transport/qos",
"@fastrtps",
],
)
cc_library(
name = "underlay_message",
srcs = ["underlay_message.cc"],
hdrs = ["underlay_message.h"],
deps = [
"//cyber/common:log",
"@fastcdr",
],
)
cc_library(
name = "participant",
srcs = ["participant.cc"],
hdrs = ["participant.h"],
deps = [
":underlay_message",
":underlay_message_type",
"//cyber/common:global_data",
],
)
cc_library(
name = "sub_listener",
srcs = ["sub_listener.cc"],
hdrs = ["sub_listener.h"],
deps = [
":underlay_message",
":underlay_message_type",
"//cyber/transport/message:message_info",
],
)
cc_library(
name = "underlay_message_type",
srcs = ["underlay_message_type.cc"],
hdrs = ["underlay_message_type.h"],
deps = [
":underlay_message",
"@fastcdr",
"@fastrtps",
],
)
cc_test(
name = "rtps_test",
size = "small",
srcs = ["rtps_test.cc"],
deps = [
"//cyber:cyber_core",
"@com_google_googletest//:gtest_main",
"@fastcdr",
],
)
cpplint()
load("@rules_cc//cc:defs.bzl", "cc_library", "cc_test")
load("//tools:cpplint.bzl", "cpplint")
package(default_visibility = ["//visibility:public"])
cc_library(
name = "block",
srcs = ["block.cc"],
hdrs = ["block.h"],
deps = [
"//cyber/base:atomic_rw_lock",
"//cyber/common:log",
],
)
cc_library(
name = "condition_notifier",
srcs = ["condition_notifier.cc"],
hdrs = ["condition_notifier.h"],
deps = [
":notifier_base",
"//cyber/common:global_data",
"//cyber/common:log",
"//cyber/common:util",
],
)
cc_library(
name = "multicast_notifier",
srcs = ["multicast_notifier.cc"],
hdrs = ["multicast_notifier.h"],
deps = [
":notifier_base",
"//cyber/common:global_data",
"//cyber/common:log",
"//cyber/common:macros",
],
)
cc_library(
name = "notifier_base",
hdrs = ["notifier_base.h"],
deps = [
":readable_info",
],
)
cc_library(
name = "notifier_factory",
srcs = ["notifier_factory.cc"],
hdrs = ["notifier_factory.h"],
deps = [
":condition_notifier",
":multicast_notifier",
":notifier_base",
"//cyber/common:global_data",
"//cyber/common:log",
],
)
cc_library(
name = "readable_info",
srcs = ["readable_info.cc"],
hdrs = ["readable_info.h"],
deps = [
"//cyber/common:log",
],
)
cc_library(
name = "xsi_segment",
srcs = ["xsi_segment.cc"],
hdrs = ["xsi_segment.h"],
deps = [
":segment",
"//cyber/common:log",
"//cyber/common:util",
],
)
cc_library(
name = "posix_segment",
srcs = ["posix_segment.cc"],
hdrs = ["posix_segment.h"],
deps = [
":segment",
"//cyber/common:log",
"//cyber/common:util",
],
)
cc_library(
name = "segment",
srcs = ["segment.cc"],
hdrs = ["segment.h"],
deps = [
":block",
":shm_conf",
":state",
"//cyber/common:log",
"//cyber/common:util",
],
)
cc_library(
name = "segment_factory",
srcs = ["segment_factory.cc"],
hdrs = ["segment_factory.h"],
deps = [
":posix_segment",
":segment",
":xsi_segment",
"//cyber/common:global_data",
"//cyber/common:log",
],
)
cc_library(
name = "shm_conf",
srcs = ["shm_conf.cc"],
hdrs = ["shm_conf.h"],
deps = [
"//cyber/common:log",
],
)
cc_library(
name = "state",
srcs = ["state.cc"],
hdrs = ["state.h"],
)
cc_test(
name = "condition_notifier_test",
size = "small",
srcs = ["condition_notifier_test.cc"],
deps = [
"//cyber:cyber_core",
"@com_google_googletest//:gtest_main",
],
)
cpplint()
load("@rules_cc//cc:defs.bzl", "cc_library", "cc_test")
load("//tools:cpplint.bzl", "cpplint")
package(default_visibility = ["//visibility:public"])
cc_library(
name = "transmitter",
deps = [
":hybrid_transmitter",
":intra_transmitter",
":rtps_transmitter",
":shm_transmitter",
],
)
cc_library(
name = "hybrid_transmitter",
hdrs = ["hybrid_transmitter.h"],
deps = [
":transmitter_interface",
],
)
cc_library(
name = "intra_transmitter",
hdrs = ["intra_transmitter.h"],
deps = [
":transmitter_interface",
],
)
cc_library(
name = "transmitter_interface",
hdrs = ["transmitter.h"],
deps = [
"//cyber/event:perf_event_cache",
"//cyber/transport/common:endpoint",
"//cyber/transport/message:message_info",
],
)
cc_library(
name = "rtps_transmitter",
hdrs = ["rtps_transmitter.h"],
deps = [
":transmitter_interface",
],
)
cc_library(
name = "shm_transmitter",
hdrs = ["shm_transmitter.h"],
deps = [
":transmitter_interface",
],
)
cpplint()
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册