SConscript revision 4762
12139SN/A# -*- mode:python -*- 22139SN/A 32139SN/A# Copyright (c) 2006 The Regents of The University of Michigan 42139SN/A# All rights reserved. 52139SN/A# 62139SN/A# Redistribution and use in source and binary forms, with or without 72139SN/A# modification, are permitted provided that the following conditions are 82139SN/A# met: redistributions of source code must retain the above copyright 92139SN/A# notice, this list of conditions and the following disclaimer; 102139SN/A# redistributions in binary form must reproduce the above copyright 112139SN/A# notice, this list of conditions and the following disclaimer in the 122139SN/A# documentation and/or other materials provided with the distribution; 132139SN/A# neither the name of the copyright holders nor the names of its 142139SN/A# contributors may be used to endorse or promote products derived from 152139SN/A# this software without specific prior written permission. 162139SN/A# 172139SN/A# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 182139SN/A# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 192139SN/A# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 202139SN/A# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 212139SN/A# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 222139SN/A# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 232139SN/A# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 242139SN/A# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 252139SN/A# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 262139SN/A# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 272139SN/A# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 282665Ssaidi@eecs.umich.edu# 292665Ssaidi@eecs.umich.edu# Authors: Nathan Binkert 302139SN/A 312718Sstever@eecs.umich.eduImport('*') 322139SN/A 332139SN/Adef make_cc(target, source, env): 342139SN/A assert(len(source) == 1) 352139SN/A assert(len(target) == 1) 362152SN/A 372152SN/A traceflags = {} 382152SN/A execfile(str(source[0]), traceflags) 392152SN/A func = traceflags['gen_cc'] 402139SN/A func(str(target[0])) 412139SN/A 422139SN/Adef make_hh(target, source, env): 432139SN/A assert(len(source) == 1) 442139SN/A assert(len(target) == 1) 452152SN/A 462152SN/A traceflags = {} 472139SN/A execfile(str(source[0]), traceflags) 482139SN/A func = traceflags['gen_hh'] 492139SN/A func(str(target[0])) 502439SN/A 512439SN/Aenv.Command('traceflags.hh', 'traceflags.py', make_hh) 522439SN/Aenv.Command('traceflags.cc', 'traceflags.py', make_cc) 532139SN/A 542439SN/ASource('annotate.cc') 552460SN/ASource('bigint.cc') 562439SN/ASource('circlebuf.cc') 572171SN/ASource('cprintf.cc') 582439SN/ASource('crc.cc') 592439SN/ASource('fast_alloc.cc') 602170SN/Aif env['USE_FENV']: 612139SN/A Source('fenv.c') 622139SN/ASource('fifo_buffer.cc') 632139SN/ASource('hostinfo.cc') 642139SN/ASource('hybrid_pred.cc') 652139SN/ASource('inet.cc') 662139SN/ASource('inifile.cc') 672139SN/ASource('intmath.cc') 682139SN/ASource('match.cc') 692139SN/ASource('misc.cc') 702139SN/ASource('output.cc') 712139SN/ASource('pollevent.cc') 722139SN/ASource('random.cc') 732139SN/ASource('range.cc') 742139SN/ASource('remote_gdb.cc') 752139SN/ASource('sat_counter.cc') 762139SN/ASource('socket.cc') 772139SN/ASource('statistics.cc') 782139SN/ASource('str.cc') 792139SN/ASource('time.cc') 802139SN/ASource('trace.cc') 812139SN/ASource('traceflags.cc') 822139SN/ASource('userinfo.cc') 832139SN/A 842139SN/ASource('compression/lzss_compression.cc') 852178SN/A 862139SN/ASource('loader/aout_object.cc') 872139SN/ASource('loader/ecoff_object.cc') 882139SN/ASource('loader/elf_object.cc') 892139SN/ASource('loader/object_file.cc') 902139SN/ASource('loader/raw_object.cc') 912139SN/ASource('loader/symtab.cc') 922139SN/A 932152SN/ASource('stats/events.cc') 942152SN/ASource('stats/output.cc') 952152SN/ASource('stats/statdb.cc') 962152SN/ASource('stats/text.cc') 972152SN/ASource('stats/visit.cc') 982152SN/A 992152SN/Aif env['USE_MYSQL']: 1002152SN/A Source('mysql.cc') 1012152SN/A Source('stats/mysql.cc') 1022152SN/A 1032152SN/APySource('m5', 'traceflags.py') 1042152SN/A