Skip to content

Commit

Permalink
Bazel cleanup
Browse files Browse the repository at this point in the history
Signed-off-by: Aditya Pande <[email protected]>
  • Loading branch information
adityapande-1995 committed Sep 18, 2023
1 parent 02643a5 commit 4093d9c
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 13 deletions.
8 changes: 5 additions & 3 deletions bazel_ros2_rules/ros2/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,11 @@ py_library(

py_library(
name = "roslaunch_util.py",
srcs = ["tools/roslaunch_util/roslaunch_util.py",
"tools/roslaunch_util/__init__.py",
"tools/roslaunch_util/setup.py"],
srcs = [
"tools/roslaunch_util/__init__.py",
"tools/roslaunch_util/roslaunch_util.py",
"tools/roslaunch_util/setup.py",
],
visibility = ["//visibility:public"],
deps = ["@bazel_tools//tools/python/runfiles"],
)
Expand Down
17 changes: 8 additions & 9 deletions bazel_ros2_rules/ros2/ros_py.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -134,22 +134,21 @@ def ros_launch(
name,
launch_file = None,
node_targets = []):

deps = ["@ros2//:ros2", "@bazel_ros2_rules//ros2:roslaunch_util.py"]
deps = ["@ros2//:ros2", "@bazel_ros2_rules//ros2:roslaunch_util.py"]
srcs = ["@bazel_ros2_rules//ros2:roslaunch_util.py"]

data = [launch_file]
data += node_targets
args = [launch_file]

ros_py_binary(
name = name,
main = "@bazel_ros2_rules//ros2:roslaunch_util.py",
deps = deps,
srcs = srcs,
data = data,
args = args,
)
name = name,
main = "@bazel_ros2_rules//ros2:roslaunch_util.py",
deps = deps,
srcs = srcs,
data = data,
args = args,
)

def ros_py_test(
name,
Expand Down
2 changes: 1 addition & 1 deletion ros2_example_bazel_installed/ros2_example_apps/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ ros_py_binary(
deps = [
"@ros2//:rclpy_py",
"@ros2//:std_msgs_py",
]
],
)

ros_cc_binary(
Expand Down

0 comments on commit 4093d9c

Please sign in to comment.