summaryrefslogtreecommitdiffstats
path: root/src/progs/ingen/main.cpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2007-08-01 19:09:43 +0000
committerDavid Robillard <d@drobilla.net>2007-08-01 19:09:43 +0000
commit84b9118ee4dcc180b8fbae85910bec0590858680 (patch)
tree864567eb98e7a0078fd54cf474abf6eebeabf1fc /src/progs/ingen/main.cpp
parentef623f2f3c934d0f3d17d9d8850d59e220fefc52 (diff)
downloadingen-84b9118ee4dcc180b8fbae85910bec0590858680.tar.gz
ingen-84b9118ee4dcc180b8fbae85910bec0590858680.tar.bz2
ingen-84b9118ee4dcc180b8fbae85910bec0590858680.zip
Added missing bindings files.
git-svn-id: http://svn.drobilla.net/lad/ingen@668 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/progs/ingen/main.cpp')
-rw-r--r--src/progs/ingen/main.cpp9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/progs/ingen/main.cpp b/src/progs/ingen/main.cpp
index f424eff0..eb93407b 100644
--- a/src/progs/ingen/main.cpp
+++ b/src/progs/ingen/main.cpp
@@ -32,9 +32,12 @@
#include "engine/Engine.hpp"
#include "engine/QueuedEngineInterface.hpp"
#include "serialisation/Loader.hpp"
-#include "bindings/ingen_bindings.hpp"
#include "cmdline.h"
+#ifdef WITH_BINDINGS
+#include "bindings/ingen_bindings.hpp"
+#endif
+
using namespace std;
using namespace Ingen;
@@ -202,6 +205,7 @@ main(int argc, char** argv)
/* Run a script */
if (args.run_given) {
+#ifdef WITH_BINDINGS
bool (*run_script)(Ingen::Shared::World*, const char*) = NULL;
SharedPtr<Glib::Module> bindings_module = Ingen::Shared::load_module("ingen_bindings");
if (!bindings_module)
@@ -218,6 +222,9 @@ main(int argc, char** argv)
} else {
cerr << "FAILED: " << Glib::Module::get_last_error() << endl;
}
+#else
+ cerr << "This build of ingen does not support scripting." << endl;
+#endif
/* Listen to OSC and do our own main thing. */
} else if (engine && !ran_gui) {