Skip to content

Latest commit

 

History

History
54 lines (34 loc) · 1.53 KB

README.md

File metadata and controls

54 lines (34 loc) · 1.53 KB

PortAudio Automatic Build Script for PowerShell

Languages: 🇯🇵

How to use

Clone or git submodule add this repo, or just download build_portaudio_win.ps1.

Then, all you have to do is just to execute the script. ASIO & WASAPI are enabled by default in Windows.

.\build_portaudio_win.ps1

And copy the built library files (static library / DLL) to your project.

Copy-Item portaudio_build\Release\portaudio_x64.dll $USERPROFILE\path\to\your\project\build\Release\

Requirements

  • Visual C++ 2019 or 2017 (only in Windows)
  • CMake 3.13+ (what is bundled in Visual Studio 2019 is acceptable)
  • Ninja (what is bundled in VS is acceptable; optional)
  • WintellectPowerShell (only in Windows)

Primary options

Name Description
-DebugBuild Builds for debug.
-PrefersNinja Builds using Ninja instead of MSBuild (Make in non-Windows).
-DownloadOnly Just downloads, doesn't build.

Compilation in non-Windows

You can build PortAudio by this script even in Linux (or macOS) if you install PowerShell 6+. You can install it to Linux by:

sudo snap install --classic powershell

After installation, execute this script by:

pwsh ./build_portaudio_win.ps1

License

MIT