本文整理汇总了C++中Document::OutputMpx方法的典型用法代码示例。如果您正苦于以下问题:C++ Document::OutputMpx方法的具体用法?C++ Document::OutputMpx怎么用?C++ Document::OutputMpx使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Document
的用法示例。
在下文中一共展示了Document::OutputMpx方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: if
//.........这里部分代码省略.........
else if(sCmpStringI(build,"xcode4")==0)
Doc->OutputKind = OK_XCode4;
else if(sCmpStringI(build,"ndk")==0)
Doc->OutputKind = OK_NDK;
if((Doc->OutputKind != OK_VS2012 && Doc->OutputKind != OK_VS2013) && Doc->X64)
{
Doc->X64 = 0;
}
if(Doc->OutputKind==OK_Error)
{
sPrintF("build system %s not found\n",build);
sPrint("supported build systems:\n");
sPrint(" vs2013\n");
sPrint(" vs2012\n");
sPrint(" vs2010\n");
sPrint(" vs2008\n");
sPrint(" make\n");
sPrint(" xcode4\n");
sPrint(" ndk\n");
ok = 0;
}
}
// scan mp files and make dependencies
if(ok)
ok = Doc->ScanMP();
if(ok)
ok = Doc->FindDepends();
// output project files
if(ok)
{
switch (Doc->OutputKind)
{
case OK_VS2013: case OK_VS2012:
ok = Doc->OutputVS2012();
break;
case OK_VS2010:
ok = Doc->OutputVS2010();
break;
case OK_VS2008:
ok = Doc->OutputVS2008();
break;
case OK_Make:
ok = Doc->OutputMake();
break;
case OK_XCode4:
ok = Doc->OutputXCode4();
break;
case OK_NDK:
ok = Doc->OutputNDK();
break;
default:
ok = 0;
break;
}
}
// create new files (if requested)
if(ok && Doc->CreateNewFiles)
Doc->Create();
// some more outputs
if(ok && WriteMpx)
Doc->OutputMpx();
// done
if(!ok)
{
sSetExitCode(1);
if(pauseonerror)
{
sPrint("fail. press any key to continue\n");
sWaitForKey();
}
else
{
sPrint("fail\n");
}
}
else
{
sPrint("success\n");
sPrintF("projects found: %d\n",Doc->Solutions.GetCount());
sPrintF("platforms found: %d\n",Doc->Platforms.GetCount());
sInt n = 0;
for(auto p : Doc->Platforms)
n += p->Configs.GetCount();
sPrintF("configurations found: %d (%d in %s)\n",n,Doc->Platform->Configs.GetCount(),Doc->Platform->Name);
}
delete Doc;
}