wterl/rebar.config

45 lines
1.3 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, "."}]}}]}.
{erl_opts, [
{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-04-23 19:00:44 +00:00
{"DRV_CFLAGS", "$DRV_CFLAGS -fPIC -Wall -Wextra -Werror -I c_src/system/include"},
{"DRV_LDFLAGS", "$DRV_LDFLAGS -Wl,-rpath,lib/wterl/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"}]}.