aboutsummaryrefslogtreecommitdiffstats
path: root/src/engine/wscript
diff options
context:
space:
mode:
Diffstat (limited to 'src/engine/wscript')
-rw-r--r--src/engine/wscript45
1 files changed, 45 insertions, 0 deletions
diff --git a/src/engine/wscript b/src/engine/wscript
new file mode 100644
index 0000000..1ec63a2
--- /dev/null
+++ b/src/engine/wscript
@@ -0,0 +1,45 @@
+#!/usr/bin/env python
+from waflib.extras import autowaf as autowaf
+
+def build(bld):
+ core_source = '''
+ ActionFactory.cpp
+ Controller.cpp
+ Edge.cpp
+ Engine.cpp
+ JackDriver.cpp
+ LearnRequest.cpp
+ Loader.cpp
+ Machine.cpp
+ MachineBuilder.cpp
+ MidiAction.cpp
+ Mutation.cpp
+ Node.cpp
+ Recorder.cpp
+ SMFDriver.cpp
+ SMFReader.cpp
+ SMFWriter.cpp
+ Stateful.cpp
+ Updates.cpp
+ URIs.cpp
+ '''
+ if bld.env.HAVE_EUGENE:
+ core_source += '''
+ Evolver.cpp
+ Problem.cpp
+ '''
+ obj = bld(features = 'cxx cxxshlib')
+ obj.source = core_source
+ obj.export_includes = ['.']
+ obj.includes = ['.', '..', '../..']
+ obj.name = 'libmachina_engine'
+ obj.target = 'machina_engine'
+ obj.cxxflags = '-pthread'
+ if bld.env.CXX_NAME != 'clang':
+ obj.linkflags = '-pthread'
+ core_libs = 'RAUL SERD SORD JACK LV2'
+ if bld.env.HAVE_EUGENE:
+ core_libs += ' EUGENE '
+ autowaf.use_lib(bld, obj, core_libs)
+
+ bld.add_post_fun(autowaf.run_ldconfig)