Wideband autonomous SDR analysis engine forked from sdr-visual-suite
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

16 lines
465B

  1. $ErrorActionPreference = 'Stop'
  2. $gcc = 'C:\msys64\mingw64\bin'
  3. if (-not (Test-Path (Join-Path $gcc 'gcc.exe'))) {
  4. throw "gcc not found at $gcc"
  5. }
  6. $env:PATH = "$gcc;" + $env:PATH
  7. $env:CGO_ENABLED = '1'
  8. $env:CGO_CFLAGS = '-IC:\PROGRA~1\SDRplay\API\inc'
  9. $env:CGO_LDFLAGS = '-LC:\PROGRA~1\SDRplay\API\x64 -lsdrplay_api'
  10. Write-Host "Building with SDRplay support..." -ForegroundColor Cyan
  11. go build -tags sdrplay ./cmd/sdrd
  12. Write-Host "Done." -ForegroundColor Green