-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrebar.config
More file actions
34 lines (28 loc) · 866 Bytes
/
rebar.config
File metadata and controls
34 lines (28 loc) · 866 Bytes
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
%%-*- mode: erlang -*-
{pre_hooks,
[{compile, "mkdir -p include"}, %% ensure the include dir exists
{compile,
"erl +B -noinput -pa deps/gpb/ebin "
" -I`pwd`/proto -o-erl src -o-hrl include "
" -s gpb_compile c `pwd`/proto/*.proto"
}]}.
{post_hooks,
[{clean,
"bash -c 'for f in proto/*.proto; "
"do "
" rm -f src/$(basename $f .proto).erl; "
" rm -f include/$(basename $f .proto).hrl; "
"done'"}
]}.
{sub_dirs, [
"rel"
]}.
{erl_opts, [{i, "deps/gpb/include"}]}. %, fail_on_warning]}.
{deps_dir, ["deps"]}.
{deps,
[
{gpb, ".*", {git, "https://github.com/tomas-abrahamsson/gpb.git", {tag, "3.12.1"}}},
{sharded_eredis, ".*", {git, "https://github.com/jeremyong/sharded_eredis.git", {branch, "master"}}},
{uuid, ".*", {git, "https://github.com/okeuday/uuid.git", {tag, "v1.3.2"}}}
]
}.