Bundlex v0.1.6 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 function
output_path(app_name) View Source
Link to this function
output_path(app_name, nif_name) View Source
Link to this function
pkg_config(nif, opts)
View Source
pkg_config(nif, opts)
View Source
pkg_config(Bundlex.NIF.t(), [String.t()]) :: String.t()
pkg_config(Bundlex.NIF.t(), [String.t()]) :: String.t()
Link to this section Callbacks
Link to this callback
before_all!(atom) View Source
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(arg0, app_name, nif_name)
View Source
compiler_commands(Bundlex.NIF.t(), app_name :: atom(), nif_name :: atom()) :: [
String.t()
]
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.