Added ability to use system PortAudio

This commit is contained in:
Julian Sikorski 2015-07-05 22:08:10 +02:00
parent e3e03e67d1
commit 1b5d213aaa
3 changed files with 16 additions and 0 deletions

View File

@ -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
#-------------------------------------------------

View File

@ -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",

View File

@ -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