SConscript revision 4394
1955SN/A# -*- mode:python -*-
2955SN/A
31762SN/A# Copyright (c) 2006 The Regents of The University of Michigan
4955SN/A# All rights reserved.
5955SN/A#
6955SN/A# Redistribution and use in source and binary forms, with or without
7955SN/A# modification, are permitted provided that the following conditions are
8955SN/A# met: redistributions of source code must retain the above copyright
9955SN/A# notice, this list of conditions and the following disclaimer;
10955SN/A# redistributions in binary form must reproduce the above copyright
11955SN/A# notice, this list of conditions and the following disclaimer in the
12955SN/A# documentation and/or other materials provided with the distribution;
13955SN/A# neither the name of the copyright holders nor the names of its
14955SN/A# contributors may be used to endorse or promote products derived from
15955SN/A# this software without specific prior written permission.
16955SN/A#
17955SN/A# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
18955SN/A# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
19955SN/A# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
20955SN/A# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
21955SN/A# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
22955SN/A# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
23955SN/A# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
24955SN/A# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
25955SN/A# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
26955SN/A# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
27955SN/A# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
282665Ssaidi@eecs.umich.edu#
294762Snate@binkert.org# Authors: Nathan Binkert
30955SN/A
3112563Sgabeblack@google.comImport('*')
3212563Sgabeblack@google.com
335522Snate@binkert.orgdef make_cc(target, source, env):
346143Snate@binkert.org    assert(len(source) == 1)
3512371Sgabeblack@google.com    assert(len(target) == 1)
364762Snate@binkert.org
375522Snate@binkert.org    traceflags = {}
38955SN/A    execfile(str(source[0]), traceflags)
395522Snate@binkert.org    func = traceflags['gen_cc']
4011974Sgabeblack@google.com    func(str(target[0]))
41955SN/A
425522Snate@binkert.orgdef make_hh(target, source, env):
434202Sbinkertn@umich.edu    assert(len(source) == 1)
445742Snate@binkert.org    assert(len(target) == 1)
45955SN/A
464381Sbinkertn@umich.edu    traceflags = {}
474381Sbinkertn@umich.edu    execfile(str(source[0]), traceflags)
4812246Sgabeblack@google.com    func = traceflags['gen_hh']
4912246Sgabeblack@google.com    func(str(target[0]))
508334Snate@binkert.org
51955SN/Aenv.Command('traceflags.hh', 'traceflags.py', make_hh)
52955SN/Aenv.Command('traceflags.cc', 'traceflags.py', make_cc)
534202Sbinkertn@umich.edu
54955SN/ASource('annotate.cc')
554382Sbinkertn@umich.eduSource('bigint.cc')
564382Sbinkertn@umich.eduSource('circlebuf.cc')
574382Sbinkertn@umich.eduSource('cprintf.cc')
586654Snate@binkert.orgSource('crc.cc')
595517Snate@binkert.orgSource('fast_alloc.cc')
608614Sgblack@eecs.umich.eduSource('fenv.c')
617674Snate@binkert.orgSource('fifo_buffer.cc')
626143Snate@binkert.orgSource('hostinfo.cc')
636143Snate@binkert.orgSource('hybrid_pred.cc')
646143Snate@binkert.orgSource('inet.cc')
6512302Sgabeblack@google.comSource('inifile.cc')
6612302Sgabeblack@google.comSource('intmath.cc')
6712302Sgabeblack@google.comSource('match.cc')
6812371Sgabeblack@google.comSource('misc.cc')
6912371Sgabeblack@google.comSource('output.cc')
7012371Sgabeblack@google.comSource('pollevent.cc')
7112371Sgabeblack@google.comSource('random.cc')
7212371Sgabeblack@google.comSource('range.cc')
7312371Sgabeblack@google.comSource('remote_gdb.cc')
7412371Sgabeblack@google.comSource('sat_counter.cc')
7512371Sgabeblack@google.comSource('socket.cc')
7612371Sgabeblack@google.comSource('statistics.cc')
7712371Sgabeblack@google.comSource('str.cc')
7812371Sgabeblack@google.comSource('time.cc')
7912371Sgabeblack@google.comSource('trace.cc')
8012371Sgabeblack@google.comSource('traceflags.cc')
8112371Sgabeblack@google.comSource('userinfo.cc')
8212371Sgabeblack@google.com
8312371Sgabeblack@google.comSource('compression/lzss_compression.cc')
8412371Sgabeblack@google.com
8512371Sgabeblack@google.comSource('loader/aout_object.cc')
8612371Sgabeblack@google.comSource('loader/ecoff_object.cc')
8712371Sgabeblack@google.comSource('loader/elf_object.cc')
8812371Sgabeblack@google.comSource('loader/object_file.cc')
8912371Sgabeblack@google.comSource('loader/raw_object.cc')
9012371Sgabeblack@google.comSource('loader/symtab.cc')
9112371Sgabeblack@google.com
9212371Sgabeblack@google.comSource('stats/events.cc')
9312371Sgabeblack@google.comSource('stats/output.cc')
9412371Sgabeblack@google.comSource('stats/statdb.cc')
9512371Sgabeblack@google.comSource('stats/text.cc')
9612371Sgabeblack@google.comSource('stats/visit.cc')
9712371Sgabeblack@google.com
9812371Sgabeblack@google.comif env['USE_MYSQL']:
9912371Sgabeblack@google.com    Source('mysql.cc')
10012371Sgabeblack@google.com    Source('stats/mysql.cc')
10112371Sgabeblack@google.com
10212371Sgabeblack@google.comPySource('m5', 'traceflags.py')
10312371Sgabeblack@google.com