Skip to content

Commit 8395ec0

Browse files
fmeumcopybara-github
authored andcommitted
Copybara Merge: #263
BEGIN_PUBLIC Copybara import of the project: -- 82e44f3 by Fabian Meumertzheim <[email protected]>: Copy over runfiles library from Bazel The runfiles library can be maintained independently of Bazel releases and bazel_tools can refer to it via an alias. -- 885d333 by Fabian Meumertzheim <[email protected]>: Switch to new include path and namespace -- b8cd815 by Fabian Meumertzheim <[email protected]>: Fix CI -- 41b7d48 by Fabian Meumertzheim <[email protected]>: Silence warnings -- b97a30e by Fabian Meumertzheim <[email protected]>: Remove per_file_copt END_PUBLIC PiperOrigin-RevId: 697942902 Change-Id: I10a6c9baf0464722fca026db99cf572acfd159f1
1 parent 4db02b7 commit 8395ec0

File tree

9 files changed

+1657
-2
lines changed

9 files changed

+1657
-2
lines changed

.bazelrc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# Required by abseil-cpp.
2+
common --cxxopt=-std=c++14

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,4 @@
11
bazel-*
22
MODULE.bazel.lock
3+
/.ijwb/
4+
/.clwb/

MODULE.bazel

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,6 @@ use_repo(cc_configure, "local_config_cc", "local_config_cc_toolchains")
1515
register_toolchains("@local_config_cc_toolchains//:all")
1616

1717
bazel_dep(name = "rules_shell", version = "0.2.0", dev_dependency = True)
18+
bazel_dep(name = "googletest", version = "1.15.2", dev_dependency = True)
1819
bazel_dep(name = "rules_testing", version = "0.6.0", dev_dependency = True)
1920
bazel_dep(name = "stardoc", version = "0.7.0", dev_dependency = True)

WORKSPACE

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,3 +50,10 @@ http_archive(
5050
strip_prefix = "protobuf-27.0",
5151
url = "https://github.com/protocolbuffers/protobuf/releases/download/v27.0/protobuf-27.0.tar.gz",
5252
)
53+
54+
http_archive(
55+
name = "googletest",
56+
integrity = "sha256-e0K01u1IgQxTYsJloX+uvpDcI3PIheUhZDnTeSfwKSY=",
57+
strip_prefix = "googletest-1.15.2",
58+
url = "https://github.com/google/googletest/releases/download/v1.15.2/googletest-1.15.2.tar.gz",
59+
)

cc/runfiles/BUILD

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,12 @@
1+
load("//cc:cc_library.bzl", "cc_library")
2+
13
licenses(["notice"])
24

3-
alias(
5+
cc_library(
46
name = "runfiles",
5-
actual = "@bazel_tools//tools/cpp/runfiles",
7+
srcs = ["runfiles.cc"],
8+
hdrs = ["runfiles.h"],
9+
include_prefix = "rules_cc/cc/runfiles",
10+
strip_include_prefix = ".",
611
visibility = ["//visibility:public"],
712
)

0 commit comments

Comments
 (0)