Skip to content

Commit dd93476

Browse files
committed
Add license header to generated files for Issue #24
1 parent bfc4b7f commit dd93476

5 files changed

Lines changed: 118 additions & 13 deletions

data/delphi-compiler-versions.json

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,28 @@
1919
"See individual entry notes for platforms introduced in sub-version point releases.",
2020
"Tooling should check supportedBuildSystems and supportedPlatforms before assessing installation readiness.",
2121
"Return notApplicable readiness when the requested buildSystem or platform is absent from the supported arrays."
22-
]
22+
],
23+
"project": {
24+
"name": "delphi-compiler-versions",
25+
"repository": "https://github.com/continuous-delphi/delphi-compiler-versions",
26+
"organization": "https://github.com/continuous-delphi",
27+
"maintainers": [
28+
{
29+
"name": "Darian Miller",
30+
"role": "primary",
31+
"url": "https://github.com/darianmiller"
32+
}
33+
]
34+
},
35+
"description": {
36+
"summary": "Canonical Delphi compiler version mapping based on official VER### symbols.",
37+
"purpose": "Provides a single source of truth for Delphi compiler version detection across tooling, CI, and code generation."
38+
},
39+
"license": {
40+
"name": "MIT",
41+
"spdx": "MIT",
42+
"url": "https://opensource.org/licenses/MIT"
43+
}
2344
},
2445
"versions": [
2546
{

generated/DELPHI_COMPILER_VERSIONS.inc

Lines changed: 24 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,27 @@
1-
{
2-
DELPHI_COMPILER_VERSIONS.inc
3-
Generated from: data/delphi-compiler-versions.json
4-
Home Repo: https://github.com/continuous-delphi/delphi-compiler-versions
5-
License: MIT
6-
}
1+
(*-----------------------------------------------------------------------------
2+
delphi-compiler-versions
3+
4+
Canonical Delphi compiler version mapping based on official VER### symbols.
5+
Provides standardized symbols for use in {$IFDEF} and related conditional compilation.
6+
Permissively licensed for unrestricted use in commercial and open-source projects.
7+
8+
Generated from: data/delphi-compiler-versions.json
9+
Auto-generated file. Do not edit manually; update the canonical source instead.
10+
11+
Project repository:
12+
https://github.com/continuous-delphi/delphi-compiler-versions
13+
14+
Part of Continuous-Delphi: Strengthening Delphi's continued success
15+
https://github.com/continuous-delphi
16+
17+
Compiler version data also used by the PowerShell toolchain discovery tool:
18+
https://github.com/continuous-delphi/delphi-inspect
19+
20+
Copyright (c) 2026 Darian Miller
21+
Licensed under the MIT License.
22+
https://opensource.org/licenses/MIT
23+
SPDX-License-Identifier: MIT
24+
-----------------------------------------------------------------------------*)
725

826
{ ---------------------------------------------------------------------------
927
Metadata

generated/DelphiCompilerVersions.pas

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,29 @@
11
unit DelphiCompilerVersions;
22

3+
(*-----------------------------------------------------------------------------
4+
delphi-compiler-versions
5+
6+
Canonical Delphi compiler version mapping based on official VER### symbols.
7+
Provides a single source of truth for version detection in Delphi tooling.
8+
Permissively licensed for unrestricted use in commercial and open-source projects.
9+
10+
Auto-generated file. Do not edit manually; update the canonical source instead.
11+
12+
Project repository:
13+
https://github.com/continuous-delphi/delphi-compiler-versions
14+
15+
Part of Continuous-Delphi: Strengthening Delphi's continued success
16+
https://github.com/continuous-delphi
17+
18+
Compiler version data also used by the PowerShell toolchain discovery tool:
19+
https://github.com/continuous-delphi/delphi-inspect
20+
21+
Copyright (c) 2026 Darian Miller
22+
Licensed under the MIT License.
23+
https://opensource.org/licenses/MIT
24+
SPDX-License-Identifier: MIT
25+
-----------------------------------------------------------------------------*)
26+
327
interface
428

529
type

tools/generate-delphi-compiler-versions-inc.ps1

Lines changed: 24 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -184,12 +184,30 @@ function Get-MinTokenForIndex([int]$idx) {
184184
return $null
185185
}
186186

187-
Emit '{'
188-
Emit ' DELPHI_COMPILER_VERSIONS.inc'
189-
Emit ' Generated from: data/delphi-compiler-versions.json'
190-
Emit ' Home Repo: https://github.com/continuous-delphi/delphi-compiler-versions'
191-
Emit ' License: MIT'
192-
Emit '}'
187+
Emit '(*-----------------------------------------------------------------------------'
188+
Emit ' delphi-compiler-versions'
189+
Emit
190+
Emit ' Canonical Delphi compiler version mapping based on official VER### symbols.'
191+
Emit ' Provides standardized symbols for use in {$IFDEF} and related conditional compilation.'
192+
Emit ' Permissively licensed for unrestricted use in commercial and open-source projects.'
193+
Emit
194+
Emit ' Generated from: data/delphi-compiler-versions.json'
195+
Emit ' Auto-generated file. Do not edit manually; update the canonical source instead.'
196+
Emit
197+
Emit ' Project repository:'
198+
Emit ' https://github.com/continuous-delphi/delphi-compiler-versions'
199+
Emit
200+
Emit " Part of Continuous-Delphi: Strengthening Delphi's continued success"
201+
Emit ' https://github.com/continuous-delphi'
202+
Emit
203+
Emit ' Compiler version data also used by the PowerShell toolchain discovery tool:'
204+
Emit ' https://github.com/continuous-delphi/delphi-inspect'
205+
Emit
206+
Emit ' Copyright (c) 2026 Darian Miller'
207+
Emit ' Licensed under the MIT License.'
208+
Emit ' https://opensource.org/licenses/MIT'
209+
Emit ' SPDX-License-Identifier: MIT'
210+
Emit '-----------------------------------------------------------------------------*)'
193211
Emit
194212
Emit '{ ---------------------------------------------------------------------------'
195213
Emit ' Metadata'

tools/generate-delphi-compiler-versions-pas.ps1

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -165,6 +165,30 @@ $sb = New-Object System.Text.StringBuilder
165165

166166
$null = $sb.AppendLine('unit DelphiCompilerVersions;')
167167
$null = $sb.AppendLine()
168+
$null = $sb.AppendLine('(*-----------------------------------------------------------------------------')
169+
$null = $sb.AppendLine(' delphi-compiler-versions')
170+
$null = $sb.AppendLine()
171+
$null = $sb.AppendLine(' Canonical Delphi compiler version mapping based on official VER### symbols.')
172+
$null = $sb.AppendLine(' Provides a single source of truth for version detection in Delphi tooling.')
173+
$null = $sb.AppendLine(' Permissively licensed for unrestricted use in commercial and open-source projects.')
174+
$null = $sb.AppendLine()
175+
$null = $sb.AppendLine(' Auto-generated file. Do not edit manually; update the canonical source instead.')
176+
$null = $sb.AppendLine()
177+
$null = $sb.AppendLine(' Project repository:')
178+
$null = $sb.AppendLine(' https://github.com/continuous-delphi/delphi-compiler-versions')
179+
$null = $sb.AppendLine()
180+
$null = $sb.AppendLine(" Part of Continuous-Delphi: Strengthening Delphi's continued success")
181+
$null = $sb.AppendLine(' https://github.com/continuous-delphi')
182+
$null = $sb.AppendLine()
183+
$null = $sb.AppendLine(' Compiler version data also used by the PowerShell toolchain discovery tool:')
184+
$null = $sb.AppendLine(' https://github.com/continuous-delphi/delphi-inspect')
185+
$null = $sb.AppendLine()
186+
$null = $sb.AppendLine(' Copyright (c) 2026 Darian Miller')
187+
$null = $sb.AppendLine(' Licensed under the MIT License.')
188+
$null = $sb.AppendLine(' https://opensource.org/licenses/MIT')
189+
$null = $sb.AppendLine(' SPDX-License-Identifier: MIT')
190+
$null = $sb.AppendLine('-----------------------------------------------------------------------------*)')
191+
$null = $sb.AppendLine()
168192
$null = $sb.AppendLine('interface')
169193
$null = $sb.AppendLine()
170194
$null = $sb.AppendLine('type')

0 commit comments

Comments
 (0)