forked from RobotLocomotion/drake
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathBUILD.bazel
126 lines (109 loc) · 4.03 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
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
# -*- python -*-
load("//tools/skylark:py.bzl", "py_binary", "py_library")
load("//tools/lint:lint.bzl", "add_lint_tests")
load(
"@drake//tools/skylark:drake_runfiles_binary.bzl",
"drake_runfiles_binary",
)
package(default_visibility = ["//visibility:public"])
py_library(
name = "module_py",
srcs = ["__init__.py"],
visibility = [":__subpackages__"],
deps = ["//:module_py"],
)
# TODO(eric.cousineau): Move this to //tools/workspace:drake_visualizer.
py_binary(
name = "drake_visualizer_py",
srcs = ["//tools/workspace/drake_visualizer:drake_visualizer_bazel.py"],
data = [
"//examples:prod_models",
"@drake_visualizer",
],
main = "//tools/workspace/drake_visualizer:drake_visualizer_bazel.py",
deps = [
"//lcmtypes:lcmtypes_drake_py",
"//tools/workspace/drake_visualizer:builtin_scripts_py",
"//tools/workspace/drake_visualizer:stub_pydrake",
"@drake_visualizer//:drake_visualizer_python_deps",
"@optitrack_driver//lcmtypes:py_optitrack_lcmtypes",
],
)
drake_runfiles_binary(
name = "drake_visualizer",
target = ":drake_visualizer_py",
)
# === config_setting rules ===
# When this is set, a Drake build will promote some warnings to errors.
# See drake/tools/cc_toolchain/bazel.rc for details.
config_setting(
name = "drake_werror",
values = {"define": "DRAKE_WERROR=ON"},
)
config_setting(
name = "with_gurobi",
values = {"define": "WITH_GUROBI=ON"},
)
config_setting(
name = "with_mosek",
values = {"define": "WITH_MOSEK=ON"},
)
config_setting(
name = "with_snopt",
values = {"define": "WITH_SNOPT=ON"},
)
# CSDP is an open-source solver, and is included in the Drake build by default.
# The CSDP solver is irrelevant to some users of MathematicalProgram, so we
# provide a hidden switch to shut it off for developers who don't actually need
# it. This is not a supported configuration. Use at your own risk:
# --define=NO_CSDP=ON
config_setting(
name = "no_csdp",
values = {"define": "NO_CSDP=ON"},
)
# dReal is an open-source solver, and is included in the Drake build by
# default. The dReal solver is irrelevant to some users of MathematicalProgram,
# so we provide a hidden switch to shut it off for developers who don't
# actually need it. This is not a supported configuration. Use at your own
# risk: --define=NO_DREAL=ON
config_setting(
name = "no_dreal",
values = {"define": "NO_DREAL=ON"},
)
# IPOPT is an open-source solver, and is included in the Drake build by
# default. The IPOPT solver is irrelevant to some users of MathematicalProgram,
# so we provide a hidden switch to shut it off for developers who don't
# actually need it. This is not a supported configuration. Use at your own
# risk: --define=NO_IPOPT=ON
config_setting(
name = "no_ipopt",
values = {"define": "NO_IPOPT=ON"},
)
# NLOPT is an open-source solver, and is included in the Drake build by
# default. The NLOPT solver is irrelevant to some users of MathematicalProgram,
# so we provide a hidden switch to shut it off for developers who don't
# actually need it. This is not a supported configuration. Use at your own
# risk: --define=NO_NLOPT=ON
config_setting(
name = "no_nlopt",
values = {"define": "NO_NLOPT=ON"},
)
# OSQP is an open-source solver, and is included in the Drake build by
# default. The OSQP solver is irrelevant to some users of MathematicalProgram,
# so we provide a hidden switch to shut it off for developers who don't
# actually need it. This is not a supported configuration. Use at your own
# risk: --define=NO_OSQP=ON
config_setting(
name = "no_osqp",
values = {"define": "NO_OSQP=ON"},
)
# SCS is an open-source solver, and is included in the Drake build by default.
# The SCS solver is irrelevant to some users of MathematicalProgram, so we
# provide a hidden switch to shut it off for developers who don't actually need
# it. This is not a supported configuration. Use at your own risk:
# --define=NO_SCS=ON
config_setting(
name = "no_scs",
values = {"define": "NO_SCS=ON"},
)
add_lint_tests()