Skip to content

Commit

Permalink
[topology] Tidy up bazel library spelling (#21841)
Browse files Browse the repository at this point in the history
  • Loading branch information
jwnimmer-tri authored Aug 22, 2024
1 parent e9102a8 commit c1cabbb
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 9 deletions.
2 changes: 1 addition & 1 deletion multibody/plant/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ drake_cc_library(
"//multibody/contact_solvers/sap",
"//multibody/fem",
"//multibody/hydroelastics:hydroelastic_engine",
"//multibody/topology:multibody_topology",
"//multibody/topology",
"//multibody/tree",
"//systems/framework:diagram_builder",
"//systems/framework:leaf_system",
Expand Down
16 changes: 11 additions & 5 deletions multibody/topology/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,18 @@ load(
"drake_cc_package_library",
)

package(
default_visibility = ["//visibility:public"],
package(default_visibility = ["//visibility:private"])

drake_cc_package_library(
name = "topology",
visibility = ["//visibility:public"],
deps = [
":impl",
],
)

drake_cc_library(
name = "multibody_topology",
name = "impl",
srcs = [
"link_joint_graph.cc",
"link_joint_graph_debug.cc",
Expand Down Expand Up @@ -44,15 +50,15 @@ drake_cc_library(
drake_cc_googletest(
name = "link_joint_graph_test",
deps = [
":multibody_topology",
":impl",
"//common/test_utilities:expect_throws_message",
],
)

drake_cc_googletest(
name = "spanning_forest_test",
deps = [
":multibody_topology",
":impl",
"//common:temp_directory",
"//common/test_utilities:expect_throws_message",
],
Expand Down
4 changes: 2 additions & 2 deletions multibody/tree/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ drake_cc_library(
],
deps = [
":multibody_tree_indexes",
"//multibody/topology:multibody_topology",
"//multibody/topology",
],
)

Expand Down Expand Up @@ -183,7 +183,7 @@ drake_cc_library(
"//common:string_container",
"//common:unused",
"//math:geometric_transform",
"//multibody/topology:multibody_topology",
"//multibody/topology",
"//systems/framework:leaf_system",
],
)
Expand Down
2 changes: 1 addition & 1 deletion tools/install/libdrake/build_components.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ LIBDRAKE_COMPONENTS = [
"//multibody/plant",
"//multibody/plant:contact_results_to_lcm", # unpackaged
"//multibody/rational",
"//multibody/topology:multibody_topology", # unpackaged
"//multibody/topology",
"//multibody/tree",
"//multibody/triangle_quadrature",
"//perception",
Expand Down

0 comments on commit c1cabbb

Please sign in to comment.