forked from gen-smtp/gen_smtp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrebar.config
46 lines (40 loc) · 1.17 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
%% -*- mode: erlang; -*-
{require_min_otp_vsn, "R16"}.
{erl_opts, [fail_on_warning,
debug_info,
warn_unused_vars,
warn_unused_import,
warn_exported_vars,
{platform_define, "^((1[89])|2)", deprecated_now}]}.
{profiles,
[
{test,
[
{cover_enabled, true},
{cover_print_enabled, true},
{deps,
[
{eiconv, ".*", {git, "git://github.com/zotonic/eiconv.git", {branch, "master"}}}
]
},
{overrides,
[{override, eiconv,
[
{plugins, [pc]},
{port_env, [{"darwin|freebsd|openbsd", "LDFLAGS", "$LDFLAGS -liconv"},
{"freebsd|openbsd", "CFLAGS", "$CFLAGS -I/usr/local/include"},
{"freebsd|openbsd", "LDFLAGS", "$LDFLAGS -L/usr/local/lib"}]},
{port_specs, [{"priv/eiconv_nif.so", ["c_src/*.c"]}]},
{artifacts, ["priv/eiconv_nif.so"]},
{provider_hooks, [
{post,
[
{compile, {pc, compile}},
{clean, {pc, clean}}
]
}]
}
]}
]}
]}
]}.