Break web generator to own cmake.
This commit is contained in:
parent
bd60a28eef
commit
ebd41bf4ee
14 changed files with 121 additions and 45 deletions
|
@ -36,7 +36,7 @@ void MainApplication::Initialize(CommandLineArgsUPtr commandLineArgs, std::uniqu
|
|||
}
|
||||
|
||||
mCommandLineArgs = std::move(commandLineArgs);
|
||||
const auto launch_path = mCommandLineArgs->GetLaunchPath().string();
|
||||
const auto launch_path = mCommandLineArgs->getLaunchPath().string();
|
||||
|
||||
FileLogger::GetInstance().SetWorkDirectory(launch_path);
|
||||
FileLogger::GetInstance().Open();
|
||||
|
@ -56,23 +56,23 @@ void MainApplication::Initialize(CommandLineArgsUPtr commandLineArgs, std::uniqu
|
|||
void MainApplication::Run()
|
||||
{
|
||||
std::string program_type;
|
||||
if(mCommandLineArgs->GetNumberOfArgs() > 1)
|
||||
if(mCommandLineArgs->getNumberOfArgs() > 1)
|
||||
{
|
||||
program_type = mCommandLineArgs->GetArg(1);
|
||||
program_type = mCommandLineArgs->getArg(1);
|
||||
}
|
||||
|
||||
std::string input_path;
|
||||
std::string output_path;
|
||||
for(unsigned idx=1; idx<mCommandLineArgs->GetNumberOfArgs(); idx++)
|
||||
for(unsigned idx=1; idx<mCommandLineArgs->getNumberOfArgs(); idx++)
|
||||
{
|
||||
auto arg = mCommandLineArgs->GetArg(idx);
|
||||
if(arg == "-input" && mCommandLineArgs->GetNumberOfArgs() > idx+1)
|
||||
auto arg = mCommandLineArgs->getArg(idx);
|
||||
if(arg == "-input" && mCommandLineArgs->getNumberOfArgs() > idx+1)
|
||||
{
|
||||
input_path = mCommandLineArgs->GetArg(idx + 1);
|
||||
input_path = mCommandLineArgs->getArg(idx + 1);
|
||||
}
|
||||
else if(arg == "-output" && mCommandLineArgs->GetNumberOfArgs() > idx+1)
|
||||
else if(arg == "-output" && mCommandLineArgs->getNumberOfArgs() > idx+1)
|
||||
{
|
||||
output_path = mCommandLineArgs->GetArg(idx + 1);
|
||||
output_path = mCommandLineArgs->getArg(idx + 1);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue