fix Linux build

optional Midi under Linux (ALSA/libasound)
This commit is contained in:
Erwin Coumans 2014-05-05 15:37:02 -07:00
parent c1940169bc
commit 7cec30dede
4 changed files with 10 additions and 6 deletions

View File

@ -58,7 +58,8 @@ int main( int argc, char *argv[] )
std::cout << "\nReading MIDI input ... press <enter> to quit.\n";
char input;
std::cin.get(input);
// getchar();
std::cin.get(input);
cleanup:

View File

@ -26,6 +26,8 @@
end
if os.is("Linux") then
defines {"__LINUX_ALSA__"}
links {"asound","pthread"}
end
if os.is("MacOSX") then

View File

@ -30,9 +30,7 @@
"Win32Window.h",
}
end
if os.is("Linux") then
links {"pthread"}
else
if not os.is("Linux") then
excludes {
"X11OpenGLWindow.cpp",
"X11OpenGLWindows.h"

View File

@ -19,7 +19,7 @@
description = "Use Midi controller to control parameters"
}
--_OPTIONS["midi"] = "1";
-- _OPTIONS["midi"] = "1";
newoption
{
@ -118,7 +118,10 @@ include "../Demos3/SimpleOpenGL3"
include "../test/lua"
-- include "../demo/gpudemo"
include "../btgui/MidiTest"
if _OPTIONS["midi"] then
include "../btgui/MidiTest"
end
-- include "../opencl/vector_add_simplified"
-- include "../opencl/vector_add"
include "../btgui/Gwen"