forked from RobotLocomotion/drake
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathBUILD.bazel
102 lines (93 loc) · 2.24 KB
/
BUILD.bazel
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
# -*- python -*-
load("//tools/skylark:py.bzl", "py_library")
load("@drake//tools/install:check_licenses.bzl", "check_licenses")
load("@drake//tools/install:install.bzl", "install")
load(
"@drake//tools/skylark:drake_py.bzl",
"drake_py_binary",
)
load("//tools/lint:lint.bzl", "add_lint_tests")
py_library(
name = "module_py",
srcs = ["__init__.py"],
visibility = [":__subpackages__"],
deps = ["//tools:module_py"],
)
drake_py_binary(
name = "mirror_to_s3",
srcs = [
"metadata.py",
"mirror_to_s3.py",
],
visibility = ["//visibility:private"],
deps = [":module_py"],
)
drake_py_binary(
name = "new_release",
srcs = [
"metadata.py",
"new_release.py",
],
visibility = ["//visibility:private"],
deps = [
":module_py",
"@github3_py",
],
)
drake_py_binary(
name = "cmake_configure_file",
srcs = ["cmake_configure_file.py"],
visibility = ["//visibility:public"],
)
_DRAKE_EXTERNAL_PACKAGE_INSTALLS = ["@%s//:install" % p for p in [
"ccd",
"fcl",
"fmt",
"ghc_filesystem",
"ignition_math",
"lcm",
"lcmtypes_bot2_core",
"lcmtypes_robotlocomotion",
"meshcat",
"meshcat_python",
"pybind11",
"sdformat",
"spdlog",
"tinyobjloader",
"vtk",
]] + ["//tools/workspace/%s:install" % p for p in [
"cds",
"drake_visualizer",
"dreal",
"net_sf_jchart2d",
"optitrack_driver",
"picosat",
]] + select({
"//conditions:default": ["@csdp//:install"],
"//tools:no_csdp": [],
}) + select({
"//conditions:default": ["//tools/workspace/ibex:install"],
"//tools:no_dreal": [],
}) + select({
"//tools:with_gurobi": ["@gurobi//:install"],
"//conditions:default": [],
}) + select({
"//tools:with_mosek": ["@mosek//:install"],
"//conditions:default": [],
}) + select({
"//conditions:default": [
"@osqp//:install",
"@qdldl//:install",
],
"//tools:no_osqp": [],
}) + select({
"//conditions:default": ["@scs//:install"],
"//tools:no_scs": [],
})
install(
name = "install_external_packages",
visibility = ["//:__pkg__"],
deps = _DRAKE_EXTERNAL_PACKAGE_INSTALLS,
)
check_licenses(_DRAKE_EXTERNAL_PACKAGE_INSTALLS)
add_lint_tests()