coder137 / build_in_cpp

Build C, C++ and ASM files in C++
https://coder137.github.io/build_in_cpp/
Apache License 2.0
50 stars 2 forks source link

Static classes for global usage #200

Closed coder137 closed 2 years ago

coder137 commented 2 years ago

Examples

// 1
Project::Init("project_root_directory", "project_build_directory");

// 2
Storage::Add<Target>("identifier", ...);
auto & t = Storage::Ref<Target>("identifier");
const auto & t = Storage::ConstRef<Target>("identifier");

// 3
Reg::Init(...);
Reg::Build(...)
Reg::Dep(target, dependency);
Reg::Callback(...);

// 4
Args::Init(...);
Args::AddToolchain(...);
coder137 commented 2 years ago

201 Static Project class

coder137 commented 2 years ago

202 Static Args class

203 Args::Instance

204 Static Reg class

coder137 commented 2 years ago

205 Static Storage class