Nie możesz wybrać więcej, niż 25 tematów Tematy muszą się zaczynać od litery lub cyfry, mogą zawierać myślniki ('-') i mogą mieć do 35 znaków.

32 wiersze
1005B

  1. <#
  2. .SYNOPSIS
  3. Build every target (or one target) listed in project.json.
  4. .DESCRIPTION
  5. Reads resolved.targets from project.json. cc65 targets compile every .c and .s file in the
  6. target's source folders; BASIC targets tokenize the listing with petcat. Targets with a disk
  7. section also get a disk image built with c1541. Outputs go to build/ (ignored by Git).
  8. Exit codes: 0 = built, 1 = build error, 2 = a required tool is missing.
  9. .EXAMPLE
  10. pwsh -File tools/build.ps1
  11. pwsh -File tools/build.ps1 -Target c64
  12. #>
  13. [CmdletBinding()]
  14. param([string]$Target)
  15. . (Join-Path $PSScriptRoot 'lib.ps1')
  16. try {
  17. $project = Get-ProjectConfig
  18. $done = @{}
  19. foreach ($t in Get-ProjectTargets $project $Target) { Invoke-TargetBuild $project $t $done }
  20. Write-Host "Build complete."
  21. } catch [MissingToolException] {
  22. Write-Host $_.Exception.Message -ForegroundColor Yellow
  23. exit 2
  24. } catch {
  25. Write-Host "BUILD FAILED: $($_.Exception.Message)" -ForegroundColor Red
  26. exit 1
  27. }

Powered by TurnKey Linux.