Skip to content

Commit

Permalink
reorg
Browse files Browse the repository at this point in the history
  • Loading branch information
micahcc committed Feb 24, 2021
1 parent df625b8 commit 5b36b02
Show file tree
Hide file tree
Showing 25 changed files with 65 additions and 60 deletions.
3 changes: 2 additions & 1 deletion .bazelrc
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
build --incompatible_strict_action_env
# build --disk_cache=/tmp/bazel
build --disk_cache=/tmp/bazel
build --symlink_prefix=

build --cxxopt=-std=c++20
build --cxxopt=-Wall
Expand Down
Empty file removed BUILD
Empty file.
59 changes: 59 additions & 0 deletions cmd/BUILD
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
load("@rules_cc//cc:defs.bzl", "cc_binary", "cc_library")

cc_binary(
name = "ponger",
srcs = ["ponger.cc"],
deps = [
"//lib:IPCNode",
"@com_github_gabime_spdlog//:spdlog",
],
)

cc_binary(
name = "pinger",
srcs = ["pinger.cc"],
deps = [
"//lib:IPCNode",
"@com_github_gabime_spdlog//:spdlog",
],
)

cc_binary(
name = "topology_node",
srcs = ["topology_node.cc"],
deps = [
"//lib:TopologyManager",
"//lib:Utils",
"@com_github_gabime_spdlog//:spdlog",
],
)

cc_binary(
name = "unix_dgram_reader",
srcs = ["unix_dgram_reader.cc"],
)

cc_binary(
name = "unix_dgram_writer",
srcs = ["unix_dgram_writer.cc"],
)

cc_binary(
name = "standalone_publisher",
srcs = ["standalone_publisher.cc"],
linkopts = [
"-pthread",
"-lpthread",
"-lrt",
],
)

cc_binary(
name = "standalone_subscriber",
srcs = ["standalone_subscriber.cc"],
linkopts = [
"-pthread",
"-lpthread",
"-lrt",
],
)
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
63 changes: 4 additions & 59 deletions src/BUILD → lib/BUILD
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
load("@rules_cc//cc:defs.bzl", "cc_binary", "cc_library")
load("@rules_cc//cc:defs.bzl", "cc_library")

cc_test(
name = "test_topology_manager",
Expand All @@ -10,44 +10,6 @@ cc_test(
],
)

cc_binary(
name = "ponger",
srcs = ["ponger.cc"],
deps = [
":IPCNode",
"@com_github_gabime_spdlog//:spdlog",
],
)

cc_binary(
name = "pinger",
srcs = ["pinger.cc"],
deps = [
":IPCNode",
"@com_github_gabime_spdlog//:spdlog",
],
)

cc_binary(
name = "topology_node",
srcs = ["topology_node.cc"],
deps = [
":TopologyManager",
":Utils",
"@com_github_gabime_spdlog//:spdlog",
],
)

cc_binary(
name = "unix_dgram_reader",
srcs = ["unix_dgram_reader.cc"],
)

cc_binary(
name = "unix_dgram_writer",
srcs = ["unix_dgram_writer.cc"],
)

cc_library(
name = "TopologyServer",
srcs = ["TopologyServer.cc"],
Expand All @@ -68,6 +30,7 @@ cc_library(
hdrs = ["IPCNode.h"],
include_prefix = "ips",
includes = ["."],
visibility = ["//visibility:public"],
deps = [":TopologyManager"],
)

Expand All @@ -77,6 +40,7 @@ cc_library(
hdrs = ["TopologyManager.h"],
include_prefix = "ips",
includes = ["."],
visibility = ["//visibility:public"],
deps = [
":TopologyServer",
":UDSClient",
Expand Down Expand Up @@ -116,24 +80,5 @@ cc_library(
hdrs = ["Utils.h"],
include_prefix = "ips",
includes = ["."],
)

cc_binary(
name = "standalone_publisher",
srcs = ["standalone_publisher.cc"],
linkopts = [
"-pthread",
"-lpthread",
"-lrt",
],
)

cc_binary(
name = "standalone_subscriber",
srcs = ["standalone_subscriber.cc"],
linkopts = [
"-pthread",
"-lpthread",
"-lrt",
],
visibility = ["//visibility:public"],
)
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 5b36b02

Please sign in to comment.