forked from rabbitmq/ra
-
Notifications
You must be signed in to change notification settings - Fork 0
/
BUILD.bazel
64 lines (53 loc) · 1.03 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
load("@rules_erlang//:erlang_app.bzl", "erlang_app", "test_erlang_app")
load("@rules_erlang//:xref.bzl", "xref")
load("@rules_erlang//:dialyze.bzl", "DEFAULT_PLT_APPS", "dialyze", "plt")
load(":ra.bzl", "ra_suites")
NAME = "ra"
EXTRA_APPS = [
"sasl",
"crypto",
]
FIRST_SRCS = [
"src/ra_machine.erl",
"src/ra_snapshot.erl",
]
DEPS = [
"@gen_batch_server//:erlang_app",
]
RUNTIME_DEPS = [
"@aten//:erlang_app",
]
erlang_app(
app_name = NAME,
extra_apps = EXTRA_APPS,
first_srcs = FIRST_SRCS,
runtime_deps = RUNTIME_DEPS,
deps = DEPS,
)
test_erlang_app(
app_name = NAME,
extra_apps = EXTRA_APPS,
first_srcs = FIRST_SRCS,
runtime_deps = RUNTIME_DEPS,
deps = DEPS,
)
xref()
plt(
name = "base_plt",
apps = DEFAULT_PLT_APPS + EXTRA_APPS + [
"eunit",
"syntax_tools",
"erts",
"kernel",
"stdlib",
"common_test",
"inets",
"mnesia",
"ssh",
"ssl",
],
)
dialyze(
plt = ":base_plt",
)
ra_suites()