Bundlex v0.1.1 Bundlex.Toolchain behaviour View Source
Link to this section Summary
Callbacks
Invokes commands that should be called before whole compilation process for given platform
Builds list of compiler commands valid for certain toolchain
Link to this section Functions
Link to this section Callbacks
Invokes commands that should be called before whole compilation process for given platform.
Implementations should call Output.raise/1
in case of failure which will
cause breaking the compilation process.
In case of success implementations should return list of commands to be called upon compilation.
Default implentation do nothing.
Link to this callback
compiler_commands(arg0, app_name, nif_name)
View Source
compiler_commands(Bundlex.NIF.t(), app_name :: atom(), nif_name :: atom()) :: [ String.t() ]
Builds list of compiler commands valid for certain toolchain.
It will receive includes, libs, sources, pkg_configs, nif_name.