Skip to content

Commit

Permalink
skylark: Require visibility for drake_cc_package_library (RobotLocomo…
Browse files Browse the repository at this point in the history
…tion#13701)

Using an implicit visibility that differs from the package(default_visibility)
is too confusing.
  • Loading branch information
jwnimmer-tri authored Jul 17, 2020
1 parent ea626c8 commit 7c06b91
Show file tree
Hide file tree
Showing 64 changed files with 74 additions and 2 deletions.
1 change: 1 addition & 0 deletions attic/manipulation/planner/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ package(

drake_cc_package_library(
name = "planner",
visibility = ["//visibility:public"],
deps = [
":rbt_differential_inverse_kinematics",
],
Expand Down
1 change: 1 addition & 0 deletions attic/multibody/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ package(default_visibility = ["//visibility:public"])

drake_cc_package_library(
name = "multibody",
visibility = ["//visibility:public"],
deps = [
":approximate_ik",
":global_inverse_kinematics",
Expand Down
1 change: 1 addition & 0 deletions attic/multibody/collision/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ package(default_visibility = ["//visibility:public"])

drake_cc_package_library(
name = "collision",
visibility = ["//visibility:public"],
deps = [
":bullet_collision",
":collision_api",
Expand Down
1 change: 1 addition & 0 deletions attic/multibody/joints/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ package(default_visibility = ["//visibility:public"])

drake_cc_package_library(
name = "joints",
visibility = ["//visibility:public"],
deps = [
":everything",
],
Expand Down
1 change: 1 addition & 0 deletions attic/multibody/parsers/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ package(default_visibility = ["//visibility:public"])

drake_cc_package_library(
name = "parsers",
visibility = ["//visibility:public"],
deps = [
":find_files",
":parsing",
Expand Down
1 change: 1 addition & 0 deletions attic/multibody/shapes/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ package(default_visibility = ["//visibility:public"])

drake_cc_package_library(
name = "shapes",
visibility = ["//visibility:public"],
deps = [
":everything",
],
Expand Down
1 change: 1 addition & 0 deletions attic/systems/controllers/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ package(default_visibility = ["//visibility:public"])

drake_cc_package_library(
name = "controllers",
visibility = ["//visibility:public"],
deps = [
":rbt_inverse_dynamics",
":rbt_inverse_dynamics_controller",
Expand Down
1 change: 1 addition & 0 deletions attic/systems/rendering/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ package(default_visibility = ["//visibility:public"])

drake_cc_package_library(
name = "rendering",
visibility = ["//visibility:public"],
deps = [
":drake_visualizer_client",
],
Expand Down
1 change: 1 addition & 0 deletions attic/systems/sensors/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ package(default_visibility = ["//visibility:public"])

drake_cc_package_library(
name = "sensors",
visibility = ["//visibility:public"],
deps = [
":accelerometer",
":depth_sensor",
Expand Down
1 change: 1 addition & 0 deletions attic/systems/trajectory_optimization/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ package(default_visibility = ["//visibility:public"])

drake_cc_package_library(
name = "trajectory_optimization",
visibility = ["//visibility:public"],
deps = [
":generalized_constraint_force_evaluator",
":joint_limit_constraint_force_evaluator",
Expand Down
1 change: 1 addition & 0 deletions attic/util/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ package(default_visibility = ["//visibility:public"])

drake_cc_package_library(
name = "util",
visibility = ["//visibility:public"],
deps = [
":everything",
],
Expand Down
1 change: 1 addition & 0 deletions common/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ package(default_visibility = ["//visibility:public"])

drake_cc_package_library(
name = "common",
visibility = ["//visibility:public"],
deps = [
":autodiff",
":autodiffxd_make_coherent",
Expand Down
1 change: 1 addition & 0 deletions common/proto/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ package(default_visibility = ["//visibility:public"])

drake_cc_package_library(
name = "proto",
visibility = ["//visibility:public"],
deps = [
":call_python",
":rpc_pipe_temp_directory",
Expand Down
1 change: 1 addition & 0 deletions common/test_utilities/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ exports_files([
drake_cc_package_library(
name = "test_utilities",
testonly = 1,
visibility = ["//visibility:public"],
deps = [
":eigen_geometry_compare",
":eigen_matrix_compare",
Expand Down
1 change: 1 addition & 0 deletions common/trajectories/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ package(default_visibility = ["//visibility:public"])

drake_cc_package_library(
name = "trajectories",
visibility = ["//visibility:public"],
deps = [
":bspline_trajectory",
":discrete_time_trajectory",
Expand Down
1 change: 1 addition & 0 deletions common/yaml/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ package(default_visibility = ["//visibility:public"])

drake_cc_package_library(
name = "yaml",
visibility = ["//visibility:public"],
deps = [
":yaml_read_archive",
":yaml_write_archive",
Expand Down
1 change: 1 addition & 0 deletions geometry/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ package(default_visibility = ["//visibility:public"])

drake_cc_package_library(
name = "geometry",
visibility = ["//visibility:public"],
deps = [
":frame_kinematics",
":geometry_frame",
Expand Down
1 change: 1 addition & 0 deletions geometry/proximity/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ package(default_visibility = ["//visibility:public"])

drake_cc_package_library(
name = "proximity",
visibility = ["//visibility:public"],
deps = [
":bounding_volume_hierarchy",
":collision_filter_legacy",
Expand Down
1 change: 1 addition & 0 deletions geometry/query_results/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ package(default_visibility = ["//visibility:public"])

drake_cc_package_library(
name = "query_results",
visibility = ["//visibility:public"],
deps = [
":contact_surface",
":penetration_as_point_pair",
Expand Down
1 change: 1 addition & 0 deletions geometry/render/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ package(default_visibility = ["//visibility:public"])

drake_cc_package_library(
name = "render",
visibility = ["//visibility:public"],
deps = [
":render_camera",
":render_engine",
Expand Down
1 change: 1 addition & 0 deletions geometry/render/gl_renderer/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ drake_cc_package_library_gl_per_os(
":shader_program",
":shape_meshes",
],
visibility = ["//visibility:public"],
)

drake_cc_library_gl_ubuntu_only(
Expand Down
1 change: 1 addition & 0 deletions geometry/render/shaders/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ package(default_visibility = ["//visibility:public"])

drake_cc_package_library(
name = "shaders",
visibility = ["//visibility:public"],
deps = [
":depth_shaders",
],
Expand Down
1 change: 1 addition & 0 deletions geometry/test_utilities/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ package(default_visibility = ["//visibility:public"])
drake_cc_package_library(
name = "test_utilities",
testonly = 1,
visibility = ["//visibility:public"],
deps = [
":dummy_render_engine",
":geometry_set_tester",
Expand Down
1 change: 1 addition & 0 deletions lcm/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ package(default_visibility = ["//visibility:public"])

drake_cc_package_library(
name = "lcm",
visibility = ["//visibility:public"],
deps = [
":drake_lcm",
":interface",
Expand Down
1 change: 1 addition & 0 deletions manipulation/kinova_jaco/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ package(

drake_cc_package_library(
name = "kinova_jaco",
visibility = ["//visibility:public"],
deps = [
":jaco_command_receiver",
":jaco_command_sender",
Expand Down
1 change: 1 addition & 0 deletions manipulation/kuka_iiwa/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ package(

drake_cc_package_library(
name = "kuka_iiwa",
visibility = ["//visibility:public"],
deps = [
":iiwa_command_receiver",
":iiwa_command_sender",
Expand Down
1 change: 1 addition & 0 deletions manipulation/perception/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ load("//tools/lint:lint.bzl", "add_lint_tests")

drake_cc_package_library(
name = "perception",
visibility = ["//visibility:public"],
deps = [
":optitrack_pose_extractor",
":pose_smoother",
Expand Down
1 change: 1 addition & 0 deletions manipulation/planner/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ package(

drake_cc_package_library(
name = "planner",
visibility = ["//visibility:public"],
deps = [
":constraint_relaxing_ik",
":differential_inverse_kinematics",
Expand Down
1 change: 1 addition & 0 deletions manipulation/schunk_wsg/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ package(

drake_cc_package_library(
name = "schunk_wsg",
visibility = ["//visibility:public"],
deps = [
":schunk_wsg_constants",
":schunk_wsg_controller",
Expand Down
1 change: 1 addition & 0 deletions manipulation/util/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ drake_py_library(

drake_cc_package_library(
name = "util",
visibility = ["//visibility:public"],
deps = [
":bot_core_lcm_encode_decode",
":move_ik_demo_base",
Expand Down
1 change: 1 addition & 0 deletions math/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ package(default_visibility = ["//visibility:public"])

drake_cc_package_library(
name = "math",
visibility = ["//visibility:public"],
deps = [
":autodiff",
":barycentric",
Expand Down
1 change: 1 addition & 0 deletions multibody/benchmarks/acrobot/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ package(default_visibility = ["//visibility:public"])

drake_cc_package_library(
name = "acrobot",
visibility = ["//visibility:public"],
deps = [
":analytical_acrobot",
":make_acrobot_plant",
Expand Down
1 change: 1 addition & 0 deletions multibody/benchmarks/free_body/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ filegroup(

drake_cc_package_library(
name = "free_body",
visibility = ["//visibility:public"],
deps = [
":free_body_only",
],
Expand Down
1 change: 1 addition & 0 deletions multibody/benchmarks/inclined_plane/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ package(default_visibility = ["//visibility:private"])

drake_cc_package_library(
name = "inclined_plane",
visibility = ["//visibility:public"],
deps = [
":inclined_plane_plant",
],
Expand Down
1 change: 1 addition & 0 deletions multibody/benchmarks/kuka_iiwa_robot/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ package(default_visibility = ["//visibility:private"])

drake_cc_package_library(
name = "kuka_iiwa_robot",
visibility = ["//visibility:public"],
deps = [
":make_kuka_iiwa_model",
],
Expand Down
1 change: 1 addition & 0 deletions multibody/benchmarks/mass_damper_spring/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ package(default_visibility = ["//visibility:private"])

drake_cc_package_library(
name = "mass_damper_spring",
visibility = ["//visibility:public"],
deps = [
":mass_damper_spring_analytical_solution",
],
Expand Down
1 change: 1 addition & 0 deletions multibody/benchmarks/pendulum/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ package(default_visibility = ["//visibility:private"])

drake_cc_package_library(
name = "pendulum",
visibility = ["//visibility:public"],
deps = [
":make_pendulum_plant",
],
Expand Down
1 change: 1 addition & 0 deletions multibody/constraint/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ package(default_visibility = ["//visibility:public"])

drake_cc_package_library(
name = "constraint",
visibility = ["//visibility:public"],
deps = [
":constraint_problem_data",
":constraint_solver",
Expand Down
1 change: 1 addition & 0 deletions multibody/hydroelastics/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ package(default_visibility = ["//visibility:public"])

drake_cc_package_library(
name = "hydroelastics",
visibility = ["//visibility:public"],
deps = [
":contact_surface_from_level_set",
":hydroelastic_engine",
Expand Down
1 change: 1 addition & 0 deletions multibody/inverse_kinematics/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ package(default_visibility = ["//visibility:public"])

drake_cc_package_library(
name = "inverse_kinematics",
visibility = ["//visibility:public"],
deps = [
":inverse_kinematics_core",
":kinematic_constraint",
Expand Down
1 change: 1 addition & 0 deletions multibody/math/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ package(

drake_cc_package_library(
name = "math",
visibility = ["//visibility:public"],
deps = [
":spatial_acceleration",
":spatial_algebra",
Expand Down
1 change: 1 addition & 0 deletions multibody/optimization/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ package(default_visibility = ["//visibility:public"])

drake_cc_package_library(
name = "optimization",
visibility = ["//visibility:public"],
deps = [
":contact_wrench",
":contact_wrench_evaluator",
Expand Down
1 change: 1 addition & 0 deletions multibody/plant/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ package(

drake_cc_package_library(
name = "plant",
visibility = ["//visibility:public"],
deps = [
":calc_distance_and_time_derivative",
":contact_jacobians",
Expand Down
1 change: 1 addition & 0 deletions multibody/tree/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ package(

drake_cc_package_library(
name = "tree",
visibility = ["//visibility:public"],
deps = [
":articulated_body_inertia",
":multibody_element",
Expand Down
1 change: 1 addition & 0 deletions multibody/triangle_quadrature/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ package(

drake_cc_package_library(
name = "triangle_quadrature",
visibility = ["//visibility:public"],
deps = [
":triangle_quadrature_routine",
":triangle_quadrature_rules",
Expand Down
1 change: 1 addition & 0 deletions perception/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ package(default_visibility = ["//visibility:public"])

drake_cc_package_library(
name = "perception",
visibility = ["//visibility:public"],
deps = [
":depth_image_to_point_cloud",
":point_cloud",
Expand Down
1 change: 1 addition & 0 deletions solvers/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ package(default_visibility = ["//visibility:public"])

drake_cc_package_library(
name = "solvers",
visibility = ["//visibility:public"],
deps = [
":bilinear_product_util",
":binding",
Expand Down
1 change: 1 addition & 0 deletions solvers/fbstab/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ package(default_visibility = ["//visibility:public"])

drake_cc_package_library(
name = "fbstab",
visibility = ["//visibility:public"],
deps = [
":fbstab_algorithm",
":fbstab_dense",
Expand Down
1 change: 1 addition & 0 deletions solvers/test_utilities/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ package(default_visibility = ["//visibility:public"])
drake_cc_package_library(
name = "test_utilities",
testonly = 1,
visibility = ["//visibility:public"],
deps = [
":check_constraint_eval_nonsymbolic",
],
Expand Down
1 change: 1 addition & 0 deletions systems/analysis/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ package(default_visibility = ["//visibility:public"])

drake_cc_package_library(
name = "analysis",
visibility = ["//visibility:public"],
deps = [
":antiderivative_function",
":bogacki_shampine3_integrator",
Expand Down
Loading

0 comments on commit 7c06b91

Please sign in to comment.