forked from erlyaws/yaws
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathrebar.config
41 lines (30 loc) · 1.11 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
%% -*- mode: erlang;erlang-indent-level: 4;indent-tabs-mode: nil -*-
%% ex: ft=erlang ts=4 sw=4 et
{require_min_otp_vsn, "R17"}.
{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.10.2"}}}
]}.
{provider_hooks, [
{pre, [{compile, {pc, compile}},
{clean, {pc, clean}}]}
]}.
{profiles, [
{dev, [
{plugins, [
{ibrowse, {git,"git://github.com/cmullaparthi/ibrowse.git", {tag,"v3.0.4"}}}
]}
]}
]}.