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 312155SN/AImport('*') 322155SN/A 332155SN/Adef make_cc(target, source, env): 342155SN/A assert(len(source) == 1) 352155SN/A assert(len(target) == 1) 362155SN/A 372178SN/A traceflags = {} 382178SN/A execfile(str(source[0]), traceflags) 392178SN/A func = traceflags['gen_cc'] 402178SN/A func(str(target[0])) 412178SN/A 422178SN/Adef make_hh(target, source, env): 432178SN/A assert(len(source) == 1) 442178SN/A assert(len(target) == 1) 452178SN/A 462178SN/A traceflags = {} 472178SN/A execfile(str(source[0]), traceflags) 482178SN/A func = traceflags['gen_hh'] 492155SN/A func(str(target[0])) 502178SN/A 512155SN/Aenv.Command('traceflags.hh', 'traceflags.py', make_hh) 522155SN/Aenv.Command('traceflags.cc', 'traceflags.py', make_cc) 532178SN/A 542155SN/ASource('annotate.cc') 552155SN/ASource('bigint.cc') 562623SN/ASource('circlebuf.cc') 572623SN/ASource('cprintf.cc') 582623SN/ASource('crc.cc') 592623SN/ASource('fast_alloc.cc') 602623SN/ASource('fifo_buffer.cc') 612155SN/ASource('hostinfo.cc') 622155SN/ASource('hybrid_pred.cc') 632292SN/ASource('inet.cc') 642292SN/ASource('inifile.cc') 652292SN/ASource('intmath.cc') 662292SN/ASource('match.cc') 672292SN/ASource('misc.cc') 682292SN/ASource('output.cc') 692292SN/ASource('pollevent.cc') 702292SN/ASource('random.cc') 712178SN/ASource('range.cc') 722155SN/ASource('remote_gdb.cc') 732155SN/ASource('sat_counter.cc') 742155SN/ASource('socket.cc') 752155SN/ASource('statistics.cc') 762155SN/ASource('str.cc') 772155SN/ASource('time.cc') 782155SN/ASource('trace.cc') 792155SN/ASource('traceflags.cc') 802623SN/ASource('userinfo.cc') 812155SN/A 822155SN/ASource('compression/lzss_compression.cc') 832155SN/A 842155SN/ASource('loader/aout_object.cc') 852178SN/ASource('loader/ecoff_object.cc') 862178SN/ASource('loader/elf_object.cc') 872178SN/ASource('loader/object_file.cc') 882178SN/ASource('loader/raw_object.cc') 892178SN/ASource('loader/symtab.cc') 902178SN/A 912178SN/ASource('stats/events.cc') 922178SN/ASource('stats/output.cc') 932178SN/ASource('stats/statdb.cc') 942178SN/ASource('stats/text.cc') 952733Sktlim@umich.eduSource('stats/visit.cc') 962733Sktlim@umich.edu 972733Sktlim@umich.eduif env['USE_MYSQL']: 982733Sktlim@umich.edu Source('mysql.cc') 992178SN/A Source('stats/mysql.cc') 1002178SN/A