예제 #1
0
        void BuildLib(String lib, ICollection <String> objs)
        {
            if (Ar.IsNullOrEmpty())
            {
                Ar = @"D:\Keil\ARM\ARMCC\bin\armar.exe";
            }
            lib.EnsureDirectory(true);

            var sb = new StringBuilder();

            sb.Append("--create -c");
            sb.AppendFormat(" -r \"{0}\"", lib);

            foreach (var item in objs)
            {
                sb.Append(" ");
                sb.Append(item);
                Console.WriteLine(item);
            }

            var rs = Ar.Run(sb.ToString(), 3000, XTrace.WriteLine);
        }