SConscript revision 9500
17513SN/A# -*- mode:python -*-
211570SCurtis.Dunham@arm.com
311960Sgabeblack@google.com# Copyright (c) 2006 The Regents of The University of Michigan
411960Sgabeblack@google.com# All rights reserved.
57513SN/A#
67513SN/A# Redistribution and use in source and binary forms, with or without
77513SN/A# modification, are permitted provided that the following conditions are
87513SN/A# met: redistributions of source code must retain the above copyright
97513SN/A# notice, this list of conditions and the following disclaimer;
1011960Sgabeblack@google.com# redistributions in binary form must reproduce the above copyright
117513SN/A# notice, this list of conditions and the following disclaimer in the
127513SN/A# documentation and/or other materials provided with the distribution;
137513SN/A# neither the name of the copyright holders nor the names of its
147513SN/A# contributors may be used to endorse or promote products derived from
157513SN/A# this software without specific prior written permission.
167513SN/A#
177513SN/A# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
187513SN/A# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
197513SN/A# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
207513SN/A# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
217513SN/A# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
227513SN/A# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
237513SN/A# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
247513SN/A# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
257513SN/A# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
267513SN/A# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
277513SN/A# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
287513SN/A#
297513SN/A# Authors: Nathan Binkert
307513SN/A
317513SN/AImport('*')
327513SN/A
337513SN/Aif env['CP_ANNOTATE']:
347513SN/A    SimObject('CPA.py')
357513SN/A    Source('cp_annotate.cc')
367513SN/ASource('atomicio.cc')
3711960Sgabeblack@google.comSource('bigint.cc')
3811960Sgabeblack@google.comSource('bitmap.cc')
397513SN/ASource('callback.cc')
407513SN/ASource('circlebuf.cc')
417513SN/ASource('cprintf.cc')
427513SN/ASource('debug.cc')
437513SN/Aif env['USE_FENV']:
447513SN/A    Source('fenv.c')
457513SN/ASource('hostinfo.cc')
467513SN/ASource('inet.cc')
477513SN/ASource('inifile.cc')
487513SN/ASource('intmath.cc')
497513SN/ASource('match.cc')
507513SN/ASource('misc.cc')
517513SN/ASource('output.cc')
527513SN/ASource('pollevent.cc')
537513SN/ASource('random.cc')
54Source('random_mt.cc')
55if env['TARGET_ISA'] != 'no':
56    Source('remote_gdb.cc')
57Source('socket.cc')
58Source('statistics.cc')
59Source('str.cc')
60Source('time.cc')
61Source('trace.cc')
62Source('types.cc')
63Source('userinfo.cc')
64
65Source('loader/aout_object.cc')
66Source('loader/ecoff_object.cc')
67Source('loader/elf_object.cc')
68Source('loader/hex_file.cc')
69Source('loader/object_file.cc')
70Source('loader/raw_object.cc')
71Source('loader/symtab.cc')
72
73Source('stats/text.cc')
74
75DebugFlag('Annotate', "State machine annotation debugging")
76DebugFlag('AnnotateQ', "State machine annotation queue debugging")
77DebugFlag('AnnotateVerbose', "Dump all state machine annotation details")
78DebugFlag('GDBAcc', "Remote debugger accesses")
79DebugFlag('GDBExtra', "Dump extra information on reads and writes")
80DebugFlag('GDBMisc', "Breakpoints, traps, watchpoints, etc.")
81DebugFlag('GDBRead', "Reads to the remote address space")
82DebugFlag('GDBRecv', "Messages received from the remote application")
83DebugFlag('GDBSend', "Messages sent to the remote application")
84DebugFlag('GDBWrite', "Writes to the remote address space")
85DebugFlag('SQL', "SQL queries sent to the server")
86DebugFlag('StatEvents', "Statistics event tracking")
87
88CompoundFlag('GDBAll',
89    [ 'GDBMisc', 'GDBAcc', 'GDBRead', 'GDBWrite', 'GDBSend', 'GDBRecv',
90      'GDBExtra' ],
91    desc="All Remote debugging flags")
92CompoundFlag('AnnotateAll', ['Annotate', 'AnnotateQ', 'AnnotateVerbose'],
93    desc="All Annotation flags")
94
95