diff --git a/makefile b/makefile index cef9e15dc53..2170fbca317 100644 --- a/makefile +++ b/makefile @@ -60,6 +60,7 @@ # USE_SYSTEM_LIB_LUA = 1 # USE_SYSTEM_LIB_SQLITE3 = 1 # USE_SYSTEM_LIB_PORTMIDI = 1 +# USE_SYSTEM_LIB_PORTAUDIO = 1 # MESA_INSTALL_ROOT = /opt/mesa # SDL_INSTALL_ROOT = /opt/sdl2 @@ -336,6 +337,10 @@ ifndef USE_SYSTEM_LIB_PORTMIDI PARAMS += --with-bundled-portmidi endif +ifndef USE_SYSTEM_LIB_PORTAUDIO +PARAMS += --with-bundled-portaudio +endif + #------------------------------------------------- # distribution may change things #------------------------------------------------- diff --git a/scripts/genie.lua b/scripts/genie.lua index 150c6d73294..cfe0efeff9e 100644 --- a/scripts/genie.lua +++ b/scripts/genie.lua @@ -128,6 +128,11 @@ newoption { description = 'Build bundled PortMidi library', } +newoption { + trigger = 'with-bundled-portaudio', + description = 'Build bundled PortAudio library', +} + newoption { trigger = "distro", description = "Choose distribution", diff --git a/scripts/src/3rdparty.lua b/scripts/src/3rdparty.lua index c2808c55dc5..889a6737cd5 100644 --- a/scripts/src/3rdparty.lua +++ b/scripts/src/3rdparty.lua @@ -650,6 +650,7 @@ end -- PortAudio library objects -------------------------------------------------- +if _OPTIONS["with-bundled-portaudio"] then project "portaudio" uuid "0755c5f5-eccf-47f3-98a9-df67018a94d4" kind "StaticLib" @@ -775,6 +776,11 @@ project "portaudio" "-Wshadow" } end +else +links { + "portaudio", +} +end -------------------------------------------------- -- UnitTest++ library objects