SConscript revision 4494
12929Sktlim@umich.edu# -*- mode:python -*-
211504Sandreas.sandberg@arm.com
311504Sandreas.sandberg@arm.com# Copyright (c) 2006 The Regents of The University of Michigan
411504Sandreas.sandberg@arm.com# All rights reserved.
511504Sandreas.sandberg@arm.com#
611504Sandreas.sandberg@arm.com# Redistribution and use in source and binary forms, with or without
711504Sandreas.sandberg@arm.com# modification, are permitted provided that the following conditions are
811504Sandreas.sandberg@arm.com# met: redistributions of source code must retain the above copyright
911504Sandreas.sandberg@arm.com# notice, this list of conditions and the following disclaimer;
1011504Sandreas.sandberg@arm.com# redistributions in binary form must reproduce the above copyright
1111504Sandreas.sandberg@arm.com# notice, this list of conditions and the following disclaimer in the
1211504Sandreas.sandberg@arm.com# documentation and/or other materials provided with the distribution;
1311504Sandreas.sandberg@arm.com# neither the name of the copyright holders nor the names of its
1411504Sandreas.sandberg@arm.com# contributors may be used to endorse or promote products derived from
152932Sktlim@umich.edu# this software without specific prior written permission.
162929Sktlim@umich.edu#
172929Sktlim@umich.edu# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
182929Sktlim@umich.edu# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
192929Sktlim@umich.edu# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
202929Sktlim@umich.edu# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
212929Sktlim@umich.edu# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
222929Sktlim@umich.edu# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
232929Sktlim@umich.edu# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
242929Sktlim@umich.edu# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
252929Sktlim@umich.edu# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
262929Sktlim@umich.edu# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
272929Sktlim@umich.edu# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
282929Sktlim@umich.edu#
292929Sktlim@umich.edu# Authors: Nathan Binkert
302929Sktlim@umich.edu
312929Sktlim@umich.eduImport('*')
322929Sktlim@umich.edu
332929Sktlim@umich.edudef make_cc(target, source, env):
342929Sktlim@umich.edu    assert(len(source) == 1)
352929Sktlim@umich.edu    assert(len(target) == 1)
362929Sktlim@umich.edu
372929Sktlim@umich.edu    traceflags = {}
382929Sktlim@umich.edu    execfile(str(source[0]), traceflags)
392929Sktlim@umich.edu    func = traceflags['gen_cc']
402932Sktlim@umich.edu    func(str(target[0]))
412932Sktlim@umich.edu
422932Sktlim@umich.edudef make_hh(target, source, env):
4311504Sandreas.sandberg@arm.com    assert(len(source) == 1)
442929Sktlim@umich.edu    assert(len(target) == 1)
452929Sktlim@umich.edu
4611504Sandreas.sandberg@arm.com    traceflags = {}
4711504Sandreas.sandberg@arm.com    execfile(str(source[0]), traceflags)
4811504Sandreas.sandberg@arm.com    func = traceflags['gen_hh']
4911504Sandreas.sandberg@arm.com    func(str(target[0]))
5011504Sandreas.sandberg@arm.com
5111504Sandreas.sandberg@arm.comenv.Command('traceflags.hh', 'traceflags.py', make_hh)
5211504Sandreas.sandberg@arm.comenv.Command('traceflags.cc', 'traceflags.py', make_cc)
5312246Sgabeblack@google.com
542929Sktlim@umich.eduSource('annotate.cc')
552929Sktlim@umich.eduSource('bigint.cc')
562929Sktlim@umich.eduSource('circlebuf.cc')
578947Sandreas.hansson@arm.comSource('cprintf.cc')
5812246Sgabeblack@google.comSource('crc.cc')
598947Sandreas.hansson@arm.comSource('fast_alloc.cc')
602929Sktlim@umich.eduSource('fenv.c')
612929Sktlim@umich.eduSource('fifo_buffer.cc')
6211504Sandreas.sandberg@arm.comSource('hostinfo.cc')
6311504Sandreas.sandberg@arm.comSource('hybrid_pred.cc')
6411504Sandreas.sandberg@arm.comSource('inet.cc')
6511504Sandreas.sandberg@arm.comSource('inifile.cc')
6611504Sandreas.sandberg@arm.comSource('intmath.cc')
6711504Sandreas.sandberg@arm.comSource('match.cc')
6811504Sandreas.sandberg@arm.comSource('misc.cc')
692929Sktlim@umich.eduSource('output.cc')
7011504Sandreas.sandberg@arm.comSource('pollevent.cc')
7111504Sandreas.sandberg@arm.comSource('random.cc')
726007Ssteve.reinhardt@amd.comSource('range.cc')
736007Ssteve.reinhardt@amd.comSource('remote_gdb.cc')
7411504Sandreas.sandberg@arm.comSource('sat_counter.cc')
752929Sktlim@umich.eduSource('socket.cc')
762929Sktlim@umich.eduSource('statistics.cc')
7711504Sandreas.sandberg@arm.comSource('str.cc')
786007Ssteve.reinhardt@amd.comSource('time.cc')
796007Ssteve.reinhardt@amd.comSource('trace.cc')
809781Sandreas.hansson@arm.comSource('traceflags.cc')
816007Ssteve.reinhardt@amd.comSource('userinfo.cc')
8211504Sandreas.sandberg@arm.com
832929Sktlim@umich.eduSource('compression/lzss_compression.cc')
842929Sktlim@umich.edu
8511504Sandreas.sandberg@arm.comSource('loader/aout_object.cc')
8611504Sandreas.sandberg@arm.comSource('loader/ecoff_object.cc')
8711504Sandreas.sandberg@arm.comSource('loader/elf_object.cc')
8811504Sandreas.sandberg@arm.comSource('loader/object_file.cc')
8911504Sandreas.sandberg@arm.comSource('loader/raw_object.cc')
906007Ssteve.reinhardt@amd.comSource('loader/symtab.cc')
9111504Sandreas.sandberg@arm.com
9211504Sandreas.sandberg@arm.comSource('stats/events.cc')
9311504Sandreas.sandberg@arm.comSource('stats/output.cc')
9411504Sandreas.sandberg@arm.comSource('stats/statdb.cc')
956007Ssteve.reinhardt@amd.comSource('stats/text.cc')
9611504Sandreas.sandberg@arm.comSource('stats/visit.cc')
9711504Sandreas.sandberg@arm.com
9811504Sandreas.sandberg@arm.comif env['USE_MYSQL']:
996007Ssteve.reinhardt@amd.com    Source('mysql.cc')
1002929Sktlim@umich.edu    Source('stats/mysql.cc')
1012929Sktlim@umich.edu
1026007Ssteve.reinhardt@amd.comPySource('m5', 'traceflags.py')
1036007Ssteve.reinhardt@amd.com