public PostBuild ( IConsole console, IProject project, LinkResult linkResult ) : Task |
||
console | IConsole | |
project | IProject | |
linkResult | LinkResult | |
return | Task |
public override async Task<bool> PostBuild(IConsole console, IProject project, LinkResult linkResult)
{
if ((project is IStandardProject) && (project as IStandardProject).Type == ProjectType.Executable)
{
var result = await ObjCopy(console, project, linkResult, AssemblyFormat.Binary);
if (result.ExitCode == 0)
{
result = await ObjCopy(console, project, linkResult, AssemblyFormat.IntelHex);
}
return result.ExitCode == 0;
}
return true;
}
}