MCPcopy Create free account
hub / github.com/SakuraEngine/SakuraEngine / compile_all

Function compile_all

modules/tools/resource_compiler/main.cpp:179–201  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

177}
178
179int compile_all(int argc, char** argv)
180{
181 skr_log_set_level(SKR_LOG_LEVEL_INFO);
182
183 skr::task::scheduler_t scheduler;
184 scheduler.initialize(skr::task::scheudler_config_t());
185 scheduler.bind();
186 auto& system = *skd::asset::GetCookSystem();
187 system.Initialize();
188 //----- register project
189 auto projects = open_projects(argc, argv);
190 SKR_DEFER({
191 for(auto& project : projects)
192 SkrDelete(project);
193 });
194 for(auto& project : projects)
195 compile_project(project);
196
197 scheduler.unbind();
198 system.Shutdown();
199
200 return 0;
201}
202
203int main(int argc, char** argv)
204{

Callers 1

mainFunction · 0.85

Calls 10

skr_log_set_levelFunction · 0.85
GetCookSystemFunction · 0.85
open_projectsFunction · 0.85
SkrDeleteFunction · 0.85
compile_projectFunction · 0.85
initializeMethod · 0.45
bindMethod · 0.45
InitializeMethod · 0.45
unbindMethod · 0.45
ShutdownMethod · 0.45

Tested by

no test coverage detected