-
Notifications
You must be signed in to change notification settings - Fork 267
/
rebar.config
50 lines (39 loc) · 1.59 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
%% -*- mode: erlang;erlang-indent-level: 4;indent-tabs-mode: nil -*-
%% ex: ft=erlang ts=4 sw=4 et
{require_min_otp_vsn, "23.0"}.
{sub_dirs, ["rel"]}.
{erl_opts, [warnings_as_errors]}.
{extra_src_dirs, ["examples/src"]}.
{port_env, [{"CFLAGS", "$CFLAGS -g -O3 -Wall -I/usr/include/security"},
{"x86_64", "CFLAGS", "$CFLAGS -m$ERLANG_ARCH"},
{"x86_64", "LDFLAGS", "-m$ERLANG_ARCH $LDFLAGS"},
{"i[36]86", "CFLAGS", "$CFLAGS -m$ERLANG_ARCH"},
{"i[36]86", "LDFLAGS", "-m$ERLANG_ARCH $LDFLAGS"}
]}.
{port_specs, [{"priv/lib/epam.so", ["c_src/epam.c"]},
{"priv/lib/setuid_drv.so", ["c_src/setuid_drv.c"]}]}.
{pre_hooks, [{compile, "./scripts/rebar-pre-script"},
{clean, "./scripts/rebar-pre-script clean"}]}.
{plugins, [
{pc, ".*", {git, "https://github.com/blt/port_compiler.git", {tag, "v1.15.0"}}}
]}.
{provider_hooks, [
{pre, [{compile, {pc, compile}},
{clean, {pc, clean}}]}
]}.
{shell, [{apps, [yaws]}]}.
{relx, [{release, {yaws, {git, short}},
[yaws],
{dev_mode, true},
{include_erts, false},
{extended_start_script, true}}]}.
{profiles, [{dev, [{plugins,
[{ibrowse, {git,"git://github.com/cmullaparthi/ibrowse.git", {tag,"v3.0.4"}}}]
},
{relx, [{dev_mode, true},
{include_erts, false}]}]},
{prod, [{erl_opts, [no_debug_info]},
{relx, [{dev_mode, false},
{include_erts, true}]}]},
{test, [{erl_opts, [{i, "test"}]}]}
]}.