Skip to content

Commit d5880d8

Browse files
committed
First bazelmod steps
1 parent b9afc41 commit d5880d8

File tree

5 files changed

+454
-0
lines changed

5 files changed

+454
-0
lines changed

BUILD.bazel

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
load("@rules_cc//cc:defs.bzl", "cc_library")
2+
3+
cc_library(
4+
name = "boost_certify",
5+
hdrs = glob([
6+
"include/**/*.hpp",
7+
"include/**/*.ipp",
8+
]),
9+
includes = ["include"],
10+
linkopts = select({
11+
"@platforms//os:macos": [
12+
"-framework CoreFoundation",
13+
"-framework Security",
14+
],
15+
"@platforms//os:windows": [
16+
"Crypt32.lib",
17+
],
18+
"//conditions:default": [],
19+
}),
20+
visibility = ["//visibility:public"],
21+
deps = [
22+
"@boost.asio",
23+
"@boost.beast",
24+
"@boost.filesystem",
25+
"@com_github_grpc_grpc//:grpc++",
26+
],
27+
)

MODULE.bazel

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
module(
2+
name = "boost_certify",
3+
version = "0.1.0",
4+
compatibility_level = 1,
5+
)
6+
7+
bazel_dep(name = "platforms", version = "1.0.0")
8+
bazel_dep(name = "rules_cc", version = "0.2.2")
9+
10+
bazel_dep(name = "grpc", version = "1.70.1", repo_name = "com_github_grpc_grpc")
11+
12+
bazel_dep(name = "boost.asio", version = "1.89.0.bcr.1")
13+
bazel_dep(name = "boost.beast", version = "1.89.0.bcr.1")
14+
bazel_dep(name = "boost.filesystem", version = "1.89.0.bcr.1")

0 commit comments

Comments
 (0)