-
Notifications
You must be signed in to change notification settings - Fork 1.3k
/
default.bzl
419 lines (411 loc) · 26 KB
/
default.bzl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
load("@drake//tools/workspace:mirrors.bzl", "DEFAULT_MIRRORS")
load("@drake//tools/workspace:os.bzl", "os_repository")
load("@drake//tools/workspace/abseil_cpp_internal:repository.bzl", "abseil_cpp_internal_repository") # noqa
load("@drake//tools/workspace/bazelisk:repository.bzl", "bazelisk_repository")
load("@drake//tools/workspace/bazel_skylib:repository.bzl", "bazel_skylib_repository") # noqa
load("@drake//tools/workspace/blas:repository.bzl", "blas_repository")
load("@drake//tools/workspace/buildifier:repository.bzl", "buildifier_repository") # noqa
load("@drake//tools/workspace/cc:repository.bzl", "cc_repository")
load("@drake//tools/workspace/ccd_internal:repository.bzl", "ccd_internal_repository") # noqa
load("@drake//tools/workspace/clang_cindex_python3_internal:repository.bzl", "clang_cindex_python3_internal_repository") # noqa
load("@drake//tools/workspace/clp:repository.bzl", "clp_repository")
load("@drake//tools/workspace/clp_internal:repository.bzl", "clp_internal_repository") # noqa
load("@drake//tools/workspace/coinutils_internal:repository.bzl", "coinutils_internal_repository") # noqa
load("@drake//tools/workspace/com_jidesoft_jide_oss:repository.bzl", "com_jidesoft_jide_oss_repository") # noqa
load("@drake//tools/workspace/common_robotics_utilities:repository.bzl", "common_robotics_utilities_repository") # noqa
load("@drake//tools/workspace/commons_io:repository.bzl", "commons_io_repository") # noqa
load("@drake//tools/workspace/conex:repository.bzl", "conex_repository")
load("@drake//tools/workspace/conex_internal:repository.bzl", "conex_internal_repository") # noqa
load("@drake//tools/workspace/csdp:repository.bzl", "csdp_repository")
load("@drake//tools/workspace/csdp_internal:repository.bzl", "csdp_internal_repository") # noqa
load("@drake//tools/workspace/curl_internal:repository.bzl", "curl_internal_repository") # noqa
load("@drake//tools/workspace/double_conversion:repository.bzl", "double_conversion_repository") # noqa
load("@drake//tools/workspace/doxygen:repository.bzl", "doxygen_repository")
load("@drake//tools/workspace/dm_control_internal:repository.bzl", "dm_control_internal_repository") # noqa
load("@drake//tools/workspace/drake_models:repository.bzl", "drake_models_repository") # noqa
load("@drake//tools/workspace/drake_visualizer:repository.bzl", "drake_visualizer_repository") # noqa
load("@drake//tools/workspace/eigen:repository.bzl", "eigen_repository")
load("@drake//tools/workspace/expat:repository.bzl", "expat_repository")
load("@drake//tools/workspace/fcl_internal:repository.bzl", "fcl_internal_repository") # noqa
load("@drake//tools/workspace/fmt:repository.bzl", "fmt_repository")
load("@drake//tools/workspace/gflags:repository.bzl", "gflags_repository")
load("@drake//tools/workspace/gfortran:repository.bzl", "gfortran_repository")
load("@drake//tools/workspace/github3_py_internal:repository.bzl", "github3_py_internal_repository") # noqa
load("@drake//tools/workspace/glew:repository.bzl", "glew_repository")
load("@drake//tools/workspace/glib:repository.bzl", "glib_repository")
load("@drake//tools/workspace/glx:repository.bzl", "glx_repository")
load("@drake//tools/workspace/googlebenchmark:repository.bzl", "googlebenchmark_repository") # noqa
load("@drake//tools/workspace/gtest:repository.bzl", "gtest_repository")
load("@drake//tools/workspace/gurobi:repository.bzl", "gurobi_repository")
load("@drake//tools/workspace/gym_py:repository.bzl", "gym_py_repository")
load("@drake//tools/workspace/gymnasium_py:repository.bzl", "gymnasium_py_repository") # noqa
load("@drake//tools/workspace/gz_math_internal:repository.bzl", "gz_math_internal_repository") # noqa
load("@drake//tools/workspace/gz_utils_internal:repository.bzl", "gz_utils_internal_repository") # noqa
load("@drake//tools/workspace/intel_realsense_ros_internal:repository.bzl", "intel_realsense_ros_internal_repository") # noqa
load("@drake//tools/workspace/ipopt:repository.bzl", "ipopt_repository")
load("@drake//tools/workspace/ipopt_internal_fromsource:repository.bzl", "ipopt_internal_fromsource_repository") # noqa
load("@drake//tools/workspace/ipopt_internal_pkgconfig:repository.bzl", "ipopt_internal_pkgconfig_repository") # noqa
load("@drake//tools/workspace/lapack:repository.bzl", "lapack_repository")
load("@drake//tools/workspace/lcm:repository.bzl", "lcm_repository")
load("@drake//tools/workspace/libblas:repository.bzl", "libblas_repository")
load("@drake//tools/workspace/libcmaes:repository.bzl", "libcmaes_repository")
load("@drake//tools/workspace/libjpeg:repository.bzl", "libjpeg_repository")
load("@drake//tools/workspace/liblapack:repository.bzl", "liblapack_repository") # noqa
load("@drake//tools/workspace/liblz4:repository.bzl", "liblz4_repository")
load("@drake//tools/workspace/liblzma:repository.bzl", "liblzma_repository")
load("@drake//tools/workspace/libpfm:repository.bzl", "libpfm_repository")
load("@drake//tools/workspace/libpng:repository.bzl", "libpng_repository")
load("@drake//tools/workspace/libtiff:repository.bzl", "libtiff_repository")
load("@drake//tools/workspace/meshcat:repository.bzl", "meshcat_repository")
load("@drake//tools/workspace/mosek:repository.bzl", "mosek_repository")
load("@drake//tools/workspace/msgpack_internal:repository.bzl", "msgpack_internal_repository") # noqa
load("@drake//tools/workspace/mumps_internal:repository.bzl", "mumps_internal_repository") # noqa
load("@drake//tools/workspace/mypy_extensions_internal:repository.bzl", "mypy_extensions_internal_repository") # noqa
load("@drake//tools/workspace/mypy_internal:repository.bzl", "mypy_internal_repository") # noqa
load("@drake//tools/workspace/nanoflann_internal:repository.bzl", "nanoflann_internal_repository") # noqa
load("@drake//tools/workspace/net_sf_jchart2d:repository.bzl", "net_sf_jchart2d_repository") # noqa
load("@drake//tools/workspace/nlohmann_internal:repository.bzl", "nlohmann_internal_repository") # noqa
load("@drake//tools/workspace/nlopt_internal:repository.bzl", "nlopt_internal_repository") # noqa
load("@drake//tools/workspace/openblas:repository.bzl", "openblas_repository")
load("@drake//tools/workspace/opencl:repository.bzl", "opencl_repository")
load("@drake//tools/workspace/opengl:repository.bzl", "opengl_repository")
load("@drake//tools/workspace/optitrack_driver:repository.bzl", "optitrack_driver_repository") # noqa
load("@drake//tools/workspace/org_apache_xmlgraphics_commons:repository.bzl", "org_apache_xmlgraphics_commons_repository") # noqa
load("@drake//tools/workspace/osqp_internal:repository.bzl", "osqp_internal_repository") # noqa
load("@drake//tools/workspace/petsc:repository.bzl", "petsc_repository")
load("@drake//tools/workspace/picosha2:repository.bzl", "picosha2_repository")
load("@drake//tools/workspace/picosha2_internal:repository.bzl", "picosha2_internal_repository") # noqa
load("@drake//tools/workspace/platforms:repository.bzl", "platforms_repository") # noqa
load("@drake//tools/workspace/pybind11:repository.bzl", "pybind11_repository")
load("@drake//tools/workspace/pycodestyle:repository.bzl", "pycodestyle_repository") # noqa
load("@drake//tools/workspace/python:repository.bzl", "python_repository")
load("@drake//tools/workspace/qdldl_internal:repository.bzl", "qdldl_internal_repository") # noqa
load("@drake//tools/workspace/qhull_internal:repository.bzl", "qhull_internal_repository") # noqa
load("@drake//tools/workspace/ros_xacro_internal:repository.bzl", "ros_xacro_internal_repository") # noqa
load("@drake//tools/workspace/rules_pkg:repository.bzl", "rules_pkg_repository") # noqa
load("@drake//tools/workspace/rules_python:repository.bzl", "rules_python_repository") # noqa
load("@drake//tools/workspace/scs_internal:repository.bzl", "scs_internal_repository") # noqa
load("@drake//tools/workspace/sdformat_internal:repository.bzl", "sdformat_internal_repository") # noqa
load("@drake//tools/workspace/snopt:repository.bzl", "snopt_repository")
load("@drake//tools/workspace/spdlog:repository.bzl", "spdlog_repository")
load("@drake//tools/workspace/stable_baselines3_internal:repository.bzl", "stable_baselines3_internal_repository") # noqa
load("@drake//tools/workspace/statsjs:repository.bzl", "statsjs_repository")
load("@drake//tools/workspace/stduuid_internal:repository.bzl", "stduuid_internal_repository") # noqa
load("@drake//tools/workspace/styleguide:repository.bzl", "styleguide_repository") # noqa
load("@drake//tools/workspace/suitesparse_internal:repository.bzl", "suitesparse_internal_repository") # noqa
load("@drake//tools/workspace/tinyobjloader:repository.bzl", "tinyobjloader_repository") # noqa
load("@drake//tools/workspace/tinyobjloader_internal:repository.bzl", "tinyobjloader_internal_repository") # noqa
load("@drake//tools/workspace/tinyxml2_internal:repository.bzl", "tinyxml2_internal_repository") # noqa
load("@drake//tools/workspace/tomli_internal:repository.bzl", "tomli_internal_repository") # noqa
load("@drake//tools/workspace/typing_extensions_internal:repository.bzl", "typing_extensions_internal_repository") # noqa
load("@drake//tools/workspace/uritemplate_py_internal:repository.bzl", "uritemplate_py_internal_repository") # noqa
load("@drake//tools/workspace/usockets:repository.bzl", "usockets_repository") # noqa
load("@drake//tools/workspace/usockets_internal:repository.bzl", "usockets_internal_repository") # noqa
load("@drake//tools/workspace/uwebsockets:repository.bzl", "uwebsockets_repository") # noqa
load("@drake//tools/workspace/uwebsockets_internal:repository.bzl", "uwebsockets_internal_repository") # noqa
load("@drake//tools/workspace/voxelized_geometry_tools:repository.bzl", "voxelized_geometry_tools_repository") # noqa
load("@drake//tools/workspace/vtk:repository.bzl", "vtk_repository")
load("@drake//tools/workspace/vtk_internal:repository.bzl", "vtk_internal_repository") # noqa
load("@drake//tools/workspace/x11:repository.bzl", "x11_repository")
load("@drake//tools/workspace/xmlrunner_py:repository.bzl", "xmlrunner_py_repository") # noqa
load("@drake//tools/workspace/yaml_cpp_internal:repository.bzl", "yaml_cpp_internal_repository") # noqa
load("@drake//tools/workspace/zlib:repository.bzl", "zlib_repository")
def add_default_repositories(excludes = [], mirrors = DEFAULT_MIRRORS):
"""Declares workspace repositories for all externals needed by drake (other
than those built into Bazel, of course). This is intended to be loaded and
called from a WORKSPACE file.
Args:
excludes: list of string names of repositories to exclude; this can
be useful if a WORKSPACE file has already supplied its own external
of a given name.
"""
if "abseil_cpp_internal" not in excludes:
abseil_cpp_internal_repository(name = "abseil_cpp_internal", mirrors = mirrors) # noqa
if "bazelisk" not in excludes:
bazelisk_repository(name = "bazelisk", mirrors = mirrors)
if "bazel_skylib" not in excludes:
bazel_skylib_repository(name = "bazel_skylib", mirrors = mirrors)
if "blas" not in excludes:
blas_repository(name = "blas")
if "buildifier" not in excludes:
buildifier_repository(name = "buildifier", mirrors = mirrors)
if "cc" not in excludes:
cc_repository(name = "cc")
if "ccd_internal" not in excludes:
ccd_internal_repository(name = "ccd_internal", mirrors = mirrors)
if "clang_cindex_python3_internal" not in excludes:
clang_cindex_python3_internal_repository(name = "clang_cindex_python3_internal", mirrors = mirrors) # noqa
if "clp" not in excludes:
# The @clp external is deprecated in Drake's WORKSPACE and will be
# removed on or after 2023-12-01.
clp_repository(name = "clp")
if "clp_internal" not in excludes:
clp_internal_repository(name = "clp_internal", mirrors = mirrors)
if "coinutils_internal" not in excludes:
coinutils_internal_repository(name = "coinutils_internal", mirrors = mirrors) # noqa
if "com_jidesoft_jide_oss" not in excludes:
com_jidesoft_jide_oss_repository(name = "com_jidesoft_jide_oss", mirrors = mirrors) # noqa
if "common_robotics_utilities" not in excludes:
common_robotics_utilities_repository(name = "common_robotics_utilities", mirrors = mirrors) # noqa
if "commons_io" not in excludes:
commons_io_repository(name = "commons_io", mirrors = mirrors)
if "conex" not in excludes:
# The @conex external is deprecated in Drake's WORKSPACE and will be
# removed on or after 2023-11-01.
conex_repository(name = "conex", mirrors = mirrors)
if "conex_internal" not in excludes:
conex_internal_repository(name = "conex_internal", mirrors = mirrors)
if "csdp" not in excludes:
# The @csdp external is deprecated in Drake's WORKSPACE and will be
# removed on or after 2023-11-01.
csdp_repository(name = "csdp", mirrors = mirrors)
if "csdp_internal" not in excludes:
csdp_internal_repository(name = "csdp_internal", mirrors = mirrors)
if "curl_internal" not in excludes:
curl_internal_repository(name = "curl_internal", mirrors = mirrors)
if "double_conversion" not in excludes:
# The @double_conversion external is deprecated in Drake's WORKSPACE
# and will be removed on or after 2023-12-01.
double_conversion_repository(name = "double_conversion")
if "doxygen" not in excludes:
doxygen_repository(name = "doxygen", mirrors = mirrors)
if "dm_control_internal" not in excludes:
dm_control_internal_repository(name = "dm_control_internal", mirrors = mirrors) # noqa
if "drake_detected_os" not in excludes:
os_repository(name = "drake_detected_os")
if "drake_models" not in excludes:
drake_models_repository(name = "drake_models", mirrors = mirrors)
if "drake_visualizer" not in excludes:
drake_visualizer_repository(name = "drake_visualizer", mirrors = mirrors) # noqa
if "eigen" not in excludes:
eigen_repository(name = "eigen")
if "expat" not in excludes:
expat_repository(name = "expat")
if "fcl_internal" not in excludes:
fcl_internal_repository(name = "fcl_internal", mirrors = mirrors)
if "fmt" not in excludes:
fmt_repository(name = "fmt", mirrors = mirrors)
if "gflags" not in excludes:
gflags_repository(name = "gflags", mirrors = mirrors)
if "gfortran" not in excludes:
gfortran_repository(name = "gfortran")
if "github3_py_internal" not in excludes:
github3_py_internal_repository(name = "github3_py_internal", mirrors = mirrors) # noqa
if "glew" not in excludes:
# The @glew external is deprecated in Drake's WORKSPACE and will be
# removed on or after 2023-12-01.
glew_repository(name = "glew")
if "glib" not in excludes:
glib_repository(name = "glib")
if "glx" not in excludes:
glx_repository(name = "glx")
if "googlebenchmark" not in excludes:
googlebenchmark_repository(name = "googlebenchmark", mirrors = mirrors)
if "gtest" not in excludes:
gtest_repository(name = "gtest", mirrors = mirrors)
if "gurobi" not in excludes:
gurobi_repository(name = "gurobi")
if "gz_math_internal" not in excludes:
gz_math_internal_repository(name = "gz_math_internal", mirrors = mirrors) # noqa
if "gz_utils_internal" not in excludes:
gz_utils_internal_repository(name = "gz_utils_internal", mirrors = mirrors) # noqa
if "gym_py" not in excludes:
# The @gym_py external is deprecated and will be removed from Drake's
# WORKSPACE on or after 2023-12-01; see @gymnasium_py for an available
# newer replacement.
gym_py_repository(name = "gym_py", mirrors = mirrors)
if "gymnasium_py" not in excludes:
gymnasium_py_repository(name = "gymnasium_py", mirrors = mirrors)
if "intel_realsense_ros_internal" not in excludes:
intel_realsense_ros_internal_repository(name = "intel_realsense_ros_internal", mirrors = mirrors) # noqa
if "ipopt" not in excludes:
ipopt_repository(name = "ipopt")
if "ipopt_internal_fromsource" not in excludes:
ipopt_internal_fromsource_repository(name = "ipopt_internal_fromsource", mirrors = mirrors) # noqa
if "ipopt_internal_pkgconfig" not in excludes:
ipopt_internal_pkgconfig_repository(name = "ipopt_internal_pkgconfig")
if "lapack" not in excludes:
lapack_repository(name = "lapack")
if "lcm" not in excludes:
lcm_repository(name = "lcm", mirrors = mirrors)
if "libblas" not in excludes:
libblas_repository(name = "libblas")
if "libcmaes" not in excludes:
libcmaes_repository(name = "libcmaes", mirrors = mirrors)
if "libjpeg" not in excludes:
libjpeg_repository(name = "libjpeg")
if "liblapack" not in excludes:
liblapack_repository(name = "liblapack")
if "liblz4" not in excludes:
# The @liblz4 external is deprecated in Drake's WORKSPACE and will be
# removed on or after 2023-12-01.
liblz4_repository(name = "liblz4")
if "liblzma" not in excludes:
# The @liblzma external is deprecated in Drake's WORKSPACE and will be
# removed on or after 2023-12-01.
liblzma_repository(name = "liblzma")
if "libpfm" not in excludes:
libpfm_repository(name = "libpfm")
if "libpng" not in excludes:
libpng_repository(name = "libpng")
if "libtiff" not in excludes:
libtiff_repository(name = "libtiff")
if "meshcat" not in excludes:
meshcat_repository(name = "meshcat", mirrors = mirrors)
if "mosek" not in excludes:
mosek_repository(name = "mosek")
if "msgpack_internal" not in excludes:
msgpack_internal_repository(name = "msgpack_internal", mirrors = mirrors) # noqa
if "mumps_internal" not in excludes:
mumps_internal_repository(name = "mumps_internal")
if "mypy_extensions_internal" not in excludes:
mypy_extensions_internal_repository(name = "mypy_extensions_internal", mirrors = mirrors) # noqa
if "mypy_internal" not in excludes:
mypy_internal_repository(name = "mypy_internal", mirrors = mirrors)
if "nanoflann_internal" not in excludes:
nanoflann_internal_repository(name = "nanoflann_internal", mirrors = mirrors) # noqa
if "net_sf_jchart2d" not in excludes:
net_sf_jchart2d_repository(name = "net_sf_jchart2d", mirrors = mirrors)
if "nlohmann_internal" not in excludes:
nlohmann_internal_repository(name = "nlohmann_internal", mirrors = mirrors) # noqa
if "nlopt_internal" not in excludes:
nlopt_internal_repository(name = "nlopt_internal", mirrors = mirrors)
if "openblas" not in excludes:
openblas_repository(name = "openblas")
if "opencl" not in excludes:
opencl_repository(name = "opencl")
if "opengl" not in excludes:
opengl_repository(name = "opengl")
if "optitrack_driver" not in excludes:
# The @optitrack_driver external is deprecated and will be removed on
# or after 2023-11-01.
optitrack_driver_repository(name = "optitrack_driver", mirrors = mirrors) # noqa
if "org_apache_xmlgraphics_commons" not in excludes:
org_apache_xmlgraphics_commons_repository(name = "org_apache_xmlgraphics_commons", mirrors = mirrors) # noqa
if "osqp_internal" not in excludes:
osqp_internal_repository(name = "osqp_internal", mirrors = mirrors)
if "petsc" not in excludes:
# The @petsc external is deprecated in Drake's WORKSPACE and will be
# removed on or after 2023-11-01.
petsc_repository(name = "petsc", mirrors = mirrors)
if "picosha2" not in excludes:
# The @picosha2 external is deprecated in Drake's WORKSPACE and will
# be removed on or after 2023-11-01.
picosha2_repository(name = "picosha2", mirrors = mirrors)
if "picosha2_internal" not in excludes:
picosha2_internal_repository(name = "picosha2_internal", mirrors = mirrors) # noqa
if "platforms" not in excludes:
platforms_repository(name = "platforms", mirrors = mirrors)
if "pybind11" not in excludes:
pybind11_repository(name = "pybind11", mirrors = mirrors)
if "pycodestyle" not in excludes:
pycodestyle_repository(name = "pycodestyle", mirrors = mirrors)
if "python" not in excludes:
python_repository(name = "python")
if "qdldl_internal" not in excludes:
qdldl_internal_repository(name = "qdldl_internal", mirrors = mirrors)
if "qhull_internal" not in excludes:
qhull_internal_repository(name = "qhull_internal", mirrors = mirrors)
if "ros_xacro_internal" not in excludes:
ros_xacro_internal_repository(name = "ros_xacro_internal", mirrors = mirrors) # noqa
if "rules_pkg" not in excludes:
# The @rules_pkg external is deprecated in Drake's WORKSPACE and will
# be removed on or after 2023-11-01.
rules_pkg_repository(name = "rules_pkg", mirrors = mirrors)
if "rules_python" not in excludes:
rules_python_repository(name = "rules_python", mirrors = mirrors)
if "scs_internal" not in excludes:
scs_internal_repository(name = "scs_internal", mirrors = mirrors)
if "sdformat_internal" not in excludes:
sdformat_internal_repository(name = "sdformat_internal", mirrors = mirrors) # noqa
if "snopt" not in excludes:
snopt_repository(name = "snopt")
if "spdlog" not in excludes:
spdlog_repository(name = "spdlog", mirrors = mirrors)
if "stable_baselines3_internal" not in excludes:
stable_baselines3_internal_repository(name = "stable_baselines3_internal", mirrors = mirrors) # noqa
if "statsjs" not in excludes:
statsjs_repository(name = "statsjs", mirrors = mirrors)
if "stduuid_internal" not in excludes:
stduuid_internal_repository(name = "stduuid_internal", mirrors = mirrors) # noqa
if "styleguide" not in excludes:
styleguide_repository(name = "styleguide", mirrors = mirrors)
if "suitesparse_internal" not in excludes:
suitesparse_internal_repository(name = "suitesparse_internal", mirrors = mirrors) # noqa
if "tinyobjloader" not in excludes:
# The @tinyobjloader external is deprecated in Drake's WORKSPACE and
# will be removed on or after 2023-11-01.
tinyobjloader_repository(name = "tinyobjloader", mirrors = mirrors)
if "tinyobjloader_internal" not in excludes:
tinyobjloader_internal_repository(name = "tinyobjloader_internal", mirrors = mirrors) # noqa
if "tinyxml2_internal" not in excludes:
tinyxml2_internal_repository(name = "tinyxml2_internal", mirrors = mirrors) # noqa
if "tomli_internal" not in excludes:
tomli_internal_repository(name = "tomli_internal", mirrors = mirrors)
if "typing_extensions_internal" not in excludes:
typing_extensions_internal_repository(name = "typing_extensions_internal", mirrors = mirrors) # noqa
if "uritemplate_py_internal" not in excludes:
uritemplate_py_internal_repository(name = "uritemplate_py_internal", mirrors = mirrors) # noqa
if "usockets" not in excludes:
# The @usockets external is deprecated in Drake's WORKSPACE and will be
# removed on or after 2023-11-01.
usockets_repository(name = "usockets", mirrors = mirrors)
if "usockets_internal" not in excludes:
usockets_internal_repository(name = "usockets_internal", mirrors = mirrors) # noqa
if "uwebsockets" not in excludes:
# The @uwebsockets external is deprecated in Drake's WORKSPACE and will
# be removed on or after 2023-11-01.
uwebsockets_repository(name = "uwebsockets", mirrors = mirrors)
if "uwebsockets_internal" not in excludes:
uwebsockets_internal_repository(name = "uwebsockets_internal", mirrors = mirrors) # noqa
if "voxelized_geometry_tools" not in excludes:
voxelized_geometry_tools_repository(name = "voxelized_geometry_tools", mirrors = mirrors) # noqa
if "vtk" not in excludes:
# The @vtk external is deprecated in Drake's WORKSPACE and will be
# removed on or after 2023-12-01.
vtk_repository(name = "vtk", mirrors = mirrors)
if "vtk_internal" not in excludes:
vtk_internal_repository(name = "vtk_internal", mirrors = mirrors)
if "x11" not in excludes:
x11_repository(name = "x11")
if "xmlrunner_py" not in excludes:
xmlrunner_py_repository(name = "xmlrunner_py", mirrors = mirrors)
if "yaml_cpp_internal" not in excludes:
yaml_cpp_internal_repository(name = "yaml_cpp_internal", mirrors = mirrors) # noqa
if "zlib" not in excludes:
zlib_repository(name = "zlib")
def add_default_toolchains(excludes = []):
"""Register toolchains for each language (e.g., "py") not explicitly
excluded and/or not using an automatically generated toolchain.
Args:
excludes: List of languages for which a toolchain should not be
registered.
"""
if "py" not in excludes:
# The Python debug toolchain on Linux is not loaded automatically, but
# may be used by specifying the command line option
# --extra_toolchains=//tools/py_toolchain:linux_dbg_toolchain
native.register_toolchains(
"@drake//tools/py_toolchain:linux_toolchain",
"@drake//tools/py_toolchain:macos_i386_toolchain",
"@drake//tools/py_toolchain:macos_arm64_toolchain",
)
def add_default_workspace(
repository_excludes = [],
toolchain_excludes = [],
mirrors = DEFAULT_MIRRORS):
"""Declare repositories in this WORKSPACE for each dependency of @drake
(e.g., "eigen") that is not explicitly excluded, and register toolchains
for each language (e.g., "py") not explicitly excluded and/or not using an
automatically generated toolchain.
Args:
repository_excludes: List of repositories that should not be declared
in this WORKSPACE.
toolchain_excludes: List of languages for which a toolchain should not
be registered.
mirrors: Dictionary of mirrors from which to download repository files.
See mirrors.bzl file in this directory for the file format and
default values.
"""
add_default_repositories(excludes = repository_excludes, mirrors = mirrors)
add_default_toolchains(excludes = toolchain_excludes)