Skip to content

Commit

Permalink
Copybara Merge: #263
Browse files Browse the repository at this point in the history
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
  • Loading branch information
fmeum authored and copybara-github committed Nov 19, 2024
1 parent 4db02b7 commit 8395ec0
Show file tree
Hide file tree
Showing 9 changed files with 1,657 additions and 2 deletions.
2 changes: 2 additions & 0 deletions .bazelrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Required by abseil-cpp.
common --cxxopt=-std=c++14
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
bazel-*
MODULE.bazel.lock
/.ijwb/
/.clwb/
1 change: 1 addition & 0 deletions MODULE.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,6 @@ use_repo(cc_configure, "local_config_cc", "local_config_cc_toolchains")
register_toolchains("@local_config_cc_toolchains//:all")

bazel_dep(name = "rules_shell", version = "0.2.0", dev_dependency = True)
bazel_dep(name = "googletest", version = "1.15.2", dev_dependency = True)
bazel_dep(name = "rules_testing", version = "0.6.0", dev_dependency = True)
bazel_dep(name = "stardoc", version = "0.7.0", dev_dependency = True)
7 changes: 7 additions & 0 deletions WORKSPACE
Original file line number Diff line number Diff line change
Expand Up @@ -50,3 +50,10 @@ http_archive(
strip_prefix = "protobuf-27.0",
url = "https://github.com/protocolbuffers/protobuf/releases/download/v27.0/protobuf-27.0.tar.gz",
)

http_archive(
name = "googletest",
integrity = "sha256-e0K01u1IgQxTYsJloX+uvpDcI3PIheUhZDnTeSfwKSY=",
strip_prefix = "googletest-1.15.2",
url = "https://github.com/google/googletest/releases/download/v1.15.2/googletest-1.15.2.tar.gz",
)
9 changes: 7 additions & 2 deletions cc/runfiles/BUILD
Original file line number Diff line number Diff line change
@@ -1,7 +1,12 @@
load("//cc:cc_library.bzl", "cc_library")

licenses(["notice"])

alias(
cc_library(
name = "runfiles",
actual = "@bazel_tools//tools/cpp/runfiles",
srcs = ["runfiles.cc"],
hdrs = ["runfiles.h"],
include_prefix = "rules_cc/cc/runfiles",
strip_include_prefix = ".",
visibility = ["//visibility:public"],
)
Loading

0 comments on commit 8395ec0

Please sign in to comment.