Last active
August 12, 2022 15:28
-
-
Save EricCousineau-TRI/48f59c5fb956e09efe916a4528c15511 to your computer and use it in GitHub Desktop.
drake-ros - show resolved deps for c++ shim
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ cd drake-ros/ | |
$ git log -n 1 --oneline --no-decorate | |
416cf8b Rename not-shimmed executables (#112) | |
$ git diff | |
diff --git a/ros2_example_bazel_installed/BUILD.bazel b/ros2_example_bazel_installed/BUILD.bazel | |
index dceedfc..3130043 100644 | |
--- a/ros2_example_bazel_installed/BUILD.bazel | |
+++ b/ros2_example_bazel_installed/BUILD.bazel | |
@@ -1,6 +1,6 @@ | |
# -*- python -*- | |
-load("@ros2//:ros_cc.bzl", "ros_cc_test") | |
+load("@ros2//:ros_cc.bzl", "ros_cc_binary") | |
load("@ros2//:ros_py.bzl", "ros_py_test") | |
load("//tools:cmd_test.bzl", "cmd_test") | |
@@ -18,7 +18,7 @@ cmd_test( | |
], | |
) | |
-ros_cc_test( | |
+ros_cc_binary( | |
name = "runfiles_cc_test", | |
srcs = ["test/runfiles_test.cc"], | |
deps = ["@bazel_tools//tools/cpp/runfiles"], | |
$ cd ros2_example_bazel_installed/ | |
$ bazel query 'deps(//:runfiles_cc_test)' --output label_kind 2> /dev/null | grep -v -e '@bazel_tools' -e '@local_config_cc' | |
cc_binary rule //:_runfiles_cc_test_noshim | |
dload_cc_shim rule //:_runfiles_cc_test_shim.cc | |
cc_binary rule //:runfiles_cc_test | |
source file //:test/runfiles_test.cc | |
source file //:test/runfiles_test_data.txt |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
\cc @sloretz