Module rebar_compiler

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.

Data Types

extension()

extension() = string()

Function Index

analyze_all/2analysis 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/2same as analyze_all/2, but over extra_src_apps, which are a big cheat.
clean/2remove 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

Function Details

analyze_all/2

analyze_all(DAG, Apps::[App, ...]) -> {map(), [App]}

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

analyze_all_extras(DAG, Apps::[App, ...]) -> {map(), [App]}

same as analyze_all/2, but over extra_src_apps, which are a big cheat.

clean/2

clean(Compilers::[module()], AppInfo::rebar_app_info:t()) -> ok

remove compiled artifacts from an AppDir.

compile_all/2

compile_all(Compilers::[module(), ...], AppInfo::rebar_app_info:t()) -> ok

compile_analyzed/3

compile_analyzed(X1::{module(), digraph:graph()}, AppInfo::rebar_app_info:t(), Contexts::map()) -> ok

error_tuple/4

error_tuple(Source, Es, Ws, Opts) -> any()

error_tuple/5

error_tuple(Source, Es, Ws, Config, Opts) -> any()

format_error_source/2

format_error_source(Path, Opts) -> any()

maybe_report/1

maybe_report(Reportable) -> any()

needs_compile/3

needs_compile(Source::file:name_all(), OutExt::extension(), Mappings::[{extension(), DirName::file:filename()}]) -> boolean()

ok_tuple/2

ok_tuple(Source, Ws) -> any()

ok_tuple/4

ok_tuple(Source, Ws, Config, Opts) -> any()

report/1

report(Messages) -> any()


Generated by EDoc