Skip to content

Commit 9ef6cd9

Browse files
committed
Add compiler / file support for Delphi 10.2, 10.3 & 10.4
1 parent d9177d6 commit 9ef6cd9

File tree

4 files changed

+26
-3
lines changed

4 files changed

+26
-3
lines changed

Src/Compilers.UBDS.pas

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,12 @@ function TBDSCompiler.GetIDString: string;
144144
Result := 'D10S';
145145
ciD101B:
146146
Result := 'D101B';
147+
ciD102T:
148+
Result := 'D102T';
149+
ciD103R:
150+
Result := 'D103R';
151+
ciD104S:
152+
Result := 'D104S';
147153
else
148154
raise EBug.Create(ClassName + '.GetIDString: Invalid ID');
149155
end;
@@ -162,6 +168,9 @@ function TBDSCompiler.GetName: string;
162168
sDelphiXE8 = 'Delphi XE8'; // name of Delphi XE8 compiler
163169
sDelphi10S = 'Delphi 10 Seattle'; // name of Delphi 10 compiler
164170
sDelphi101B = 'Delphi 10.1 Berlin'; // name of Delphi 10.1 compiler
171+
sDelphi102T = 'Delphi 10.2 Tokyo'; // name of Delphi 10.2 compiler
172+
sDelphi103R = 'Delphi 10.3 Rio'; // name of Delphi 10.3 compiler
173+
sDelphi104S = 'Delphi 10.4 Sydney'; // name of Delphi 10.4 compiler
165174
begin
166175
case GetID of
167176
ciDXE:
@@ -184,6 +193,12 @@ function TBDSCompiler.GetName: string;
184193
Result := sDelphi10S;
185194
ciD101B:
186195
Result := sDelphi101B;
196+
ciD102T:
197+
Result := sDelphi102T;
198+
ciD103R:
199+
Result := sDelphi103R;
200+
ciD104S:
201+
Result := sDelphi104S;
187202
else
188203
Result := Format(sCompilerName, [ProductVersion]);
189204
end;
@@ -214,6 +229,9 @@ function TBDSCompiler.InstallationRegKey: string;
214229
ciDXE8 : Result := '\Software\Embarcadero\BDS\16.0';
215230
ciD10S : Result := '\Software\Embarcadero\BDS\17.0';
216231
ciD101B : Result := '\Software\Embarcadero\BDS\18.0';
232+
ciD102T : Result := '\Software\Embarcadero\BDS\19.0';
233+
ciD103R : Result := '\Software\Embarcadero\BDS\20.0';
234+
ciD104S : Result := '\Software\Embarcadero\BDS\21.0';
217235
else raise EBug.Create(ClassName + '.InstallationRegKey: Invalid ID');
218236
end;
219237
end;

Src/Compilers.UGlobals.pas

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,9 @@ interface
4040
ciDXE8, // Delphi XE8
4141
ciD10S, // Delphi 10 Seattle
4242
ciD101B, // Delphi 10.1 Berlin
43+
ciD102T, // Delphi 10.2 Tokyo
44+
ciD103R, // Delphi 10.3 Rio
45+
ciD104S, // Delphi 10.4 Sydney
4346
ciFPC // Free Pascal
4447
);
4548

@@ -52,7 +55,8 @@ interface
5255
/// compilers.</summary>
5356
cBDSCompilers = [
5457
ciD2005w32, ciD2006w32, ciD2007, ciD2009w32, ciD2010, ciDXE, ciDXE2,
55-
ciDXE3, ciDXE4, ciDXE5, ciDXE6, ciDXE7, ciDXE8, ciD10S, ciD101B
58+
ciDXE3, ciDXE4, ciDXE5, ciDXE6, ciDXE7, ciDXE8, ciD10S, ciD101B, ciD102T,
59+
ciD103R, ciD104S
5660
];
5761

5862
const

Src/DBIO.UIniDataReader.pas

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,7 @@ implementation
235235
'Delphi2005Win32', 'Delphi2006Win32', 'Delphi2007', 'Delphi2009Win32',
236236
'Delphi2010', 'DelphiXE', 'DelphiXE2', 'DelphiXE3', 'DelphiXE4',
237237
'DelphiXE5', 'DelphiXE6', 'DelphiXE7', 'DelphiXE8', 'Delphi10S',
238-
'Delphi101B', 'FPC'
238+
'Delphi101B', 'Delphi102T', 'Delphi103R', 'Delphi104S', 'FPC'
239239
);
240240

241241
{ TIniDataReader }

Src/UXMLDocConsts.pas

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,8 @@ interface
6767
'd2', 'd3', 'd4', 'd5', 'd6', 'd7',
6868
'd2005', 'd2006', 'd2007', 'd2009', 'd2010',
6969
'dXE', 'dXE2', 'dXE3', 'dDX4' {error, but in use},
70-
'dXE5', 'dXE6', 'dXE7', 'dXE8', 'd10s', 'd101b',
70+
'dXE5', 'dXE6', 'dXE7', 'dXE8',
71+
'd10s', 'd101b', 'd102t', 'd103r', 'd104s',
7172
'fpc'
7273
);
7374

0 commit comments

Comments
 (0)