Current section
Files
Jump to
Current section
Files
rebar.config
{erl_opts, [debug_info, warnings_as_errors]}.
{project_plugins, [rebar3_ex_doc]}.
{hex, [
{doc, #{provider => ex_doc}}
]}.
{pre_hooks, [
{clean, "rm -f priv/*.so"},
{clean, "rm -rf _build/cmake"},
{"(linux|darwin|solaris)", compile, "./do_cmake.sh $IOMMAP_OPTS"},
{"(freebsd|netbsd|openbsd)", compile, "./do_cmake.sh $IOMMAP_OPTS"}
]}.
{post_hooks, [
{"(linux|darwin|solaris)", compile, "./do_iommap.sh $IOMMAP_BUILDOPTS"},
{"(freebsd|netbsd|openbsd)", compile, "./do_iommap.sh $IOMMAP_BUILDOPTS"}
]}.
{xref_checks, [
undefined_function_calls,
undefined_functions,
locals_not_used,
deprecated_function_calls,
deprecated_functions
]}.
{profiles, [
{test, [
{erl_opts, [debug_info, nowarn_export_all]},
%% Build the test-only helper NIF used by
%% iommap_two_nif_tests. The script is shipped under test/
%% (excluded from hex), so this hook is a no-op outside the
%% repo working tree.
{pre_hooks, [{compile, "sh test/build_helper.sh"}]}
]}
]}.
{ex_doc, [
{extras, [
{"README.md", #{title => "Overview"}},
{"guides/features.md", #{title => "Features & API"}},
{"CHANGELOG.md", #{title => "Changelog"}},
{"LICENSE", #{title => "License"}}
]},
{main, "README.md"},
{homepage_url, "https://github.com/benoitc/erlang-iommap"},
{source_url, "https://github.com/benoitc/erlang-iommap"}
]}.