Menu

Diff of /trunk/Src/Compilers.UBDS.pas [r1545] .. [r1546]  Maximize  Restore

Switch to side-by-side view

--- a/trunk/Src/Compilers.UBDS.pas
+++ b/trunk/Src/Compilers.UBDS.pas
@@ -129,13 +129,15 @@
     @return Compiler id string.
   }
 begin
-  case GetID of        
+  case GetID of
     ciD2005w32, ciD2006w32, ciD2009w32:
       Result := Format('D%dw32', [ProductVersion]);
     ciD2007, ciD2010:
       Result := Format('D%d', [ProductVersion]);
     ciDXE:
       Result := 'DXE';
+    ciDXE2:
+      Result := 'DXE2';
     else raise EBug.Create(ClassName + '.GetIDString: Invalid ID');
   end;
 end;
@@ -147,11 +149,16 @@
 resourcestring
   sCompilerName = 'Delphi %d';  // template for name of compiler
   sDelphiXE = 'Delphi XE';      // name of Delphi XE compiler
-begin
-  if GetID = ciDXE then
-    Result := sDelphiXE
-  else
-    Result := Format(sCompilerName, [ProductVersion]);
+  sDelphiXE2 = 'Delphi XE2';    // name of Delphi XE2 compiler
+begin
+  case GetID of
+    ciDXE:
+      Result := sDelphiXE;
+    ciDXE2:
+      Result := sDelphiXE2
+    else
+      Result := Format(sCompilerName, [ProductVersion]);
+  end;
 end;
 
 function TBDSCompiler.GlyphResourceName: string;
@@ -161,7 +168,7 @@
 begin
   case GetID of
     ciD2005w32, ciD2006w32, ciD2007, ciD2009w32: Result := 'BDS';
-    ciD2010, ciDXE: Result := 'EMBARCADERO';
+    ciD2010, ciDXE, ciDXE2: Result := 'EMBARCADERO';
     else raise EBug.Create(ClassName + '.GlyphResourceName: Invalid ID');
   end;
 end;
@@ -179,6 +186,7 @@
     ciD2009w32: Result := '\SOFTWARE\CodeGear\BDS\6.0';
     ciD2010   : Result := '\SOFTWARE\CodeGear\BDS\7.0';
     ciDXE     : Result := '\Software\Embarcadero\BDS\8.0';
+    ciDXE2    : Result := '\Software\Embarcadero\BDS\9.0';
     else raise EBug.Create(ClassName + '.InstallationRegKey: Invalid ID');
   end;
 end;
@@ -195,6 +203,7 @@
     ciD2009w32: Result := 2009;
     ciD2010:    Result := 2010;
     ciDXE:      Result := 2011;
+    ciDXE2:     Result := 2012;
     else raise EBug.Create(ClassName + '.ProductVersion: Invalid ID');
   end;
 end;
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.