-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathrebar.config
64 lines (50 loc) · 1.57 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
57
58
59
60
61
62
63
64
%%
%% erlang compilation configuration
%%
{erl_first_files, [
"src/executor.erl","src/scheduler.erl"
]}.
{erl_opts, [debug_info,
fail_on_warning,
warnings_as_errors
]}.
%%
%% eunit configuration
%%
{cover_enabled , true}.
{cover_print_enabled , true}.
{eunit_opts, [verbose,
{report, {eunit_surefire, [{dir, "."}]}}]}.
%%
%% nif compilation configuration
%%
{port_sources, ["c_src/*.c", "c_src/*.cpp"]}.
{port_envs, [
{"(linux|solaris)", "LDFLAGS", "$LDFLAGS -lstdc++ /usr/local/lib/libmesos.so"},
{"CXXFLAGS", "$CXXFLAGS -Wall -O2 -static -std=c++11 -I/usr/local/include -I/usr/local/include/mesos -L/usr/local/lib -L/usr/lib "}]
}.
{port_specs, [{"priv/executor.so", ["c_src/executor.c", "c_src/*.cpp"]},
{"priv/scheduler.so", ["c_src/scheduler.c", "c_src/*.cpp"]}
]}.
%
% protobuffer compilation configuration
%
{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 -modsuffix _pb -il"
" -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'"}
]}.
{deps, [
{gpb , ".*", {git, "git://github.com/tomas-abrahamsson/gpb.git", {tag, "3.17.2"}} },
{meck, ".*", {git, "https://github.com/eproxus/meck.git", {tag, "0.8.2"}}}
]}.