Changeset 1936
- Timestamp:
- Sep 20, 2012, 3:30:53 PM (7 years ago)
- Location:
- trunk/tools/vslol
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tools/vslol/AssemblyInfo.cs
r1932 r1936 5 5 6 6 [assembly: AssemblyTitle("VsLol")] 7 [assembly: AssemblyDescription(" VsSDK reference sample for Menus and Commands")]7 [assembly: AssemblyDescription("Lol Engine Productivity Tools")] 8 8 [assembly: AssemblyConfiguration("")] 9 9 [assembly: AssemblyCompany("Lol")] … … 21 21 [assembly: Guid("58968f91-edb8-4a4c-9f4f-ba39fdb4a21a")] 22 22 23 [assembly: AssemblyVersion("1.0.0. 0")]24 [assembly: AssemblyFileVersion("1.0.0. 0")]23 [assembly: AssemblyVersion("1.0.0.1")] 24 [assembly: AssemblyFileVersion("1.0.0.1")] -
trunk/tools/vslol/MenuGenerateCompilers.cs
r1934 r1936 95 95 cmd.WriteToOutputPane("------ Build started: Generating Compilers ------\n"); 96 96 97 int scanner_count = 0, parser_count = 0 ;97 int scanner_count = 0, parser_count = 0, error_count = 0; 98 98 99 99 foreach (Project project in cmd.projects) 100 100 { 101 cmd.WriteToOutputPane("Project " + project. FullName + "\n");101 cmd.WriteToOutputPane("Project " + project.Name + "\n"); 102 102 103 103 string project_path = Path.GetDirectoryName(project.FullName); … … 129 129 if (item.Name.EndsWith("-scanner.l")) 130 130 { 131 cmd.WriteToOutputPane(" 131 cmd.WriteToOutputPane("flex.exe " + filename + "\n"); 132 132 133 133 string basename = Path.GetFileName(filename.Substring(0, filename.LastIndexOf("-scanner.l"))); 134 cmd.Run(project_path, 135 flex_path + "\\bin\\flex.exe", 136 "-v -o " 137 + "generated/" + basename + "-scanner.cpp " 138 + filename, 139 ""); 134 if (!cmd.Run(project_path, 135 flex_path + "\\bin\\flex.exe", 136 "-v -o " 137 + "generated/" + basename + "-scanner.cpp " 138 + filename, 139 "")) 140 ++error_count; 140 141 141 142 ++scanner_count; … … 144 145 if (item.Name.EndsWith("-parser.y")) 145 146 { 146 cmd.WriteToOutputPane(" 147 cmd.WriteToOutputPane("bison.exe " + filename + "\n"); 147 148 148 149 string basename = Path.GetFileName(filename.Substring(0, filename.LastIndexOf("-parser.y"))); 149 cmd.Run(project_path, 150 bison_path + "\\bin\\bison.exe", 151 "-v -o " 152 + "generated/" + basename + "-parser.cpp " 153 + "--defines=generated/" + basename + "-parser.h " 154 + "-d " 155 + "-b " 156 + "generated/" + basename + " " 157 + filename, 158 "BISON_PKGDATADIR=" + bison_path + "\\share\\bison"); 150 if (!cmd.Run(project_path, 151 bison_path + "\\bin\\bison.exe", 152 "-v -o " 153 + "generated/" + basename + "-parser.cpp " 154 + "--defines=generated/" + basename + "-parser.h " 155 + "-d " 156 + "-b " 157 + "generated/" + basename + " " 158 + filename, 159 "BISON_PKGDATADIR=" + bison_path + "\\share\\bison")) 160 ++error_count; 159 161 160 162 ++parser_count; … … 163 165 } 164 166 165 cmd.WriteToOutputPane(string.Format("========== Done . {0} scanner(s), {1} parser(s) ==========\n",166 scanner_count, parser_count ));167 } 168 169 voidRun(string directory, string executable, string arguments, string env)167 cmd.WriteToOutputPane(string.Format("========== Done: {0} scanner(s), {1} parser(s), {2} error(s) ==========\n", 168 scanner_count, parser_count, error_count)); 169 } 170 171 bool Run(string directory, string executable, string arguments, string env) 170 172 { 171 173 System.Diagnostics.Process p = new System.Diagnostics.Process(); … … 194 196 WriteToOutputPane(output); 195 197 if (p.ExitCode != 0) 198 { 196 199 WriteToOutputPane("Error: " + executable + " exited with code " + p.ExitCode + "\n"); 200 return false; 201 } 197 202 } 198 203 catch (Exception e) 199 204 { 200 205 WriteToOutputPane("Error: failed to launch " + executable + "\n"); 201 } 206 return false; 207 } 208 209 return true; 202 210 } 203 211 -
trunk/tools/vslol/source.extension.vsixmanifest
r1932 r1936 4 4 <Name>VsLol</Name> 5 5 <Author>Lol</Author> 6 <Version> 0.0</Version>7 <Description xml:space="preserve">Lol Engine productivity tools.</Description>6 <Version>1.0.0.1</Version> 7 <Description xml:space="preserve">Lol Engine Productivity Tools.</Description> 8 8 <Locale>1033</Locale> 9 9 <InstalledByMsi>false</InstalledByMsi>
Note: See TracChangeset
for help on using the changeset viewer.