Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 30 lines (24 sloc) 1.181 kb
bedbc05 @tuncer 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 Add reltool based release support
tuncer authored
3 {sub_dirs, ["rel"]}.
bedbc05 @tuncer add rebar support (Tuncer Ayaz and Steve Vinoski)
tuncer authored
4
ddfa257 @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 Use file:sendfile/5 if available
tuncer authored
6 {platform_define,
ddfa257 @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 @vinoski treat src warnings as errors
vinoski authored
9 no_debug_info,
7464efc @tuncer Adapt rebar.config to rebar changes
tuncer authored
10 {src_dirs, ["src", "examples/src"]},
e3f358e @vinoski treat src warnings as errors
vinoski authored
11 warnings_as_errors]}.
bedbc05 @tuncer add rebar support (Tuncer Ayaz and Steve Vinoski)
tuncer authored
12
3020ed1 @tuncer 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 add rebar support (Tuncer Ayaz and Steve Vinoski)
tuncer authored
16
7464efc @tuncer 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 @vinoski rebar: use file:sendfile/5 if erts version > R15B
vinoski authored
19 {"R1([1-4]|5[AB]-).*(linux|freebsd|darwin)",
2150708 @tuncer Use file:sendfile/5 if available
tuncer authored
20 "priv/lib/yaws_sendfile_drv.so",
7464efc @tuncer Adapt rebar.config to rebar changes
tuncer authored
21 ["c_src/yaws_sendfile_drv.c", "c_src/hashtable.c"]}]}.
bedbc05 @tuncer 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"}]}.
66f50e6 @vinoski make sure "rebar eunit" passes
vinoski authored
25
26 {deps,
27 [
28 {ibrowse, ".*", {git, "git://github.com/cmullaparthi/ibrowse.git", "HEAD"}}
29 ]}.
Something went wrong with that request. Please try again.