Пример #1
0
 static bool ProcessArgs(string[] args)
 {
     if (args != null && args.Length > 0)
     {
         XDebug.Log("arg len:" + args.Length.ToString() + " arg0: " + args[0]);
         if (args[0].Equals(make_win_code))
         {
             XDebug.Log("build win code");
             CompileCode.Build(false);
         }
         else if (args[0].Equals(make_ios_code))
         {
             XDebug.Log("build ios code");
             CompileCode.Build(true);
         }
         else if (args[0].Equals(make_byte))
         {
             for (int i = 1; i < args.Length; i++)
             {
                 CheckException(args[i]);
                 XDebug.Log("gennerate bytes: " + args[i]);
                 GenerateBytes.sington.WriteByte(args[i]);
             }
         }
         else
         {
             XDebug.LogError("exception " + make_win_code.Length + " args:" + args[0].Length);
         }
         return(false);
     }
     return(true);
 }
Пример #2
0
 private void build_Click(object sender, EventArgs e)
 {
     ClearContent();
     AppendContent("开始编译表格代码.");
     CompileCode.Build(this);
 }