SConscript (4053:ee914b22709e) | SConscript (4078:3f73f808bbd4) |
---|---|
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 --- 96 unchanged lines hidden (view full) --- 105 '$SWIG $SWIGFLAGS -outdir ${TARGETS[1].dir} ' 106 '-o ${TARGETS[0]} $SOURCES') 107 pyzip_dep_files.append('m5/internal/%s.py' % basename) 108 109swig_it('main') 110swig_it('debug') 111swig_it('event') 112swig_it('random') | 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 --- 96 unchanged lines hidden (view full) --- 105 '$SWIG $SWIGFLAGS -outdir ${TARGETS[1].dir} ' 106 '-o ${TARGETS[0]} $SOURCES') 107 pyzip_dep_files.append('m5/internal/%s.py' % basename) 108 109swig_it('main') 110swig_it('debug') 111swig_it('event') 112swig_it('random') |
113swig_it('stats') |
|
113swig_it('trace') 114 115# Action function to build the zip archive. Uses the PyZipFile module 116# included in the standard Python library. 117def buildPyZip(target, source, env): 118 pzf = PyZipFile(str(target[0]), 'w') 119 for s in source: 120 pzf.writepy(str(s)) 121 122# Add the zip file target to the environment. 123env.Command('m5py.zip', pyzip_files, buildPyZip) 124env.Depends('m5py.zip', pyzip_dep_files) | 114swig_it('trace') 115 116# Action function to build the zip archive. Uses the PyZipFile module 117# included in the standard Python library. 118def buildPyZip(target, source, env): 119 pzf = PyZipFile(str(target[0]), 'w') 120 for s in source: 121 pzf.writepy(str(s)) 122 123# Add the zip file target to the environment. 124env.Command('m5py.zip', pyzip_files, buildPyZip) 125env.Depends('m5py.zip', pyzip_dep_files) |