Skip to content

Commit d10814e

Browse files
authored
[CLDAPPS-896] C++ Asio and Asio-Grpc header only libraries (#127)
# Changes Introduces the [Asio C++ library](https://think-async.com/Asio/) and the [Asio gRPC](https://github.com/Tradias/asio-grpc) library to our bazel third party libraries, both are header only libraries, which makes things really easy to setup. # Related PR Similar implementation with cmake swift-nav/cmake#170
1 parent 030c1c5 commit d10814e

File tree

2 files changed

+42
-0
lines changed

2 files changed

+42
-0
lines changed

third_party/asio-grpc.BUILD

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# Copyright (C) 2023 Swift Navigation Inc.
2+
# Contact: Swift Navigation <[email protected]>
3+
#
4+
# This source is subject to the license found in the file 'LICENSE' which must
5+
# be be distributed together with this source. All other rights reserved.
6+
#
7+
# THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND,
8+
# EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED
9+
# WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE.
10+
11+
package(
12+
default_visibility = ["//visibility:public"],
13+
)
14+
15+
cc_library(
16+
name = "asio-grpc",
17+
hdrs = glob(["src/agrpc/**"]),
18+
defines = ["AGRPC_STANDALONE_ASIO"],
19+
includes = ["src"],
20+
)

third_party/asio.BUILD

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# Copyright (C) 2023 Swift Navigation Inc.
2+
# Contact: Swift Navigation <[email protected]>
3+
#
4+
# This source is subject to the license found in the file 'LICENSE' which must
5+
# be be distributed together with this source. All other rights reserved.
6+
#
7+
# THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND,
8+
# EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED
9+
# WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE.
10+
11+
package(
12+
default_visibility = ["//visibility:public"],
13+
)
14+
15+
cc_library(
16+
name = "asio",
17+
hdrs = glob([
18+
"asio/include/asio.hpp",
19+
"asio/include/asio/**",
20+
]),
21+
includes = ["asio/include"],
22+
)

0 commit comments

Comments
 (0)