forked from chipsalliance/verible
-
Notifications
You must be signed in to change notification settings - Fork 0
/
BUILD
143 lines (126 loc) · 4.19 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
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
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
# 'verilog_format' is a SystemVerilog source code formatter.
#
load("//bazel:sh_test_with_runfiles_lib.bzl", "sh_test_with_runfiles_lib")
load("//bazel:variables.bzl", "STATIC_EXECUTABLES_FEATURE")
package(
default_applicable_licenses = ["//:license"],
default_visibility = ["//visibility:private"],
features = ["layering_check"],
)
cc_binary(
name = "verible-verilog-format",
srcs = ["verilog_format.cc"],
features = STATIC_EXECUTABLES_FEATURE,
visibility = ["//visibility:public"], # for verilog_style_lint.bzl
deps = [
"//common/strings:position",
"//common/util:file-util",
"//common/util:init-command-line",
"//common/util:interval-set",
"//common/util:iterator-range",
"//verilog/formatting:format-style",
"//verilog/formatting:format-style-init",
"//verilog/formatting:formatter",
"@com_google_absl//absl/flags:flag",
"@com_google_absl//absl/flags:usage",
"@com_google_absl//absl/status",
"@com_google_absl//absl/status:statusor",
"@com_google_absl//absl/strings",
"@com_google_absl//absl/strings:string_view",
],
)
# This script is intended to run post-install and expect to be co-located with:
# //verilog/tools/formatter:verible-verilog-format
# //common/tools:verible-patch-tool
filegroup(
name = "git-verilog-format",
srcs = ["git-verible-verilog-format.sh"],
visibility = ["//:__pkg__"], # for release
)
# This script is intended to run post-install and expect to be co-located with:
# //verilog/tools/formatter:verible-verilog-format
# //common/tools:verible-patch-tool
# //common/tools:verible-transform-interactive
filegroup(
name = "verible-verilog-format-changed-lines-interactive",
srcs = ["verible-verilog-format-changed-lines-interactive.sh"],
visibility = ["//:__pkg__"], # for release
)
sh_binary(
name = "diff-formatter",
srcs = ["diff_formatter.sh"],
)
sh_binary(
name = "triage-formatter",
srcs = ["triage_formatter.sh"],
)
sh_test_with_runfiles_lib(
name = "format-file_test",
size = "small",
srcs = ["format_file_test.sh"],
args = ["$(location :verible-verilog-format)"],
data = [":verible-verilog-format"],
)
sh_test_with_runfiles_lib(
name = "format-file-check_test",
size = "small",
srcs = ["format_file_check_test.sh"],
args = ["$(location :verible-verilog-format)"],
data = [":verible-verilog-format"],
)
sh_test_with_runfiles_lib(
name = "format-file-nochange-check_test",
size = "small",
srcs = ["format_file_check_nochange_test.sh"],
args = ["$(location :verible-verilog-format)"],
data = [":verible-verilog-format"],
)
sh_test_with_runfiles_lib(
name = "format-file-lex-error_test",
size = "small",
srcs = ["format_file_lex_error_test.sh"],
args = ["$(location :verible-verilog-format)"],
data = [":verible-verilog-format"],
)
sh_test_with_runfiles_lib(
name = "format-file-syntax-error_test",
size = "small",
srcs = ["format_file_syntax_error_test.sh"],
args = ["$(location :verible-verilog-format)"],
data = [":verible-verilog-format"],
)
sh_test_with_runfiles_lib(
name = "format-file-lines_test",
size = "small",
srcs = ["format_file_lines_test.sh"],
args = ["$(location :verible-verilog-format)"],
data = [":verible-verilog-format"],
)
sh_test_with_runfiles_lib(
name = "format-file-badlines_test",
size = "small",
srcs = ["format_file_badlines_test.sh"],
args = ["$(location :verible-verilog-format)"],
data = [":verible-verilog-format"],
)
sh_test_with_runfiles_lib(
name = "format-inplace_test",
size = "small",
srcs = ["format_inplace_test.sh"],
args = ["$(location :verible-verilog-format)"],
data = [":verible-verilog-format"],
)
sh_test_with_runfiles_lib(
name = "format-stdin_test",
size = "small",
srcs = ["format_stdin_test.sh"],
args = ["$(location :verible-verilog-format)"],
data = [":verible-verilog-format"],
)
sh_test_with_runfiles_lib(
name = "format-stdin-inplace_test",
size = "small",
srcs = ["format_stdin_inplace_test.sh"],
args = ["$(location :verible-verilog-format)"],
data = [":verible-verilog-format"],
)