Beispiel #1
0
        internal static void fBeginBuild()
        {
            //sArg = " -wCwcUpd C:/aaa ";
            Data.sArgExpand = ArgProcess.fExpandAll(Data.sArg);  //TODO Expand in another thread
            Data.sArgExpand = ArgProcess.fTestIfBeginWithAFile(Data.sArgExpand);

            Build.StartBuild();
        }
Beispiel #2
0
        public static void fDelocaliseCmd()
        {
            //Reset all -> Already clear in Data.fClearData()

            /*
             * Data.aVarGlobal.Clear();
             * Data.fSetDefaultVar();
             * if(Data.oGuiConsole != null) {
             *  Data.oGuiConsole.fLoadData();
             * }*/

            Output.TraceWarning("Launch " + sDelocaliseCmd);
            string _sText = Delocalise.fDelocalise(sDelocaliseCmd);

            Data.sArgExpand        = ArgProcess.fExpandAll(_sText);
            Data.sCmd              = "StartBuild";
            Data.bForceTestNextCmd = true;
        }
Beispiel #3
0
        public void fCompleteExtractMainArgument(ModuleData _oModule = null, bool _bShowInfo = true)
        {
            Build.fEnableBuild();


            ///Check missing modules lib
            //if(Data.aCompilerData.Count == 0){


            //}

            //		fLibRtExist();
            //fGZE_Exist();

            if (Data.bModuleIsRequired || Data.bDontExecute) //Stop if we need more modules
            {
                Build.fDisableBuild();
                return;
            }


            if (_bShowInfo)
            {
                if (_oModule == null)
                {
                    Output.Trace("\f2A--Start Build--");
                }
                else
                {
                    // Output.Trace("\f27 - Build " + _oModule.sAutorName + " - " + _oModule.sCurrFolder + " - " );
                    Output.Trace("\f2B - Build " + _oModule.sAutorName + " - " + _oModule.sCurrFolder + " - ");
                }
            }

            ///////////////// Extract Compilers
            fExtractCompiler();

            if (Data.bModuleIsRequired) //For compiler with "Require" Node //TODO recursive
            {
                if (!Empty.fLoadModules(false))
                {
                    Build.fDisableBuild();
                    return;
                }

                Data.bModuleIsRequired = false;
                Data.aRequiredModule.Clear();

                //  Empty.fLoadModules(false);//Reload after download, or look for bExtracting before fGetLastVersions
                fMergeCompiler();
            }
            fExtractCompiler();



            foreach (CompilerData _oLib in  aLibList)              //TODO separate subcompiler and extract after!?
            //Console.WriteLine("Extract Lib: " + _oLib.sFullName);
            {
                Debug.fTrace("Extract Lib: " + _oLib.sFullName);
                _oLib.fExtract(this);
            }


            /////////////////////////////
            //Output.Trace("\f2A-Extracted--");

            /*
             *       foreach(CppSeq _oSeq in aCppSeq) {
             *                      sCurr_wTo = "";
             *                      foreach(CppCmd _oCmd in _oSeq.aCppCmd) {
             *                              //	_oCmd.fExtract();
             *                      }
             *              }
             */


            ArgProcess.fFinishExtractArg();
        }