mirror of
https://github.com/bulletphysics/bullet3
synced 2025-01-18 21:10:05 +00:00
fix Linux build
optional Midi under Linux (ALSA/libasound)
This commit is contained in:
parent
c1940169bc
commit
7cec30dede
@ -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:
|
||||
|
@ -26,6 +26,8 @@
|
||||
end
|
||||
|
||||
if os.is("Linux") then
|
||||
defines {"__LINUX_ALSA__"}
|
||||
links {"asound","pthread"}
|
||||
end
|
||||
|
||||
if os.is("MacOSX") then
|
||||
|
@ -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"
|
||||
|
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user