-
Notifications
You must be signed in to change notification settings - Fork 7
/
rebar.config
74 lines (65 loc) · 1.73 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
65
66
67
68
69
70
71
72
73
74
{erl_opts, [
deterministic
]}.
{deps, []}.
{profiles, [
{test, [
{erl_opts, []},
{deps, [
{base16, "2.0.1"},
{proper, "1.4.0"}
]},
{cover_enabled, true},
{cover_export_enabled, true},
{plugins, [
{rebar3_codecov, "0.7.0"}]},
{port_env,
[
{"(linux|solaris|freebsd|netbsd|openbsd|dragonfly|darwin|gnu)",
"CFLAGS", "$CFLAGS -std=c99 -O0 -g -Wall -Wextra -Wundef -Werror=undef -fPIC -I/opt/homebrew/include -I/usr/local/include --coverage"},
{"(linux|solaris|freebsd|netbsd|openbsd|dragonfly|darwin|gnu)",
"LDLIBS", "$LDLIBS -lcrypto -L/opt/homebrew/lib/ -L/usr/local/lib --coverage"}
]
}
]}
]
}.
{plugins, [pc]}.
{port_env,
[
{"(linux|solaris|freebsd|netbsd|openbsd|dragonfly|darwin|gnu)",
"CFLAGS", "$CFLAGS -std=c99 -O3 -g -Wall -Wextra -Wundef -Werror=undef -fPIC -I/opt/homebrew/include -I/usr/local/include"},
{"(linux|solaris|freebsd|netbsd|openbsd|dragonfly|darwin|gnu)",
"LDLIBS", "$LDLIBS -lcrypto -L/opt/homebrew/lib/ -L/usr/local/lib"},
{"win32", "CFLAGS", "$CFLAGS /I${OPENSSL_INSTALL_DIR}/include /O2 /DNDEBUG /Wall"},
{"win32", "LDLIBS", "$LDLIBS /LIBPATH:${OPENSSL_INSTALL_DIR}/lib libcrypto.lib"},
{"DRV_LINK_TEMPLATE", "$DRV_LINK_TEMPLATE $LDLIBS"}
]
}.
{port_specs,
[
{
% Any arch
".*",
% Create library
"priv/fast_pbkdf2.so",
% From files
["c_src/*.c"]
}
]}.
{provider_hooks,
[
{post,
[
{compile, {pc, compile}},
{clean, {pc, clean}}
]}
]}.
{project_plugins, [
rebar3_hex,
rebar3_ex_doc
]}.
{hex, [{doc, ex_doc}]}.
{ex_doc, [
{source_url, <<"https://github.com/esl/fast_pbkdf2">>}
]}.