Import Amiga applications and desktop tools

This commit is contained in:
Alberto committed 2026-11-11 16:21:50 +01:00
commit 1c144c9a3c
347 files changed
+423483

No files matched your search

+26
View File
@@ -0,0 +1,26 @@
param([string]$Toolchain = $env:AMIGA_TOOLCHAIN)
$ErrorActionPreference = 'Stop'
if (!$Toolchain) { throw 'Specificare -Toolchain con la cartella che contiene bin e targets/m68k-amigaos.' }
$Toolchain = (Resolve-Path -LiteralPath $Toolchain).Path
$targetPath = Join-Path $Toolchain 'targets/m68k-amigaos'
$buildPath = Join-Path $PSScriptRoot 'build'
$configPath = Join-Path $buildPath 'vbcc'
New-Item -ItemType Directory -Path (Join-Path $configPath 'config') -Force | Out-Null
$config = [IO.File]::ReadAllText((Join-Path $PSScriptRoot 'vbcc-config.in')).Replace('@TARGET@', $targetPath.Replace('\','/'))
[IO.File]::WriteAllText((Join-Path $configPath 'config/boing'), $config)
$previousVBCC = $env:VBCC
$previousPath = $env:PATH
try {
$env:VBCC = $configPath
$env:PATH = (Join-Path $Toolchain 'bin') + ';' + $env:PATH
Push-Location -LiteralPath $PSScriptRoot
try {
& (Join-Path $Toolchain 'bin/vc.exe') +boing -O2 -c99 -Ithird_party/amissl/include -o build/RetroIRC retroirc.c irc.c bell.c clipboard.c tls.c
if ($LASTEXITCODE -ne 0) { throw 'Compilazione fallita.' }
Copy-Item -LiteralPath assets/bell.raw,assets/RetroIRC.info -Destination $buildPath -Force
} finally { Pop-Location }
} finally {
$env:VBCC = $previousVBCC
$env:PATH = $previousPath
}
Write-Output ('Pronto per Amiga: ' + $buildPath)