SConscript (4086:80530ac5adef) SConscript (4123:9c80390ea1bb)
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

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

102swig_modules = []
103def swig_it(module):
104 env.Command(['swig/%s_wrap.cc' % module, 'm5/internal/%s.py' % module],
105 'swig/%s.i' % module,
106 '$SWIG $SWIGFLAGS -outdir ${TARGETS[1].dir} '
107 '-o ${TARGETS[0]} $SOURCES')
108 swig_modules.append(module)
109
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

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

102swig_modules = []
103def swig_it(module):
104 env.Command(['swig/%s_wrap.cc' % module, 'm5/internal/%s.py' % module],
105 'swig/%s.i' % module,
106 '$SWIG $SWIGFLAGS -outdir ${TARGETS[1].dir} '
107 '-o ${TARGETS[0]} $SOURCES')
108 swig_modules.append(module)
109
110swig_it('main')
110swig_it('core')
111swig_it('debug')
112swig_it('event')
113swig_it('random')
111swig_it('debug')
112swig_it('event')
113swig_it('random')
114swig_it('sim_object')
114swig_it('stats')
115swig_it('trace')
116
117# Automatically generate m5/internals/__init__.py
118def MakeInternalsInit(target, source, env):
119 f = file(str(target[0]), 'w')
120 for m in swig_modules:
121 print >>f, 'import %s' % m

--- 31 unchanged lines hidden ---
115swig_it('stats')
116swig_it('trace')
117
118# Automatically generate m5/internals/__init__.py
119def MakeInternalsInit(target, source, env):
120 f = file(str(target[0]), 'w')
121 for m in swig_modules:
122 print >>f, 'import %s' % m

--- 31 unchanged lines hidden ---