SConscript (4202:f7a05daec670) SConscript (4379:69a44bfdcaf7)
1# -*- mode:python -*-
2
3# Copyright (c) 2004-2005 The Regents of The University of Michigan
4# All rights reserved.
5#
6# Redistribution and use in source and binary forms, with or without
7# modification, are permitted provided that the following conditions are
8# met: redistributions of source code must retain the above copyright

--- 87 unchanged lines hidden (view full) ---

96addPkg('m5')
97pyzip_files.append('m5/defines.py')
98pyzip_files.append('m5/info.py')
99pyzip_files.append(join(env['ROOT'], 'util/pbs/jobfile.py'))
100pyzip_files.append(join(env['ROOT'], 'src/base/traceflags.py'))
101
102swig_modules = []
103def swig_it(module):
1# -*- mode:python -*-
2
3# Copyright (c) 2004-2005 The Regents of The University of Michigan
4# All rights reserved.
5#
6# Redistribution and use in source and binary forms, with or without
7# modification, are permitted provided that the following conditions are
8# met: redistributions of source code must retain the above copyright

--- 87 unchanged lines hidden (view full) ---

96addPkg('m5')
97pyzip_files.append('m5/defines.py')
98pyzip_files.append('m5/info.py')
99pyzip_files.append(join(env['ROOT'], 'util/pbs/jobfile.py'))
100pyzip_files.append(join(env['ROOT'], 'src/base/traceflags.py'))
101
102swig_modules = []
103def swig_it(module):
104 env.Command(['swig/%s_wrap.cc' % module, 'm5/internal/%s.py' % module],
105 'swig/%s.i' % module,
104 cc_file = 'swig/%s_wrap.cc' % module
105 py_file = 'm5/internal/%s.py' % module
106 source = File('swig/%s.i' % module)
107 source.rfile() # Hack to cause the symlink to the .i file to be created
108 env.Command([cc_file, py_file], source,
106 '$SWIG $SWIGFLAGS -outdir ${TARGETS[1].dir} '
107 '-o ${TARGETS[0]} $SOURCES')
108 swig_modules.append(module)
109 Source('swig/%s_wrap.cc' % module)
110
111Source('swig/init.cc')
112Source('swig/pyevent.cc')
113Source('swig/pyobject.cc')

--- 45 unchanged lines hidden ---
109 '$SWIG $SWIGFLAGS -outdir ${TARGETS[1].dir} '
110 '-o ${TARGETS[0]} $SOURCES')
111 swig_modules.append(module)
112 Source('swig/%s_wrap.cc' % module)
113
114Source('swig/init.cc')
115Source('swig/pyevent.cc')
116Source('swig/pyobject.cc')

--- 45 unchanged lines hidden ---