summaryrefslogtreecommitdiffstats
path: root/src/wscript
diff options
context:
space:
mode:
Diffstat (limited to 'src/wscript')
-rw-r--r--src/wscript46
1 files changed, 46 insertions, 0 deletions
diff --git a/src/wscript b/src/wscript
new file mode 100644
index 00000000..07379b83
--- /dev/null
+++ b/src/wscript
@@ -0,0 +1,46 @@
+#!/usr/bin/env python
+from waflib.extras import autowaf as autowaf
+
+def build(bld):
+ sources = [
+ 'AtomReader.cpp',
+ 'AtomWriter.cpp',
+ 'ClashAvoider.cpp',
+ 'ColorContext.cpp',
+ 'Configuration.cpp',
+ 'FilePath.cpp',
+ 'Forge.cpp',
+ 'LV2Features.cpp',
+ 'Library.cpp',
+ 'Log.cpp',
+ 'Parser.cpp',
+ 'Resource.cpp',
+ 'Serialiser.cpp',
+ 'Store.cpp',
+ 'StreamWriter.cpp',
+ 'TurtleWriter.cpp',
+ 'URI.cpp',
+ 'URIMap.cpp',
+ 'URIs.cpp',
+ 'World.cpp',
+ 'runtime_paths.cpp'
+ ]
+ if bld.is_defined('HAVE_SOCKET'):
+ sources += [ 'SocketReader.cpp', 'SocketWriter.cpp' ]
+
+ lib = []
+ if bld.is_defined('HAVE_LIBDL'):
+ lib += ['dl']
+
+ obj = bld(features = 'cxx cxxshlib',
+ source = sources,
+ export_includes = ['..'],
+ includes = ['..'],
+ name = 'libingen',
+ target = 'ingen',
+ vnum = '0.0.0',
+ install_path = '${LIBDIR}',
+ lib = lib,
+ cxxflags = bld.env.PTHREAD_CFLAGS + bld.env.INGEN_TEST_CXXFLAGS,
+ linkflags = bld.env.PTHREAD_LINKFLAGS + bld.env.INGEN_TEST_LINKFLAGS)
+ autowaf.use_lib(bld, obj, 'LV2 LILV RAUL SERD SORD SRATOM')