msgpack-erlang/rebar.config

24 lines
847 B
Plaintext
Raw Permalink Normal View History

2013-02-16 17:16:55 +00:00
{erl_opts, [fail_on_warning, debug_info, warn_untyped_record]}.
{xref_checks, [undefined_function_calls]}.
{cover_enabled, true}.
2011-05-04 05:24:43 +00:00
{cover_print_enabled, false}.
2013-02-16 17:16:55 +00:00
{edoc_opts, [{dialyzer_specs, all}]}.
2011-05-06 02:21:49 +00:00
{validate_app_modules, true}.
2013-02-16 17:16:55 +00:00
2013-12-26 02:34:26 +00:00
{erl_first_files, [
"src/msgpack_ext.erl"
]}.
2014-01-16 13:36:25 +00:00
{port_sources, ["c_src/*.c"]}.
{port_env, [
%% Make sure to set -fPIC when compiling leveldb
{"CFLAGS", "$CFLAGS -Wall -O3 -fPIC"},
{"CXXFLAGS", "$CXXFLAGS -Wall -O3 -fPIC"},
{"DRV_CFLAGS", "$DRV_CFLAGS -O3 -Wall -I c_src/msgpack-0.5.8/src"},
{"DRV_LDFLAGS", "$DRV_LDFLAGS c_src/msgpack-0.5.8/src/.libs/libmsgpack.a"}
]}.
2013-02-16 17:16:55 +00:00
2014-01-16 13:36:25 +00:00
{pre_hooks, [{compile, "sh c_src/build.sh"}]}.
{post_hooks, [{clean, "rm -rf c_src/msgpack-0.5.8"}]}.