SConscript revision 6181
15222Sksewell@umich.edu# -*- mode:python -*-
25268Sksewell@umich.edu
35254Sksewell@umich.edu# Copyright (c) 2006 The Regents of The University of Michigan
45222Sksewell@umich.edu# All rights reserved.
55254Sksewell@umich.edu#
65254Sksewell@umich.edu# Redistribution and use in source and binary forms, with or without
75254Sksewell@umich.edu# modification, are permitted provided that the following conditions are
85254Sksewell@umich.edu# met: redistributions of source code must retain the above copyright
95254Sksewell@umich.edu# notice, this list of conditions and the following disclaimer;
105254Sksewell@umich.edu# redistributions in binary form must reproduce the above copyright
115254Sksewell@umich.edu# notice, this list of conditions and the following disclaimer in the
125254Sksewell@umich.edu# documentation and/or other materials provided with the distribution;
135254Sksewell@umich.edu# neither the name of the copyright holders nor the names of its
145254Sksewell@umich.edu# contributors may be used to endorse or promote products derived from
155222Sksewell@umich.edu# this software without specific prior written permission.
165254Sksewell@umich.edu#
175254Sksewell@umich.edu# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
185254Sksewell@umich.edu# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
195254Sksewell@umich.edu# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
205254Sksewell@umich.edu# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
215254Sksewell@umich.edu# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
225254Sksewell@umich.edu# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
235254Sksewell@umich.edu# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
245254Sksewell@umich.edu# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
255254Sksewell@umich.edu# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
265254Sksewell@umich.edu# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
275222Sksewell@umich.edu# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
285254Sksewell@umich.edu#
295254Sksewell@umich.edu# Authors: Nathan Binkert
305254Sksewell@umich.edu
315222Sksewell@umich.eduImport('*')
325222Sksewell@umich.edu
335222Sksewell@umich.eduif env['CP_ANNOTATE']:
345222Sksewell@umich.edu    SimObject('CPA.py')
355222Sksewell@umich.edu    Source('cp_annotate.cc')
365222Sksewell@umich.eduSource('atomicio.cc')
375222Sksewell@umich.eduSource('bigint.cc')
385222Sksewell@umich.eduSource('circlebuf.cc')
395222Sksewell@umich.eduSource('cprintf.cc')
405222Sksewell@umich.eduSource('crc.cc')
415222Sksewell@umich.eduSource('debug.cc')
429329Sdam.sunwoo@arm.comSource('fast_alloc.cc')
435222Sksewell@umich.eduif env['USE_FENV']:
448229Snate@binkert.org    Source('fenv.c')
455222Sksewell@umich.eduSource('fifo_buffer.cc')
468229Snate@binkert.orgSource('hostinfo.cc')
475222Sksewell@umich.eduSource('hybrid_pred.cc')
488229Snate@binkert.orgSource('inet.cc')
495222Sksewell@umich.eduSource('inifile.cc')
508775Sgblack@eecs.umich.eduSource('intmath.cc')
515222Sksewell@umich.eduSource('match.cc')
528229Snate@binkert.orgSource('misc.cc')
535222Sksewell@umich.eduSource('output.cc')
545222Sksewell@umich.eduSource('pollevent.cc')
555222Sksewell@umich.eduSource('random.cc')
565222Sksewell@umich.eduSource('random_mt.cc')
575222Sksewell@umich.eduSource('range.cc')
585222Sksewell@umich.eduSource('remote_gdb.cc')
595222Sksewell@umich.eduSource('sat_counter.cc')
605222Sksewell@umich.eduSource('socket.cc')
615222Sksewell@umich.eduSource('statistics.cc')
625222Sksewell@umich.eduSource('str.cc')
635222Sksewell@umich.eduSource('time.cc')
645222Sksewell@umich.eduSource('trace.cc')
655222Sksewell@umich.eduSource('userinfo.cc')
665222Sksewell@umich.edu
675222Sksewell@umich.eduSource('compression/lzss_compression.cc')
685222Sksewell@umich.edu
695222Sksewell@umich.eduSource('loader/aout_object.cc')
705222Sksewell@umich.eduSource('loader/ecoff_object.cc')
715222Sksewell@umich.eduSource('loader/elf_object.cc')
725222Sksewell@umich.eduSource('loader/hex_file.cc')
735222Sksewell@umich.eduSource('loader/object_file.cc')
745222Sksewell@umich.eduSource('loader/raw_object.cc')
755222Sksewell@umich.eduSource('loader/symtab.cc')
768741Sgblack@eecs.umich.edu
775222Sksewell@umich.eduSource('stats/events.cc')
785222Sksewell@umich.eduSource('stats/output.cc')
795222Sksewell@umich.eduSource('stats/text.cc')
805222Sksewell@umich.eduSource('stats/visit.cc')
815222Sksewell@umich.edu
825222Sksewell@umich.eduif env['USE_MYSQL']:
835222Sksewell@umich.edu    Source('mysql.cc')
845222Sksewell@umich.edu    Source('stats/mysql.cc')
855222Sksewell@umich.edu
865222Sksewell@umich.eduTraceFlag('Annotate', "State machine annotation debugging")
875222Sksewell@umich.eduTraceFlag('AnnotateQ', "State machine annotation queue debugging")
885222Sksewell@umich.eduTraceFlag('AnnotateVerbose', "Dump all state machine annotation details")
895222Sksewell@umich.eduTraceFlag('GDBAcc', "Remote debugger accesses")
905222Sksewell@umich.eduTraceFlag('GDBExtra', "Dump extra information on reads and writes")
915222Sksewell@umich.eduTraceFlag('GDBMisc', "Breakpoints, traps, watchpoints, etc.")
925222Sksewell@umich.eduTraceFlag('GDBRead', "Reads to the remote address space")
935222Sksewell@umich.eduTraceFlag('GDBRecv', "Messages received from the remote application")
945222Sksewell@umich.eduTraceFlag('GDBSend', "Messages sent to the remote application")
955222Sksewell@umich.eduTraceFlag('GDBWrite', "Writes to the remote address space")
965222Sksewell@umich.eduTraceFlag('SQL', "SQL queries sent to the server")
975222Sksewell@umich.eduTraceFlag('StatEvents', "Statistics event tracking")
985222Sksewell@umich.edu
995222Sksewell@umich.eduCompoundFlag('GDBAll',
1005222Sksewell@umich.edu    [ 'GDBMisc', 'GDBAcc', 'GDBRead', 'GDBWrite', 'GDBSend', 'GDBRecv',
1015222Sksewell@umich.edu      'GDBExtra' ],
102    desc="All Remote debugging flags")
103CompoundFlag('AnnotateAll', ['Annotate', 'AnnotateQ', 'AnnotateVerbose'],
104    desc="All Annotation flags")
105
106