blob: 4a91f0f74ca48f0791814f737223d75f7e126e89 [file] [log] [blame]
{erl_opts, [
deterministic
]}.
{deps, []}.
{profiles, [
{test, [
{erl_opts, []},
{deps, [
{base16, "2.0.1"},
{proper, "1.4.0"}
]},
{plugins, [
{rebar3_codecov, "0.6.0"}]},
{port_env,
[
{"(linux|solaris|freebsd|netbsd|openbsd|dragonfly|darwin|gnu)",
"$CFLAGS -std=c99 -O0 -g -Wall -Wextra -fPIC --coverage"},
{"(linux|solaris|freebsd|netbsd|openbsd|dragonfly|darwin|gnu)",
"$LDLIBS -lcrypto --coverage"}
]
}
]}
]
}.
{plugins, [pc]}.
{port_env,
[
{"(linux|solaris|freebsd|netbsd|openbsd|dragonfly|darwin|gnu)",
"CFLAGS", "$CFLAGS -std=c99 -O3 -g -Wall -Wextra -fPIC"},
{"(linux|solaris|freebsd|netbsd|openbsd|dragonfly|darwin|gnu)",
"LDLIBS", "$LDLIBS -lcrypto"},
{"win32", "CFLAGS", "$CFLAGS /I${OPENSSL_INSTALL_DIR}/include /O2 /DNDEBUG /Wall"},
{"win32", "LDLIBS", "$LDLIBS /LIBPATH:${OPENSSL_INSTALL_DIR}/lib libcrypto.lib"},
{"DRV_LINK_TEMPLATE", "$DRV_LINK_TEMPLATE $LDLIBS"}
]
}.
{port_specs,
[
{
% Any arch
".*",
% Create library
"priv/fast_pbkdf2.so",
% From files
["c_src/*.c"]
}
]}.
{provider_hooks,
[
{post,
[
{compile, {pc, compile}},
{clean, {pc, clean}}
]}
]}.
{cover_enabled, true}.
{cover_export_enabled, true}.
{project_plugins, [
rebar3_hex,
rebar3_ex_doc
]}.
{hex, [{doc, ex_doc}]}.
{ex_doc, [
{source_url, <<"https://github.com/esl/fast_pbkdf2">>}
]}.