-
Notifications
You must be signed in to change notification settings - Fork 4.1k
Commit
Move the C++ runfiles library to the location of the rest of the C++ tools. Also change the C++ namespace to reflect the directory hierarchy. We have not yet announced nor released the C++ runfiles library so these refactorings are fine. See #4460 Closes #4873. Change-Id: I1732ef1eaff880cae05b7d218a3b1c0461a6b029 PiperOrigin-RevId: 189874201
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -48,7 +48,7 @@ filegroup( | |
"//tools/build_rules:embedded_tools_srcs", | ||
"//tools/buildstamp:srcs", | ||
"//tools/coverage:srcs", | ||
"//tools/cpp:srcs", | ||
"//tools/cpp:embedded_tools", | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
laszlocsomor
Author
Contributor
|
||
"//tools/genrule:srcs", | ||
"//tools/j2objc:srcs", | ||
"//tools/jdk:package-srcs", | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
filegroup( | ||
name = "srcs", | ||
srcs = glob(["**"]), | ||
visibility = ["//tools/cpp:__pkg__"], | ||
) | ||
|
||
filegroup( | ||
name = "embedded_tools", | ||
srcs = [ | ||
"BUILD.tools", | ||
"runfiles.cc", | ||
"runfiles.h", | ||
], | ||
visibility = ["//tools/cpp:__pkg__"], | ||
) | ||
|
||
cc_library( | ||
name = "runfiles", | ||
srcs = ["runfiles.cc"], | ||
hdrs = ["runfiles.h"], | ||
) | ||
|
||
cc_test( | ||
name = "runfiles-test", | ||
srcs = ["runfiles_test.cc"], | ||
deps = [ | ||
":runfiles", | ||
"//src/main/cpp/util:file", | ||
"//third_party:gtest", | ||
], | ||
) |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
# This package will host the C++ runfiles library when it's ready. | ||
# Follow the progress on https://github.com/bazelbuild/bazel/issues/4460 |
After pulling this commit locally, I get the following compilation error: