wterl/rebar.config

47 lines
1.4 KiB
Text
Raw Normal View History

2012-10-26 14:25:02 +00:00
%%-*- mode: erlang -*-
%% ex: ft=erlang ts=4 sw=4 et
2013-03-14 17:33:34 +00:00
{require_otp_vsn, "R1[567]"}.
2013-03-14 17:33:34 +00:00
{cover_enabled, true}.
%{eunit_opts, [verbose, {report, {eunit_surefire, [{dir, "."}]}}]}.
2013-03-14 17:33:34 +00:00
{erl_opts, [
%native, {hipe, [o3,verbose]}, inline, {inline_size, 1024},
{parse_transform, lager_transform},
debug_info,
{d,'DEBUG',true},
strict_validation,
fail_on_warning,
%warn_missing_spec,
2013-03-14 17:33:34 +00:00
warn_bif_clash,
warn_deprecated_function,
warn_export_all,
2013-03-14 17:33:34 +00:00
warn_export_vars,
warn_exported_vars,
warn_obsolete_guard,
warn_shadow_vars,
2013-03-14 17:33:34 +00:00
warn_untyped_record,
warn_unused_function,
warn_unused_import,
warn_unused_record,
warn_unused_vars
2013-03-14 17:33:34 +00:00
]}.
{xref_checks, [undefined_function_calls, deprecated_function_calls]}.
2013-03-14 17:33:34 +00:00
{deps, [
{lager, "2.*", {git, "git://github.com/basho/lager", {branch, "master"}}}
2013-03-14 17:33:34 +00:00
]}.
{port_specs, [{"priv/wterl.so", ["c_src/*.c"]}]}.
2012-10-26 13:20:08 +00:00
{port_env, [
2013-10-13 01:48:05 +00:00
{"DRV_CFLAGS", "$DRV_CFLAGS -O3 -mtune=native -march=native -fPIC -Wall -Wextra -Werror -I c_src/system/include"},
2013-10-02 18:41:06 +00:00
{"DRV_LDFLAGS", "$DRV_LDFLAGS -Wl,-rpath,lib/wterl/priv:lib/wterl-0.9.0/priv:priv -Lc_src/system/lib -lwiredtiger"}
2012-10-26 14:25:02 +00:00
]}.
2011-12-18 20:54:46 +00:00
{pre_hooks, [{compile, "c_src/build_deps.sh compile"}]}.
2011-12-18 20:54:46 +00:00
{post_hooks, [{clean, "c_src/build_deps.sh clean"}]}.