forked from AdRoll/zstd-erlang
-
Notifications
You must be signed in to change notification settings - Fork 0
/
rebar.config
43 lines (34 loc) · 1.25 KB
/
rebar.config
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
{erl_opts,
[warn_unused_import,
strict_validation,
warn_export_vars,
debug_info]}.
{minimum_otp_vsn, "21"}.
{deps, []}.
{pre_hooks,
[{"(linux|darwin|solaris)", compile, "make MOREFLAGS=-fPIC -C priv/zstd/lib libzstd.a"},
{"(linux|darwin|solaris)", compile, "make -C c_src"},
{"(freebsd)", compile, "gmake MOREFLAGS=-fPIC -C priv/zstd/lib libzstd.a"},
{"(freebsd)", compile, "gmake -C c_src"}]}.
{post_hooks,
[{"(linux|darwin|solaris)", clean, "make -C c_src clean"},
{"(linux|darwin|solaris)", clean, "make -C priv/zstd/lib clean"},
{"(freebsd)", clean, "gmake -C c_src clean"},
{"(freebsd)", clean, "gmake -C priv/zstd/lib clean"}]}.
{dialyzer,
[{warnings, [no_return, error_handling]},
{plt_apps, top_level_deps},
{plt_extra_apps, []},
{plt_location, local},
{base_plt_apps, [erts, stdlib, kernel]},
{base_plt_location, global}]}.
{xref_checks,
[undefined_function_calls,
locals_not_used,
deprecated_function_calls,
deprecated_functions]}.
{alias, [{test, [format, lint, hank, xref, dialyzer, eunit]}]}.
{project_plugins,
[{rebar3_format, "~> 0.10.0"}, {rebar3_lint, "~> 0.3.2"}, {rebar3_hank, "~> 0.2.1"}]}.
%% @todo Remove this when rebar3_hank reaches 0.3.0
{hank, [{ignore, [{"src/zstd.erl", unused_ignored_function_params}]}]}.