import os

Import('env', 'GlobSources')

env['lib_includes'] += GlobSources('*.[hi]pp')
env['lib_sources'] += [f for f in GlobSources('*.cpp')
        if str(f) != 'runtimepath.cpp']

rtrp = os.path.relpath(env['runtimepath'], env['libdir'])
env_rt = env.Clone()
env_rt.AppendUnique(CPPDEFINES=dict(DIFFPYRUNTIMERELPATH=rtrp))
rtso = env_rt.SharedObject('runtimepath', 'runtimepath.cpp')
env['lib_sources'] += rtso

SConscript('srreal/SConscript')

# vim: ft=python
