50 lines
1.6 KiB
Erlang
50 lines
1.6 KiB
Erlang
%% Linked-in driver config
|
|
%%
|
|
%% -*- tab-width: 4;erlang-indent-level: 4;indent-tabs-mode: nil -*-
|
|
%% ex: ft=erlang ts=4 sw=4 et
|
|
%%
|
|
|
|
{require_otp_vsn, "R13B04|R14"}.
|
|
{cover_enabled, true}.
|
|
|
|
{deps, [
|
|
{lager, ".*", {git, "git://github.com/basho/lager", {branch, "master"}}}
|
|
]}.
|
|
|
|
{erl_opts, [warnings_as_errors, {parse_transform, lager_transform}]}.
|
|
|
|
{port_envs, [
|
|
{"DRV_CFLAGS", "$DRV_CFLAGS -Werror -I c_src/system/include"},
|
|
{"DRV_LDFLAGS", "$DRV_LDFLAGS c_src/system/lib/libdb.a"},
|
|
|
|
%% Solaris specific flags
|
|
{"solaris.*-64$", "CFLAGS", "-D_REENTRANT -m64"},
|
|
{"solaris.*-64$", "LDFLAGS", "-m64"},
|
|
|
|
%% OS X Leopard flags for 64-bit
|
|
{"darwin9.*-64$", "CFLAGS", "-m64"},
|
|
{"darwin9.*-64$", "LDFLAGS", "-arch x86_64"},
|
|
|
|
%% OS X Snow Leopard flags for 32-bit
|
|
{"darwin10.*-32$", "CFLAGS", "-m32"},
|
|
{"darwin10.*-32$", "LDFLAGS", "-arch i386"},
|
|
|
|
%% OS X Snow Leopard flags for 64-bit
|
|
{"darwin10.*-64$", "CFLAGS", "-m64"},
|
|
{"darwin10.*-64$", "LDFLAGS", "-arch x86_64"},
|
|
|
|
%% OS X Lion flags for 32-bit
|
|
{"darwin11.*-32$", "CFLAGS", "-m32"},
|
|
{"darwin11.*-32$", "LDFLAGS", "-arch i386"},
|
|
|
|
%% OS X Lion flags for 64-bit
|
|
{"darwin11.*-64$", "CFLAGS", "-m64"},
|
|
{"darwin11.*-64$", "LDFLAGS", "-arch x86_64"}
|
|
]}.
|
|
|
|
{pre_hooks, [{compile, "make -C c_src"}]}.
|
|
{post_hooks, [{clean, "make -C c_src clean"}]}.
|
|
|
|
{cover_enabled, true}.
|
|
|
|
{ct_extra_params, "-boot start_sasl -s snmp"}.
|