summaryrefslogtreecommitdiffstats
path: root/src/gui/ConnectWindow.cpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2008-10-01 16:58:33 +0000
committerDavid Robillard <d@drobilla.net>2008-10-01 16:58:33 +0000
commitd58eba655118adfa3c24ae74fb06eab5dedb9397 (patch)
tree974a795eb9525f44ba29043c059a479bf0bd0228 /src/gui/ConnectWindow.cpp
parenta6f5b04414bd6ffce5f0aae0be9216e0b2fe2fad (diff)
downloadingen-d58eba655118adfa3c24ae74fb06eab5dedb9397.tar.gz
ingen-d58eba655118adfa3c24ae74fb06eab5dedb9397.tar.bz2
ingen-d58eba655118adfa3c24ae74fb06eab5dedb9397.zip
Fix building without libsoup.
Documentation building either globally or per project. git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@1574 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/gui/ConnectWindow.cpp')
-rw-r--r--src/gui/ConnectWindow.cpp13
1 files changed, 11 insertions, 2 deletions
diff --git a/src/gui/ConnectWindow.cpp b/src/gui/ConnectWindow.cpp
index 5600a0b2..dca29a2d 100644
--- a/src/gui/ConnectWindow.cpp
+++ b/src/gui/ConnectWindow.cpp
@@ -28,9 +28,13 @@
#include "engine/tuning.hpp"
#include "engine/Engine.hpp"
#include "engine/QueuedEngineInterface.hpp"
-#include "client/OSCClientReceiver.hpp"
+#ifdef HAVE_SOUP
#include "client/HTTPClientReceiver.hpp"
+#endif
+#ifdef HAVE_LIBLO
+#include "client/OSCClientReceiver.hpp"
#include "client/OSCEngineSender.hpp"
+#endif
#include "client/ThreadedSigClientInterface.hpp"
#include "client/ClientStore.hpp"
#include "client/PatchModel.hpp"
@@ -155,6 +159,7 @@ ConnectWindow::connect(bool existing)
Ingen::Shared::World* world = App::instance().world();
+#ifdef HAVE_LIBLO
if (_mode == CONNECT_REMOTE) {
if (!existing) {
const string url = (_widgets_loaded ? (string)_url_entry->get_text() : world->engine->uri());
@@ -168,8 +173,10 @@ ConnectWindow::connect(bool existing)
const string& scheme = uri.substr(0, uri.find(":"));
if (scheme == "osc.udp" || scheme == "osc.tcp")
client = SharedPtr<OSCClientReceiver>(new OSCClientReceiver(16181, tsci)); // FIXME: port
+#ifdef HAVE_SOUP
else if (scheme == "http")
client = SharedPtr<HTTPClientReceiver>(new HTTPClientReceiver(world, uri, tsci));
+#endif
App::instance().attach(tsci, client);
App::instance().register_callbacks();
@@ -202,7 +209,9 @@ ConnectWindow::connect(bool existing)
cerr << "Failed to launch ingen process." << endl;
}
- } else if (_mode == INTERNAL) {
+ } else
+#endif
+ if (_mode == INTERNAL) {
Ingen::Shared::World* world = App::instance().world();
if ( ! world->local_engine) {
assert(_new_engine);