CBuild
C++ build system with scripts written in c++
|
#include <cross_compile.hpp>
Classes | |
class | ToolData |
Internal toolchain data. More... | |
Public Member Functions | |
CrossCompiler (std::string id, std::string name) | |
Create new cross-compilation collection. | |
void | add_arch_tool (std::string id, CBuild::Toolchain *tool) |
Create new architecture dependant tool. | |
void | add_arch_tool (std::string id) |
Create new architecture dependant tool, toolchain instance will be created. | |
CBuild::Toolchain * | get_arch_tool (std::string id) |
Get toolchain for specific arch. | |
void | perform_registry () |
Register all internal toolchains. | |
CBuild::Toolchain * | get_global_config () |
Get global configuration (for compatibility reasons returns CBuild::Toolchain* to config) | |
void | apply_global_config () |
Load global configuration data into local, per-toolchain, configuration. | |
void | set_default_tool (std::string arch) |
Set default toolchain. | |
std::vector< std::string > | get_toolchain_list () |
Get list of sub-toolchains in this collection (skips config and meta-toolchain) | |
~CrossCompiler () | |
Destructor for this class. | |
Protected Attributes | |
std::vector< CBuild::CrossCompiler::ToolData > | toolchain_list |
List of internal toolchains. | |
CBuild::Toolchain * | meta_config |
Global configuration. | |
CBuild::Toolchain * | meta_toolchain |
Meta-toolchain fot this group. | |
std::string | meta_id |
Id of this group. | |
std::string | meta_name |
Output name for this group. | |
Definition at line 32 of file cross_compile.hpp.
CBuild::CrossCompiler::CrossCompiler | ( | std::string | id, |
std::string | name ) |
Create new cross-compilation collection.
id | => std::string -> Collection id |
name | => std::string -> Collection output name |
Definition at line 308 of file cross_compile.cpp.
References meta_config, meta_id, meta_name, and meta_toolchain.
|
inline |
Destructor for this class.
Definition at line 122 of file cross_compile.hpp.
References meta_config, meta_toolchain, and toolchain_list.
void CBuild::CrossCompiler::add_arch_tool | ( | std::string | id | ) |
Create new architecture dependant tool, toolchain instance will be created.
id | => std::string -> Id of tool |
Definition at line 341 of file cross_compile.cpp.
void CBuild::CrossCompiler::add_arch_tool | ( | std::string | id, |
CBuild::Toolchain * | tool ) |
Create new architecture dependant tool.
id | => std::string -> Id of tool |
tool | => CBuild::Toolchain* -> Preconfigured toolchain |
Definition at line 335 of file cross_compile.cpp.
References CBuild::Toolchain::set_id(), and CBuild::Toolchain::set_name().
void CBuild::CrossCompiler::apply_global_config | ( | ) |
Load global configuration data into local, per-toolchain, configuration.
Definition at line 353 of file cross_compile.cpp.
CBuild::Toolchain * CBuild::CrossCompiler::get_arch_tool | ( | std::string | id | ) |
Get toolchain for specific arch.
id | => std::string -> Id of needed toolchain |
Definition at line 321 of file cross_compile.cpp.
Referenced by CBuild::MetaToolchain::call(), CBuild::MetaToolchain::clear(), CBuild::MetaToolchain::debug(), CBuild::MetaToolchain::load_project_deps(), and CBuild::MetaToolchain::run().
CBuild::Toolchain * CBuild::CrossCompiler::get_global_config | ( | ) |
Get global configuration (for compatibility reasons returns CBuild::Toolchain* to config)
Definition at line 329 of file cross_compile.cpp.
std::vector< std::string > CBuild::CrossCompiler::get_toolchain_list | ( | ) |
Get list of sub-toolchains in this collection (skips config and meta-toolchain)
Definition at line 314 of file cross_compile.cpp.
Referenced by CBuild::MetaToolchain::call(), CBuild::MetaToolchain::clear(), CBuild::MetaToolchain::debug(), CBuild::MetaToolchain::load_project_deps(), and CBuild::MetaToolchain::run().
void CBuild::CrossCompiler::perform_registry | ( | ) |
Register all internal toolchains.
Definition at line 347 of file cross_compile.cpp.
References CBuild::Registry::RegisterTarget().
void CBuild::CrossCompiler::set_default_tool | ( | std::string | arch | ) |
Set default toolchain.
arch | => std::string -> Id of default toolchain |
Definition at line 332 of file cross_compile.cpp.
|
protected |
Global configuration.
Definition at line 50 of file cross_compile.hpp.
Referenced by CrossCompiler(), and ~CrossCompiler().
|
protected |
|
protected |
Output name for this group.
Definition at line 62 of file cross_compile.hpp.
Referenced by CrossCompiler().
|
protected |
Meta-toolchain fot this group.
Definition at line 54 of file cross_compile.hpp.
Referenced by CrossCompiler(), and ~CrossCompiler().
|
protected |
List of internal toolchains.
Definition at line 46 of file cross_compile.hpp.
Referenced by ~CrossCompiler().