forked from chipsalliance/verible
-
Notifications
You must be signed in to change notification settings - Fork 2
/
BUILD
52 lines (48 loc) · 1.73 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
# 'verilog_syntax' is a program for checking Verilog/SystemVerilog syntax.
load("//bazel:sh_test_with_runfiles_lib.bzl", "sh_test_with_runfiles_lib")
load("//bazel:variables.bzl", "STATIC_EXECUTABLES_FEATURE")
cc_binary(
name = "verible-verilog-syntax",
srcs = ["verilog_syntax.cc"],
features = STATIC_EXECUTABLES_FEATURE,
visibility = ["//visibility:public"], # for verilog_style_lint.bzl
deps = [
"//common/strings:compare",
"//common/strings:mem-block",
"//common/text:concrete-syntax-tree",
"//common/text:parser-verifier",
"//common/text:text-structure",
"//common/text:token-info",
"//common/text:token-info-json",
"//common/util:bijective-map",
"//common/util:enum-flags",
"//common/util:file-util",
"//common/util:init-command-line",
"//common/util:logging",
"//verilog/CST:verilog-tree-json",
"//verilog/CST:verilog-tree-print",
"//verilog/analysis:json-diagnostics",
"//verilog/analysis:verilog-analyzer",
"//verilog/analysis/checkers:verilog-lint-rules",
"//verilog/parser:verilog-parser",
"//verilog/parser:verilog-token",
"//verilog/parser:verilog-token-classifications",
"@com_google_absl//absl/flags:flag",
"@com_google_absl//absl/status",
"@com_google_absl//absl/strings",
"@com_google_absl//absl/types:span",
"@jsonhpp",
],
)
sh_binary(
name = "triage-parser",
srcs = ["triage_parser.sh"],
)
sh_test_with_runfiles_lib(
name = "verilog-syntax_test",
size = "small",
srcs = ["verilog_syntax_test.sh"],
args = ["$(location :verible-verilog-syntax)"],
data = [":verible-verilog-syntax"],
deps = [],
)