forked from TUBITAK-TUTEL/verible
-
Notifications
You must be signed in to change notification settings - Fork 0
/
BUILD
56 lines (49 loc) · 1.72 KB
/
BUILD
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
# Toplevel build-file for Verible libraries and tools.
# To compile the tools, invoke
# bazel build ...
# Run tests with
# bazel test ...
load("@com_github_google_rules_install//installer:def.bzl", "installer")
licenses(["notice"]) # Apache 2.0
exports_files([
"LICENSE",
])
installer(
name = "install",
data = [
"//common/tools:verible-patch-tool",
"//common/tools:verible-transform-interactive",
"//verilog/tools/diff:verible-verilog-diff",
"//verilog/tools/formatter:git-verilog-format",
"//verilog/tools/formatter:verible-verilog-format",
"//verilog/tools/formatter:verible-verilog-format-changed-lines-interactive",
"//verilog/tools/kythe:verible-verilog-kythe-extractor",
"//verilog/tools/lint:verible-verilog-lint",
"//verilog/tools/obfuscator:verible-verilog-obfuscate",
"//verilog/tools/preprocessor:verible-verilog-preprocessor",
"//verilog/tools/project:verible-verilog-project",
"//verilog/tools/syntax:verible-verilog-syntax",
],
)
genrule(
name = "lint_doc",
outs = ["documentation_verible_lint_rules.md"],
cmd = "$(location //verilog/tools/lint:verible-verilog-lint) " +
"--generate_markdown > $(OUTS)",
tools = [
"//verilog/tools/lint:verible-verilog-lint",
],
)
extra_action(
name = "extractor",
cmd = ("/opt/kythe/extractors/bazel_cxx_extractor " +
"$(EXTRA_ACTION_FILE) $(output $(ACTION_ID).cxx.kzip) $(location :vnames.json)"),
data = [":vnames.json"],
out_templates = ["$(ACTION_ID).cxx.kzip"],
)
action_listener(
name = "extract_cxx",
extra_actions = [":extractor"],
mnemonics = ["CppCompile"],
visibility = ["//visibility:public"],
)