SConscript revision 12366
16691Stjones1@inf.ed.ac.uk# -*- mode:python -*-
26691Stjones1@inf.ed.ac.uk
36691Stjones1@inf.ed.ac.uk# Copyright (c) 2006 The Regents of The University of Michigan
46691Stjones1@inf.ed.ac.uk# All rights reserved.
56691Stjones1@inf.ed.ac.uk#
66691Stjones1@inf.ed.ac.uk# Redistribution and use in source and binary forms, with or without
76691Stjones1@inf.ed.ac.uk# modification, are permitted provided that the following conditions are
86691Stjones1@inf.ed.ac.uk# met: redistributions of source code must retain the above copyright
96691Stjones1@inf.ed.ac.uk# notice, this list of conditions and the following disclaimer;
106691Stjones1@inf.ed.ac.uk# redistributions in binary form must reproduce the above copyright
116691Stjones1@inf.ed.ac.uk# notice, this list of conditions and the following disclaimer in the
126691Stjones1@inf.ed.ac.uk# documentation and/or other materials provided with the distribution;
136691Stjones1@inf.ed.ac.uk# neither the name of the copyright holders nor the names of its
146691Stjones1@inf.ed.ac.uk# contributors may be used to endorse or promote products derived from
156691Stjones1@inf.ed.ac.uk# this software without specific prior written permission.
166691Stjones1@inf.ed.ac.uk#
176691Stjones1@inf.ed.ac.uk# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
186691Stjones1@inf.ed.ac.uk# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
196691Stjones1@inf.ed.ac.uk# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
206691Stjones1@inf.ed.ac.uk# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
216691Stjones1@inf.ed.ac.uk# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
226691Stjones1@inf.ed.ac.uk# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
236691Stjones1@inf.ed.ac.uk# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
246691Stjones1@inf.ed.ac.uk# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
256691Stjones1@inf.ed.ac.uk# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
266691Stjones1@inf.ed.ac.uk# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
276691Stjones1@inf.ed.ac.uk# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
286691Stjones1@inf.ed.ac.uk#
296691Stjones1@inf.ed.ac.uk# Authors: Nathan Binkert
306691Stjones1@inf.ed.ac.uk
316691Stjones1@inf.ed.ac.ukImport('*')
326691Stjones1@inf.ed.ac.uk
336691Stjones1@inf.ed.ac.ukif env['CP_ANNOTATE']:
346691Stjones1@inf.ed.ac.uk    SimObject('CPA.py')
356691Stjones1@inf.ed.ac.uk    Source('cp_annotate.cc')
366691Stjones1@inf.ed.ac.ukSimObject('Graphics.py')
379022Sgblack@eecs.umich.eduSource('atomicio.cc')
386691Stjones1@inf.ed.ac.ukSource('bitfield.cc')
396691Stjones1@inf.ed.ac.ukSource('bigint.cc')
406691Stjones1@inf.ed.ac.ukSource('imgwriter.cc')
416691Stjones1@inf.ed.ac.ukSource('bmpwriter.cc')
426691Stjones1@inf.ed.ac.ukSource('callback.cc')
436691Stjones1@inf.ed.ac.ukSource('cprintf.cc')
448745Sgblack@eecs.umich.eduSource('debug.cc')
458772Sgblack@eecs.umich.eduif env['USE_FENV']:
468772Sgblack@eecs.umich.edu    Source('fenv.c')
479384SAndreas.Sandberg@arm.comif env['USE_PNG']:
486691Stjones1@inf.ed.ac.uk    Source('pngwriter.cc')
498772Sgblack@eecs.umich.eduSource('framebuffer.cc')
508792Sgblack@eecs.umich.eduSource('hostinfo.cc')
516691Stjones1@inf.ed.ac.ukSource('inet.cc')
527506Stjones1@inf.ed.ac.ukSource('inifile.cc')
538759Sgblack@eecs.umich.eduSource('intmath.cc')
546691Stjones1@inf.ed.ac.ukSource('logging.cc')
558745Sgblack@eecs.umich.eduSource('match.cc')
569384SAndreas.Sandberg@arm.comSource('output.cc')
576691Stjones1@inf.ed.ac.ukSource('pixel.cc')
588745Sgblack@eecs.umich.eduSource('pollevent.cc')
598335Snate@binkert.orgSource('random.cc')
606691Stjones1@inf.ed.ac.ukif env['TARGET_ISA'] != 'null':
616691Stjones1@inf.ed.ac.uk    Source('remote_gdb.cc')
626691Stjones1@inf.ed.ac.ukSource('socket.cc')
636691Stjones1@inf.ed.ac.ukSource('statistics.cc')
646691Stjones1@inf.ed.ac.ukSource('str.cc')
656691Stjones1@inf.ed.ac.ukSource('time.cc')
666691Stjones1@inf.ed.ac.ukSource('trace.cc')
676691Stjones1@inf.ed.ac.ukSource('types.cc')
686691Stjones1@inf.ed.ac.uk
69Source('loader/aout_object.cc')
70Source('loader/dtb_object.cc')
71Source('loader/ecoff_object.cc')
72Source('loader/elf_object.cc')
73Source('loader/hex_file.cc')
74Source('loader/object_file.cc')
75Source('loader/raw_object.cc')
76Source('loader/symtab.cc')
77
78Source('stats/text.cc')
79
80GTest('bituniontest', 'bituniontest.cc')
81
82DebugFlag('Annotate', "State machine annotation debugging")
83DebugFlag('AnnotateQ', "State machine annotation queue debugging")
84DebugFlag('AnnotateVerbose', "Dump all state machine annotation details")
85DebugFlag('GDBAcc', "Remote debugger accesses")
86DebugFlag('GDBExtra', "Dump extra information on reads and writes")
87DebugFlag('GDBMisc', "Breakpoints, traps, watchpoints, etc.")
88DebugFlag('GDBRead', "Reads to the remote address space")
89DebugFlag('GDBRecv', "Messages received from the remote application")
90DebugFlag('GDBSend', "Messages sent to the remote application")
91DebugFlag('GDBWrite', "Writes to the remote address space")
92DebugFlag('SQL', "SQL queries sent to the server")
93DebugFlag('StatEvents', "Statistics event tracking")
94
95CompoundFlag('GDBAll',
96    [ 'GDBMisc', 'GDBAcc', 'GDBRead', 'GDBWrite', 'GDBSend', 'GDBRecv',
97      'GDBExtra' ],
98    desc="All Remote debugging flags")
99CompoundFlag('AnnotateAll', ['Annotate', 'AnnotateQ', 'AnnotateVerbose'],
100    desc="All Annotation flags")
101
102