diff options
author | David Robillard <d@drobilla.net> | 2008-10-12 06:47:11 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2008-10-12 06:47:11 +0000 |
commit | d154ae5b114a6a04acd17a83f6d59caa9ec1005a (patch) | |
tree | 5803f386ddfc608ec565226ad658c9562157ada7 /src/engine/wscript | |
parent | 57698964f1e88b2b74a0ce31ffaba3044d884dac (diff) | |
download | ingen-d154ae5b114a6a04acd17a83f6d59caa9ec1005a.tar.gz ingen-d154ae5b114a6a04acd17a83f6d59caa9ec1005a.tar.bz2 ingen-d154ae5b114a6a04acd17a83f6d59caa9ec1005a.zip |
Split OSC/HTTP/JACK dependencies from ingen into separate libraries so engine library doesn't have a link time dependence on liblo/soap/libjack.
Preliminary Ingen LV2 code wrapper (not functional yet).
git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@1653 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/engine/wscript')
-rw-r--r-- | src/engine/wscript | 41 |
1 files changed, 33 insertions, 8 deletions
diff --git a/src/engine/wscript b/src/engine/wscript index 1f2ec1f3..ad5c3a96 100644 --- a/src/engine/wscript +++ b/src/engine/wscript @@ -18,8 +18,6 @@ def build(bld): GraphObjectImpl.cpp InputPort.cpp InternalPlugin.cpp - JackAudioDriver.cpp - JackMidiDriver.cpp LADSPAPlugin.cpp LV2Info.cpp LV2Plugin.cpp @@ -36,7 +34,6 @@ def build(bld): PortImpl.cpp PostProcessor.cpp ProcessSlave.cpp - QueuedEngineInterface.cpp QueuedEvent.cpp QueuedEventSource.cpp TransportNode.cpp @@ -75,13 +72,41 @@ def build(bld): obj.source += ' LADSPANode.cpp ' if bld.env()['HAVE_SLV2']: obj.source += ' LV2Node.cpp ' - if bld.env()['HAVE_SOUP']: - obj.source += ' HTTPEngineReceiver.cpp ' - if bld.env()['HAVE_LIBLO']: - obj.source += ' OSCEngineReceiver.cpp OSCClientSender.cpp ' obj.includes = ['.', '..', '../common', './events'] obj.name = 'libingen_engine' obj.target = 'ingen_engine' obj.inst_dir = 'lib/ingen' - autowaf.use_lib(bld, obj, 'GLIBMM GTHREAD LV2CORE SLV2 JACK LIBLO RAUL REDLANDMM SOUP') + core_libs = 'GLIBMM GTHREAD LV2CORE SLV2 RAUL REDLANDMM' + autowaf.use_lib(bld, obj, core_libs) + + if bld.env()['HAVE_SOUP'] or bld.env()['HAVE_LIBLO']: + obj.source += ' QueuedEngineInterface.cpp ' + + if bld.env()['HAVE_SOUP']: + obj = bld.create_obj('cpp', 'shlib') + obj.source = 'HTTPEngineReceiver.cpp' + obj.includes = ['.', '..', '../common', './events', '../engine'] + obj.name = 'libingen_engine_http' + obj.target = 'ingen_engine_http' + obj.inst_dir = 'lib/ingen' + autowaf.use_lib(bld, obj, core_libs + ' SOUP') + + if bld.env()['HAVE_LIBLO']: + obj = bld.create_obj('cpp', 'shlib') + obj.source = 'OSCClientSender.cpp OSCEngineReceiver.cpp' + obj.includes = ['.', '..', '../common', './events', '../engine'] + obj.name = 'libingen_engine_osc' + obj.target = 'ingen_engine_osc' + obj.inst_dir = 'lib/ingen' + autowaf.use_lib(bld, obj, core_libs + ' LIBLO') + + if bld.env()['HAVE_JACK']: + obj = bld.create_obj('cpp', 'shlib') + obj.source = 'JackAudioDriver.cpp JackMidiDriver.cpp' + obj.includes = ['.', '..', '../common', './events', '../engine'] + obj.name = 'libingen_engine_jack' + obj.target = 'ingen_engine_jack' + obj.inst_dir = 'lib/ingen' + autowaf.use_lib(bld, obj, core_libs + ' JACK') + |