forked from paulgray/exml
-
Notifications
You must be signed in to change notification settings - Fork 23
/
rebar.config
63 lines (56 loc) · 1.28 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
{deps, []}.
{dialyzer,
[{warnings,
[unknown,
unmatched_returns,
error_handling,
underspecs
]}]}.
{profiles, [
{test, [
{deps, [
{proper, "1.4.0"}
]},
{plugins, [
{rebar3_codecov, "0.6.0"}
]},
{port_env, [
{"CXXFLAGS", "$CXXFLAGS -O3 -std=c++11 -g -Wall -Wextra -fPIC --coverage"},
{"LDFLAGS", "$LDFLAGS --coverage"}
]},
{cover_enabled, true},
{cover_export_enabled, true}
]}
]}.
{project_plugins, [rebar3_hex, rebar3_ex_doc]}.
{plugins, [pc]}.
% Interrupt compilation, if the artifact is not found
{artifacts, ["priv/exml_nif.so"]}.
{port_specs, [
{
% Any arch
".*",
% Create library
"priv/exml_nif.so",
% From files
["c_src/*.cpp"],
% Using options
[{env, [{"CXXFLAGS", "$CXXFLAGS -O3 -std=c++11 -Wall -Wextra"}]}]
}
]}.
{provider_hooks, [
{post, [
{compile, {pc, compile}},
{clean, {pc, clean}}
]}
]}.
{hex, [
{doc, #{provider => ex_doc}}
]}.
{ex_doc, [
{source_url, <<"https://github.com/esl/exml">>},
{main, <<"readme">>},
{extras, [{'README.md', #{title => <<"README">>}},
{'LICENSE', #{title => <<"License">>}}
]}
]}.