public void GenerateProLib() { //make output directory path_root_ = ExportConfig.Instance().Export2CPath; FileUtil.DelDir(path_root_); Thread.Sleep(3000); FileUtil.MakeDir(ref path_root_); //generate macro define GenerateMacroDefine(); GenerateEnumStruct(); GenerateGlobalStruct(); GenerateProtocols(); }
public void DeployProLib() { string targetpath = ExportConfig.Instance().Target2CPath; FileUtil.DelDir(targetpath); Thread.Sleep(3000); FileUtil.MakeDir(ref targetpath); //copy generate files into target dir List <string> allfile = FileUtil.ListFilesOfDir(path_root_, "*.*"); foreach (string f in allfile) { string src = FileUtil.GetFile(path_root_, f); string des = FileUtil.GetFile(targetpath, f); File.Copy(src, des, true); } }