public void fExecute() { if (bLink) { CppCompiler.CheckAllThreadsHaveFinishedWorking(true); //Force sequence?? Console.WriteLine("---linkCmd"); } else //Compile -> check depandency { oDepandance = new Depandance(this, sOutputFile); bSkip = !oDepandance.bHaveNewerFile; } // Console.WriteLine("--------------Skip: " + bSkip.ToString() ); if (!Program.bNowBuilding) { return; } if (!bSkip) { CppCompiler.fSend2Compiler(sCmd, bLink); } else { Output.TraceColored("\f27UpToDate: \f28" + sCmd); } }
public static bool fManageMessages(CppCmd _oCmd, string _sMsg) { if (_sMsg.IndexOf("Unhandled Exception") >= 0) { Output.TraceError(_sMsg); nError++; return(true); } if (_sMsg.Length >= 3 && _sMsg[1] == '|' && (_sMsg[2] != '/' || _sMsg[2] != '\\')) { string _sMessage = _sMsg.Substring(2).Trim(); switch (_sMsg[0]) { case 'W': Output.TraceWarning(_sMessage); return(true); case 'I': Output.TraceAction(_sMessage); return(true); case 'E': Output.TraceError(_sMessage); nError++; return(true); case 'A': String[] _aMsg = _sMessage.Split('|'); if (_aMsg.Length >= 2) { switch (_aMsg[0]) { case "[C~:Lib]": Output.TraceAction(_sMessage); fAssistCwLib(_sMessage); return(true); case "C~>C++": case "C~2Cpp": case "Cw2Cpp": Output.TraceAction(_sMessage); _oCmd.fAddCompiledObject(_aMsg[1] + ".cpp"); //Know as .cpp object return(true); case "C~:UpToDate": case "CwUpToDate": case "CwUp2Date": Output.TraceColored("\f27C~:Up2Date|\f28" + _aMsg[1]); _oCmd.fAddUpToDateObject(_aMsg[1] + ".cpp"); return(true); } } break; } } return(false); }
public void fShowInfo(ModuleData _oModule, bool _bShowInfo) { if (wBuildTime == null) { Output.Trace("\f1B --- End --- \f13 "); return; } wBuildTime.Stop(); double nfSec = wBuildTime.ElapsedMilliseconds / 1000.0; int _nSeconde = (int)(nfSec); int _nDotSeconde = ((int)(nfSec * 100.0)) - _nSeconde * 100; // if(Data.bInConsole && !bSubArgMan) { // if( !bSubArgMan) { if (_bShowInfo) { if (CppCompiler.nError > 0) { string _sS = "s"; if (CppCompiler.nError == 1) { _sS = ""; } string _sWhat = "\f4C --- End with "; if (_oModule != null) { _sWhat = "\f4C --- Finish - " + _oModule.sAutorName + " - with "; } Output.TraceColored(_sWhat + CppCompiler.nError.ToString() + " error" + _sS + " --- " + _nSeconde + "." + _nDotSeconde + " sec"); } else { if (_oModule != null) { // Output.Trace("\f27 --- Finish - " + _oModule.sAutorName +" - \f27 " + _nSeconde + "." + _nDotSeconde + " sec" ); Output.Trace("\f2B --- Finish - " + _oModule.sAutorName + " - \f2B " + _nSeconde + "." + _nDotSeconde + " sec"); } else { Output.Trace("\f1B --- End --- \f13 " + _nSeconde + "." + _nDotSeconde + " sec"); } } // } } }
public static void TraceGood(string _sText) { //Output.TraceColored("\fB3" + _sText ); Output.TraceColored("\f2A" + _sText); }
public static void TraceReturn(string _sText) { //Output.TraceColored("\fB3" + _sText ); Output.TraceColored("\f3B" + _sText); }
public static void TraceUndefined(string _sText) { Output.TraceColored(sUndefinedColor + _sText); }
public static void TraceError(string _sText) { Output.TraceColored(sErrorColor + _sText); }
public static void TraceWarning(string _sText) { Output.TraceColored(sWarningColor + _sText); }
public static void TraceActionLite(string _sText) { Output.TraceColored("\f0B" + _sText); }
public static void TraceErrorLite(string _sText) { Output.TraceColored("\f0C" + _sText); }
public static void TraceWarningLite(string _sText) { Output.TraceColored("\f0E" + _sText); }
public static void TraceStd(string _sText) { Output.TraceColored("\f0F" + _sText); }