This module defines the rebar_compiler behaviour.
Required callback functions: context/1, needed_files/4, dependencies/3, compile/4, clean/2.
Optional callback functions: dependencies/4, compile_and_track/4.
extension() = string()
| analyze_all/2 | analysis by the caller, in order to let an OTP app find and resolve all its dependencies as part of compile_all's new API, which presumes a partial analysis is done ahead of time. |
| analyze_all_extras/2 | same as analyze_all/2, but over extra_src_apps, which are a big cheat. |
| clean/2 | remove compiled artifacts from an AppDir. |
| compile_all/2 | |
| compile_analyzed/3 | |
| error_tuple/4 | |
| error_tuple/5 | |
| format_error_source/2 | |
| maybe_report/1 | |
| needs_compile/3 | |
| ok_tuple/2 | |
| ok_tuple/4 | |
| report/1 |
analyze_all(DAG, Apps::[App, ...]) -> {map(), [App]}
DAG = {module(), digraph:graph()}App = rebar_app_info:t()
analysis by the caller, in order to let an OTP app find and resolve all its dependencies as part of compile_all's new API, which presumes a partial analysis is done ahead of time
analyze_all_extras(DAG, Apps::[App, ...]) -> {map(), [App]}
DAG = {module(), digraph:graph()}App = rebar_app_info:t()
same as analyze_all/2, but over extra_src_apps, which are a big cheat.
clean(Compilers::[module()], AppInfo::rebar_app_info:t()) -> ok
remove compiled artifacts from an AppDir.
compile_all(Compilers::[module(), ...], AppInfo::rebar_app_info:t()) -> ok
compile_analyzed(X1::{module(), digraph:graph()}, AppInfo::rebar_app_info:t(), Contexts::map()) -> ok
error_tuple(Source, Es, Ws, Opts) -> any()
error_tuple(Source, Es, Ws, Config, Opts) -> any()
format_error_source(Path, Opts) -> any()
maybe_report(Reportable) -> any()
needs_compile(Source::file:name_all(), OutExt::extension(), Mappings::[{extension(), DirName::file:filename()}]) -> boolean()
ok_tuple(Source, Ws) -> any()
ok_tuple(Source, Ws, Config, Opts) -> any()
report(Messages) -> any()
Generated by EDoc