forked from chipsalliance/verible
-
Notifications
You must be signed in to change notification settings - Fork 0
/
BUILD
91 lines (83 loc) · 2.4 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
# This package contains a SystemVerilog language server [1] implementation.
#
# [1]: https://microsoft.github.io/language-server-protocol/specification
load("//bazel:sh_test_with_runfiles_lib.bzl", "sh_test_with_runfiles_lib")
licenses(["notice"])
package(
default_visibility = [
"//:__subpackages__",
],
)
cc_library(
name = "lsp-parse-buffer",
srcs = ["lsp-parse-buffer.cc"],
hdrs = ["lsp-parse-buffer.h"],
deps = [
"//common/lsp:lsp-text-buffer",
"//verilog/analysis:verilog_analyzer",
"//verilog/analysis:verilog_linter",
"@com_google_absl//absl/status",
],
)
cc_library(
name = "verible-lsp-adapter",
srcs = ["verible-lsp-adapter.cc"],
hdrs = ["verible-lsp-adapter.h"],
deps = [
":document-symbol-filler",
":lsp-parse-buffer",
"//common/lsp:lsp-protocol",
"//common/lsp:lsp-protocol-operators",
"//common/text:text_structure",
"//verilog/analysis:verilog_analyzer",
"//verilog/analysis:verilog_linter",
"//verilog/parser:verilog_token_enum",
"//verilog/formatting:formatter",
"//verilog/formatting:format_style_init",
"@jsonhpp",
],
)
cc_library(
name = "document-symbol-filler",
srcs = ["document-symbol-filler.cc"],
hdrs = ["document-symbol-filler.h"],
deps = [
"//common/lsp:lsp-protocol",
"//common/lsp:lsp-protocol-enums",
"//common/text:text_structure",
"//common/text:visitors",
"//common/util:value_saver",
"//verilog/CST:class",
"//verilog/CST:functions",
"//verilog/CST:module",
"//verilog/CST:package",
"//verilog/CST:seq_block",
],
)
cc_binary(
name = "verible-verilog-ls",
srcs = ["verilog_ls.cc"],
visibility = ["//visibility:public"],
deps = [
":lsp-parse-buffer",
":verible-lsp-adapter",
"//common/lsp:json-rpc-dispatcher",
"//common/lsp:lsp-protocol",
"//common/lsp:message-stream-splitter",
"//common/util:init_command_line",
],
)
sh_test_with_runfiles_lib(
name = "verible-verilog-ls_test",
size = "small",
srcs = ["verible-verilog-ls_test.sh"],
args = [
"$(location :verible-verilog-ls)",
"$(location //common/lsp:json-rpc-expect)",
],
data = [
":verible-verilog-ls",
"//common/lsp:json-rpc-expect",
],
deps = [],
)