Skip to content

Commit

Permalink
Change asio BUILD to be compatible with the BCR version
Browse files Browse the repository at this point in the history
  • Loading branch information
lalten committed Jun 30, 2024
1 parent b3247c9 commit 54cd64a
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 12 deletions.
13 changes: 4 additions & 9 deletions repositories/asio.BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,10 @@ load("@rules_cc//cc:defs.bzl", "cc_library")

cc_library(
name = "asio",
srcs = glob(["src/*.cpp"]),
hdrs = glob([
"include/**/*.hpp",
"include/**/*.ipp",
srcs = glob([
"**/*.hpp",
"**/*.ipp",
]),
defines = [
"ASIO_SEPARATE_COMPILATION",
],
includes = ["include"],
includes = ["."],
visibility = ["//visibility:public"],
deps = ["@boringssl//:ssl"],
)
1 change: 1 addition & 0 deletions repositories/foxglove_bridge.BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ cc_library(
copts = ["-std=c++17"],
includes = ["foxglove_bridge_base/include"],
deps = [
"@boringssl//:ssl",
"@nlohmann_json//:json",
"@websocketpp",
],
Expand Down
6 changes: 3 additions & 3 deletions repositories/repositories.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -129,9 +129,9 @@ def ros2_workspace_repositories():
http_archive,
name = "asio",
build_file = "@com_github_mvukov_rules_ros2//repositories:asio.BUILD.bazel",
sha256 = "b31c63867daaba0e460ee2c85dc508a52c81db0a7318e0d2147f444b26f80ed7",
strip_prefix = "asio-asio-1-27-0/asio",
urls = ["https://github.com/chriskohlhoff/asio/archive/refs/tags/asio-1-27-0.tar.gz"],
sha256 = "5705a0e403017eba276625107160498518838064a6dd7fd8b00b2e30c0ffbdee",
strip_prefix = "asio-asio-1-28-2/asio/include",
urls = ["https://github.com/chriskohlhoff/asio/archive/refs/tags/asio-1-28-2.tar.gz"],
)

# We're pointing at hedronvision's mirror of google/boringssl:main-with-bazel to get
Expand Down

0 comments on commit 54cd64a

Please sign in to comment.