Create a wrapper function to more easily add swig stuff to the build
--HG-- extra : convert_revision : 3aaf540a9e314a88a8945579398f0d79aa85d5cf
This commit is contained in:
parent
2cb2b50802
commit
3f03e5f656
1 changed files with 8 additions and 11 deletions
|
@ -98,18 +98,15 @@ pyzip_files.append('m5/defines.py')
|
||||||
pyzip_files.append('m5/info.py')
|
pyzip_files.append('m5/info.py')
|
||||||
pyzip_files.append(join(env['ROOT'], 'util/pbs/jobfile.py'))
|
pyzip_files.append(join(env['ROOT'], 'util/pbs/jobfile.py'))
|
||||||
|
|
||||||
env.Command(['swig/debug_wrap.cc', 'm5/internal/debug.py'],
|
def swig_it(basename):
|
||||||
'swig/debug.i',
|
env.Command(['swig/%s_wrap.cc' % basename, 'm5/internal/%s.py' % basename],
|
||||||
|
'swig/%s.i' % basename,
|
||||||
'$SWIG $SWIGFLAGS -outdir ${TARGETS[1].dir} '
|
'$SWIG $SWIGFLAGS -outdir ${TARGETS[1].dir} '
|
||||||
'-o ${TARGETS[0]} $SOURCES')
|
'-o ${TARGETS[0]} $SOURCES')
|
||||||
|
pyzip_dep_files.append('m5/internal/%s.py' % basename)
|
||||||
|
|
||||||
env.Command(['swig/main_wrap.cc', 'm5/internal/main.py'],
|
swig_it('main')
|
||||||
'swig/main.i',
|
swig_it('debug')
|
||||||
'$SWIG $SWIGFLAGS -outdir ${TARGETS[1].dir} '
|
|
||||||
'-o ${TARGETS[0]} $SOURCES')
|
|
||||||
|
|
||||||
pyzip_dep_files.append('m5/internal/debug.py')
|
|
||||||
pyzip_dep_files.append('m5/internal/main.py')
|
|
||||||
|
|
||||||
# Action function to build the zip archive. Uses the PyZipFile module
|
# Action function to build the zip archive. Uses the PyZipFile module
|
||||||
# included in the standard Python library.
|
# included in the standard Python library.
|
||||||
|
|
Loading…
Reference in a new issue