-
Notifications
You must be signed in to change notification settings - Fork 2
/
BUILD.bazel
72 lines (60 loc) · 1.71 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
# -*- python -*-
# This file is named BUILD.bazel instead of the more typical BUILD, so that on
# OSX it won't conflict with a build artifacts directory named "build".
load("@drake//tools/install:install.bzl", "install", "install_test")
load("//tools/lint:lint.bzl", "add_lint_tests")
package(
default_visibility = ["//visibility:public"],
)
exports_files([
"CPPLINT.cfg",
".bazelproject",
".clang-format",
".drake-find_resource-sentinel",
])
alias(
name = "protoc",
actual = "@com_google_protobuf//:protoc",
)
alias(
name = "protobuf",
actual = "@com_google_protobuf//:protobuf",
)
alias(
name = "protobuf_python",
actual = "@com_google_protobuf//:protobuf_python",
)
# Drake's top-level module; all drake_py_stuff rules add this to deps.
# (We use py_library here because drake_py_library would be circular.)
# This file should NOT be installed (see commits in __init__.py).
py_library(
name = "module_py",
srcs = ["__init__.py"],
)
_INSTALL_TEST_COMMANDS = "install_test_commands"
install(
name = "install",
install_tests_script = _INSTALL_TEST_COMMANDS,
docs = ["LICENSE.TXT"],
deps = [
"//automotive/models:install_data",
"//bindings/pydrake:install",
"//common:install",
"//common/proto:install",
"//examples:install",
"//lcmtypes:install",
"//manipulation/models:install_data",
"//setup:install",
"//tools/install/libdrake:install",
"//tools/workspace:install_external_packages",
],
)
install_test(
name = "install_test",
args = ["$(location :" + _INSTALL_TEST_COMMANDS + ")"],
data = [
":install",
_INSTALL_TEST_COMMANDS,
],
)
add_lint_tests()