#!/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-%s' % bld.env.INGEN_MAJOR_VERSION, vnum = bld.env.INGEN_VERSION, 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')