forked from rabbitmq/rules_erlang
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathxref2.bzl
40 lines (38 loc) · 850 Bytes
/
xref2.bzl
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
load(
"//private:xref2.bzl",
"xref_query",
"xref_test",
)
load(
":xref.bzl",
_XREF_TAG = "XREF_TAG",
)
XREF_TAG = _XREF_TAG
def xref(
name = "xref",
target = ":erlang_app",
size = "small",
tags = [],
**kwargs):
xref_test(
name = name,
target = target,
is_windows = select({
"@bazel_tools//src/conditions:host_windows": True,
"//conditions:default": False,
}),
size = size,
tags = tags + [XREF_TAG],
**kwargs
)
xref_query(
name = name + "-query",
testonly = True,
target = target,
is_windows = select({
"@bazel_tools//src/conditions:host_windows": True,
"//conditions:default": False,
}),
tags = tags,
**kwargs
)