Add a scons hack to force symlinks to the swig .i files
to be created --HG-- extra : convert_revision : 826cc692614528f987c80c3410cb025190f0a4e0
This commit is contained in:
parent
6ec510385d
commit
fa2a93a236
1 changed files with 5 additions and 2 deletions
|
@ -101,8 +101,11 @@ pyzip_files.append(join(env['ROOT'], 'src/base/traceflags.py'))
|
||||||
|
|
||||||
swig_modules = []
|
swig_modules = []
|
||||||
def swig_it(module):
|
def swig_it(module):
|
||||||
env.Command(['swig/%s_wrap.cc' % module, 'm5/internal/%s.py' % module],
|
cc_file = 'swig/%s_wrap.cc' % module
|
||||||
'swig/%s.i' % module,
|
py_file = 'm5/internal/%s.py' % module
|
||||||
|
source = File('swig/%s.i' % module)
|
||||||
|
source.rfile() # Hack to cause the symlink to the .i file to be created
|
||||||
|
env.Command([cc_file, py_file], source,
|
||||||
'$SWIG $SWIGFLAGS -outdir ${TARGETS[1].dir} '
|
'$SWIG $SWIGFLAGS -outdir ${TARGETS[1].dir} '
|
||||||
'-o ${TARGETS[0]} $SOURCES')
|
'-o ${TARGETS[0]} $SOURCES')
|
||||||
swig_modules.append(module)
|
swig_modules.append(module)
|
||||||
|
|
Loading…
Reference in a new issue