SConscript revision 4295
12155SN/A# -*- mode:python -*- 22155SN/A 32155SN/A# Copyright (c) 2006 The Regents of The University of Michigan 42155SN/A# All rights reserved. 52155SN/A# 62155SN/A# Redistribution and use in source and binary forms, with or without 72155SN/A# modification, are permitted provided that the following conditions are 82155SN/A# met: redistributions of source code must retain the above copyright 92155SN/A# notice, this list of conditions and the following disclaimer; 102155SN/A# redistributions in binary form must reproduce the above copyright 112155SN/A# notice, this list of conditions and the following disclaimer in the 122155SN/A# documentation and/or other materials provided with the distribution; 132155SN/A# neither the name of the copyright holders nor the names of its 142155SN/A# contributors may be used to endorse or promote products derived from 152155SN/A# this software without specific prior written permission. 162155SN/A# 172155SN/A# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 182155SN/A# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 192155SN/A# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 202155SN/A# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 212155SN/A# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 222155SN/A# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 232155SN/A# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 242155SN/A# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 252155SN/A# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 262155SN/A# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 272155SN/A# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 282665Ssaidi@eecs.umich.edu# 292665Ssaidi@eecs.umich.edu# Authors: Nathan Binkert 302155SN/A 314202Sbinkertn@umich.eduImport('*') 322155SN/A 339850Sandreas.hansson@arm.comdef make_cc(target, source, env): 349850Sandreas.hansson@arm.com assert(len(source) == 1) 359850Sandreas.hansson@arm.com assert(len(target) == 1) 367768SAli.Saidi@ARM.com 377768SAli.Saidi@ARM.com traceflags = {} 3810695SAli.Saidi@ARM.com execfile(str(source[0]), traceflags) 3910695SAli.Saidi@ARM.com func = traceflags['gen_cc'] 4010695SAli.Saidi@ARM.com func(str(target[0])) 4110695SAli.Saidi@ARM.com 4210695SAli.Saidi@ARM.comdef make_hh(target, source, env): 438887Sgeoffrey.blake@arm.com assert(len(source) == 1) 442766Sktlim@umich.edu assert(len(target) == 1) 454486Sbinkertn@umich.edu 4610663SAli.Saidi@ARM.com traceflags = {} 474486Sbinkertn@umich.edu execfile(str(source[0]), traceflags) 488739Sgblack@eecs.umich.edu func = traceflags['gen_hh'] 4910259SAndrew.Bardsley@arm.com func(str(target[0])) 504486Sbinkertn@umich.edu 514202Sbinkertn@umich.eduenv.Command('traceflags.hh', 'traceflags.py', make_hh) 524202Sbinkertn@umich.eduenv.Command('traceflags.cc', 'traceflags.py', make_cc) 534202Sbinkertn@umich.edu 544202Sbinkertn@umich.eduSource('annotate.cc') 5510319SAndreas.Sandberg@ARM.comSource('bigint.cc') 564202Sbinkertn@umich.eduSource('circlebuf.cc') 574776Sgblack@eecs.umich.eduSource('cprintf.cc') 588739Sgblack@eecs.umich.eduSource('crc.cc') 596365Sgblack@eecs.umich.eduSource('fast_alloc.cc') 604202Sbinkertn@umich.eduSource('fifo_buffer.cc') 618777Sgblack@eecs.umich.eduSource('hostinfo.cc') 624202Sbinkertn@umich.eduSource('hybrid_pred.cc') 639913Ssteve.reinhardt@amd.comSource('inet.cc') 644202Sbinkertn@umich.eduSource('inifile.cc') 654202Sbinkertn@umich.eduSource('intmath.cc') 665217Ssaidi@eecs.umich.eduSource('match.cc') 674202Sbinkertn@umich.eduSource('misc.cc') 6810259SAndrew.Bardsley@arm.comSource('output.cc') 692155SN/ASource('pollevent.cc') 708887Sgeoffrey.blake@arm.comSource('random.cc') 7110201SAndrew.Bardsley@arm.comSource('range.cc') 728887Sgeoffrey.blake@arm.comSource('remote_gdb.cc') 739340SAndreas.Sandberg@arm.comSource('sat_counter.cc') 748887Sgeoffrey.blake@arm.comSource('socket.cc') 755192Ssaidi@eecs.umich.eduSource('statistics.cc') 768335Snate@binkert.orgSource('str.cc') 778335Snate@binkert.orgSource('time.cc') 788335Snate@binkert.orgSource('trace.cc') 798335Snate@binkert.orgSource('traceflags.cc') 808335Snate@binkert.orgSource('userinfo.cc') 819534SAndreas.Sandberg@ARM.com 829534SAndreas.Sandberg@ARM.comSource('compression/lzss_compression.cc') 839534SAndreas.Sandberg@ARM.com 848335Snate@binkert.orgSource('loader/aout_object.cc') 859534SAndreas.Sandberg@ARM.comSource('loader/ecoff_object.cc') 869534SAndreas.Sandberg@ARM.comSource('loader/elf_object.cc') 878335Snate@binkert.orgSource('loader/object_file.cc') 889534SAndreas.Sandberg@ARM.comSource('loader/raw_object.cc') 899534SAndreas.Sandberg@ARM.comSource('loader/symtab.cc') 909534SAndreas.Sandberg@ARM.com 919534SAndreas.Sandberg@ARM.comSource('stats/events.cc') 929534SAndreas.Sandberg@ARM.comSource('stats/output.cc') 939534SAndreas.Sandberg@ARM.comSource('stats/statdb.cc') 949534SAndreas.Sandberg@ARM.comSource('stats/text.cc') 959534SAndreas.Sandberg@ARM.comSource('stats/visit.cc') 969534SAndreas.Sandberg@ARM.com 9710383Smitch.hayenga@arm.comif env['USE_MYSQL']: 988335Snate@binkert.org Source('mysql.cc') 998335Snate@binkert.org Source('stats/mysql.cc') 1008471SGiacomo.Gabrielli@arm.com