-
Notifications
You must be signed in to change notification settings - Fork 0
/
rebar.config
56 lines (50 loc) · 1.5 KB
/
rebar.config
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
{erl_opts, [
debug_info,
fail_on_warning,
{parse_transform, lager_transform},
{i, "./_build/default/plugins/gpb/include"}
]}.
{pre_hooks, [
{"(linux|darwin|solaris)", compile, "make -C c_src"},
{"(freebsd)", compile, "gmake -C c_src"}
]}.
{post_hooks, [
{"(linux|darwin|solaris)", clean, "make -C c_src clean"},
{"(freebsd)", clean, "gmake -C c_src clean"}
]}.
{deps, [
{sync, {git, "https://github.com/rustyio/sync.git", {branch, "master"}}},
{lager, {git, "https://github.com/basho/lager.git", {tag, "3.2.1"}}},
{grpc_client, {git, "https://github.com/vasu-dasari/grpc_client.git", {tag, "master"}}}
]}.
{plugins, [
{rebar3_gpb_plugin, "1.10.0"} % Good practice to specify which version to use
]}.
{gpb_opts, [
{i, "proto"}, % path/to/proto_dir
{module_name_suffix, "_pb"}, % Naming convention, unless you have a good reason just go with it.
{o_erl, "src"}, % Where the generated source is placed
{o_hrl, "include"}, % Where the generated include files are placed
{strings_as_binaries, true},
type_specs
]}.
{provider_hooks, [
{pre, [
{compile, {protobuf, compile}},
{clean, {protobuf, clean}}
]}
]}.
{relx, [
{release, { gobgp, "0.1.0" }, [
sync,
lager,
gobgp,
examples,
sasl
]},
{sys_config, "./config/sys.config"},
{vm_args, "./config/vm.args"},
{dev_mode, true},
{include_erts, false},
{extended_start_script, true}]
}.