SConscript (4202:f7a05daec670) SConscript (4295:28a2ef59d0ca)
1# -*- mode:python -*-
2
3# Copyright (c) 2006 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

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

25# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
26# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
27# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
28#
29# Authors: Nathan Binkert
30
31Import('*')
32
1# -*- mode:python -*-
2
3# Copyright (c) 2006 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

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

25# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
26# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
27# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
28#
29# Authors: Nathan Binkert
30
31Import('*')
32
33# base/traceflags.{cc,hh} are generated from base/traceflags.py.
34# $TARGET.base will expand to "<build-dir>/base/traceflags".
35env.Command(['traceflags.hh', 'traceflags.cc'], 'traceflags.py',
36 'python $SOURCE $TARGET.base')
33def make_cc(target, source, env):
34 assert(len(source) == 1)
35 assert(len(target) == 1)
37
36
37 traceflags = {}
38 execfile(str(source[0]), traceflags)
39 func = traceflags['gen_cc']
40 func(str(target[0]))
41
42def make_hh(target, source, env):
43 assert(len(source) == 1)
44 assert(len(target) == 1)
45
46 traceflags = {}
47 execfile(str(source[0]), traceflags)
48 func = traceflags['gen_hh']
49 func(str(target[0]))
50
51env.Command('traceflags.hh', 'traceflags.py', make_hh)
52env.Command('traceflags.cc', 'traceflags.py', make_cc)
53
38Source('annotate.cc')
39Source('bigint.cc')
40Source('circlebuf.cc')
41Source('cprintf.cc')
42Source('crc.cc')
43Source('fast_alloc.cc')
44Source('fifo_buffer.cc')
45Source('hostinfo.cc')

--- 38 unchanged lines hidden ---
54Source('annotate.cc')
55Source('bigint.cc')
56Source('circlebuf.cc')
57Source('cprintf.cc')
58Source('crc.cc')
59Source('fast_alloc.cc')
60Source('fifo_buffer.cc')
61Source('hostinfo.cc')

--- 38 unchanged lines hidden ---