forked from RobotLocomotion/drake
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathBUILD.bazel
74 lines (63 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
# -*- python -*-
load("//tools/lint:lint.bzl", "add_lint_tests")
load("//tools/skylark:6996.bzl", "adjust_labels_for_drake_hoist")
package(default_visibility = ["//visibility:public"])
sh_binary(
name = "drake_visualizer",
srcs = select({
"//tools/cc_toolchain:apple": [
"//tools/workspace/drake_visualizer:drake_visualizer_apple.sh",
],
"//conditions:default": [
"//tools/workspace/drake_visualizer:drake_visualizer_linux.sh",
],
}),
data = adjust_labels_for_drake_hoist([
"//drake/bindings/pydrake",
"//drake/examples:prod_models",
"//drake/lcmtypes:lcmtypes_py",
"@drake_visualizer",
"@optitrack_driver//lcmtypes:py_optitrack_lcmtypes",
]),
)
# === config_setting rules ===
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"},
)
# IPOPT is an open-source solver, and is included in the Drake build by
# default. The IPOPT solver is irrelvant 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 irrelvant 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"},
)
# 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()