forked from esl/erlzmq
-
Notifications
You must be signed in to change notification settings - Fork 2
/
rebar.config
37 lines (32 loc) · 852 Bytes
/
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
{erl_opts, [debug_info, warnings_as_errors]}.
{deps, []}.
{project_plugins, [rebar3_hex]}.
%% Compile nif using port compiler plugin
{plugins, [{pc, "~> 1.15"}]}.
{artifacts, ["priv/erlzmq_nif.so"]}.
{port_env, [{"CFLAGS", "$CFLAGS -I/usr/local/include -I./include -g -Wall -Werror"},
{"LDFLAGS", "$LDFLAGS -L/usr/local/lib -lzmq"}]}.
{port_specs, [{ "priv/erlzmq_nif.so", ["c_src/*.c"] }]}.
%% {profiles, [
%% {docs, [{edoc_opts, [{preprocess, true},
%% {doclet, edoc_doclet_chunks},
%% {layout, edoc_layout_chunks},
%% {dir, "_build/default/lib/erlzmq/doc"}]}
%% ]}
%% ]}.
{provider_hooks,
[
{pre,
[
{compile, {pc, compile}},
{clean, {pc, clean}}
]
}
]
}.
{eunit_opts, [
verbose
]}.
{hex, [
{doc, #{provider => edoc}}
]}.