-
Notifications
You must be signed in to change notification settings - Fork 0
/
BUILD
53 lines (49 loc) · 1.52 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
load("@rules_python//python:defs.bzl", "py_binary", "py_library", "py_test")
py_library(
name = "verible-verilog-syntax-py",
srcs = ["verible_verilog_syntax.py"],
data = ["//verilog/tools/syntax:verible-verilog-syntax"],
imports = ["."],
srcs_version = "PY3",
deps = [
"//third_party/py/dataclasses",
"@python_anytree//:anytree",
],
)
py_test(
name = "verible-verilog-syntax-py_test",
size = "small",
srcs = ["verible_verilog_syntax_test.py"],
args = ["$(location //verilog/tools/syntax:verible-verilog-syntax)"],
data = ["//verilog/tools/syntax:verible-verilog-syntax"],
main = "verible_verilog_syntax_test.py",
python_version = "PY3",
srcs_version = "PY3",
deps = [":verible-verilog-syntax-py"],
)
py_binary(
name = "print-modules",
srcs = ["print_modules.py"],
args = ["$(location //verilog/tools/syntax:verible-verilog-syntax)"],
data = ["//verilog/tools/syntax:verible-verilog-syntax"],
main = "print_modules.py",
python_version = "PY3",
srcs_version = "PY3",
deps = [
":verible-verilog-syntax-py",
"@python_anytree//:anytree",
],
)
py_binary(
name = "print-tree",
srcs = ["print_tree.py"],
args = ["$(location //verilog/tools/syntax:verible-verilog-syntax)"],
data = ["//verilog/tools/syntax:verible-verilog-syntax"],
main = "print_tree.py",
python_version = "PY3",
srcs_version = "PY3",
deps = [
":verible-verilog-syntax-py",
"@python_anytree//:anytree",
],
)