Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 25 lines (20 sloc) 1.087 kb
bedbc05 Tuncer Ayaz add rebar support (Tuncer Ayaz and Steve Vinoski)
tuncer authored
1 %% -*- mode: erlang;erlang-indent-level: 4;indent-tabs-mode: nil -*-
2 %% ex: ft=erlang ts=4 sw=4 et
b6b9d87 Tuncer Ayaz Add reltool based release support
tuncer authored
3 {sub_dirs, ["rel"]}.
bedbc05 Tuncer Ayaz add rebar support (Tuncer Ayaz and Steve Vinoski)
tuncer authored
4
ddfa257 Steve Vinoski rebar: use file:sendfile/5 if erts version > R15B
vinoski authored
5 {erl_opts, [%% OTP R11 - R15B -> yaws_sendfile_drv or compat_send
2150708 Tuncer Ayaz Use file:sendfile/5 if available
tuncer authored
6 {platform_define,
ddfa257 Steve Vinoski rebar: use file:sendfile/5 if erts version > R15B
vinoski authored
7 "R1([1-4]|5[AB]-).*(linux|freebsd|darwin)", 'HAVE_YAWS_SENDFILE'},
8 {platform_define, "R1([1-4]|5[AB]-)", 'NO_FILE_SENDFILE'},
e3f358e Steve Vinoski treat src warnings as errors
vinoski authored
9 no_debug_info,
7464efc Tuncer Ayaz Adapt rebar.config to rebar changes
tuncer authored
10 {src_dirs, ["src", "examples/src"]},
e3f358e Steve Vinoski treat src warnings as errors
vinoski authored
11 warnings_as_errors]}.
bedbc05 Tuncer Ayaz add rebar support (Tuncer Ayaz and Steve Vinoski)
tuncer authored
12
3020ed1 Tuncer Ayaz Update rebar.config: port_envs -> port_env
tuncer authored
13 {port_env, [{"CFLAGS", "$CFLAGS -g -O3 -Wall -I/usr/include/security"},
14 {"R1([1-4]|5[AB]-).*(linux|freebsd|darwin)",
15 "DRV_CFLAGS", "$DRV_CFLAGS -DHAVE_YAWS_SENDFILE"}]}.
bedbc05 Tuncer Ayaz add rebar support (Tuncer Ayaz and Steve Vinoski)
tuncer authored
16
7464efc Tuncer Ayaz Adapt rebar.config to rebar changes
tuncer authored
17 {port_specs, [{"priv/lib/epam.so", ["c_src/epam.c"]},
18 {"priv/lib/setuid_drv.so", ["c_src/setuid_drv.c"]},
ddfa257 Steve Vinoski rebar: use file:sendfile/5 if erts version > R15B
vinoski authored
19 {"R1([1-4]|5[AB]-).*(linux|freebsd|darwin)",
2150708 Tuncer Ayaz Use file:sendfile/5 if available
tuncer authored
20 "priv/lib/yaws_sendfile_drv.so",
7464efc Tuncer Ayaz Adapt rebar.config to rebar changes
tuncer authored
21 ["c_src/yaws_sendfile_drv.c", "c_src/hashtable.c"]}]}.
bedbc05 Tuncer Ayaz add rebar support (Tuncer Ayaz and Steve Vinoski)
tuncer authored
22
23 {pre_hooks, [{compile, "./scripts/rebar-pre-script"},
24 {clean, "./scripts/rebar-pre-script clean"}]}.
Something went wrong with that request. Please try again.