forked from sourcegraph/zoekt
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathBUILD.bazel
125 lines (120 loc) · 3.39 KB
/
BUILD.bazel
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
load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test")
# gazelle:prefix github.com/sourcegraph/zoekt
# gazelle:build_file_name BUILD.bazel
load("@bazel_gazelle//:def.bzl", "gazelle")
gazelle(name = "gazelle")
gazelle(
name = "gazelle-update-repos",
args = [
"-from_file=go.mod",
"-to_macro=deps.bzl%go_dependencies",
"-prune",
"-build_file_proto_mode=disable_global",
],
command = "update-repos",
)
go_library(
name = "zoekt",
srcs = [
"api.go",
"bits.go",
"btree.go",
"contentprovider.go",
"eval.go",
"hititer.go",
"indexbuilder.go",
"indexdata.go",
"indexfile.go",
"marshal.go",
"matchiter.go",
"matchtree.go",
"merge.go",
"ngramoffset.go",
"read.go",
"section.go",
"toc.go",
"tombstones.go",
"tombstones_unix.go",
"tombstones_windows.go",
"write.go",
],
importpath = "github.com/sourcegraph/zoekt",
visibility = ["//visibility:public"],
deps = [
"//query",
"@com_github_edsrzf_mmap_go//:mmap-go",
"@com_github_go_enry_go_enry_v2//:go-enry",
"@com_github_go_enry_go_enry_v2//data",
"@com_github_grafana_regexp//:regexp",
"@com_github_rs_xid//:xid",
] + select({
"@io_bazel_rules_go//go/platform:aix": [
"@org_golang_x_sys//unix",
],
"@io_bazel_rules_go//go/platform:android": [
"@org_golang_x_sys//unix",
],
"@io_bazel_rules_go//go/platform:darwin": [
"@org_golang_x_sys//unix",
],
"@io_bazel_rules_go//go/platform:dragonfly": [
"@org_golang_x_sys//unix",
],
"@io_bazel_rules_go//go/platform:freebsd": [
"@org_golang_x_sys//unix",
],
"@io_bazel_rules_go//go/platform:illumos": [
"@org_golang_x_sys//unix",
],
"@io_bazel_rules_go//go/platform:ios": [
"@org_golang_x_sys//unix",
],
"@io_bazel_rules_go//go/platform:js": [
"@org_golang_x_sys//unix",
],
"@io_bazel_rules_go//go/platform:linux": [
"@org_golang_x_sys//unix",
],
"@io_bazel_rules_go//go/platform:netbsd": [
"@org_golang_x_sys//unix",
],
"@io_bazel_rules_go//go/platform:openbsd": [
"@org_golang_x_sys//unix",
],
"@io_bazel_rules_go//go/platform:plan9": [
"@org_golang_x_sys//unix",
],
"@io_bazel_rules_go//go/platform:solaris": [
"@org_golang_x_sys//unix",
],
"//conditions:default": [],
}),
)
go_test(
name = "zoekt_test",
srcs = [
"api_test.go",
"bits_test.go",
"btree_test.go",
"contentprovider_test.go",
"eval_test.go",
"hititer_test.go",
"index_test.go",
"marshal_test.go",
"matchtree_test.go",
"merge_test.go",
"ngramoffset_test.go",
"read_test.go",
"tombstones_test.go",
],
data = [":testdata"],
embed = [":zoekt"],
deps = [
"//query",
"@com_github_google_go_cmp//cmp",
"@com_github_google_go_cmp//cmp/cmpopts",
"@com_github_grafana_regexp//:regexp",
"@com_github_kylelemons_godebug//pretty",
"@com_github_roaringbitmap_roaring//:roaring",
],
)