SConscript revision 9341
19397Sandreas.hansson@arm.com# -*- mode:python -*-
29397Sandreas.hansson@arm.com
311807Snikos.nikoleris@arm.com# Copyright (c) 2006 The Regents of The University of Michigan
49397Sandreas.hansson@arm.com# All rights reserved.
59397Sandreas.hansson@arm.com#
69397Sandreas.hansson@arm.com# Redistribution and use in source and binary forms, with or without
79397Sandreas.hansson@arm.com# modification, are permitted provided that the following conditions are
89397Sandreas.hansson@arm.com# met: redistributions of source code must retain the above copyright
99397Sandreas.hansson@arm.com# notice, this list of conditions and the following disclaimer;
109397Sandreas.hansson@arm.com# redistributions in binary form must reproduce the above copyright
119397Sandreas.hansson@arm.com# notice, this list of conditions and the following disclaimer in the
129397Sandreas.hansson@arm.com# documentation and/or other materials provided with the distribution;
139397Sandreas.hansson@arm.com# neither the name of the copyright holders nor the names of its
149397Sandreas.hansson@arm.com# contributors may be used to endorse or promote products derived from
159397Sandreas.hansson@arm.com# this software without specific prior written permission.
169397Sandreas.hansson@arm.com#
179397Sandreas.hansson@arm.com# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
189397Sandreas.hansson@arm.com# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
199397Sandreas.hansson@arm.com# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
209397Sandreas.hansson@arm.com# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
219397Sandreas.hansson@arm.com# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
229397Sandreas.hansson@arm.com# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
239397Sandreas.hansson@arm.com# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
249397Sandreas.hansson@arm.com# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
259397Sandreas.hansson@arm.com# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
269397Sandreas.hansson@arm.com# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
279397Sandreas.hansson@arm.com# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
289397Sandreas.hansson@arm.com#
299397Sandreas.hansson@arm.com# Authors: Nathan Binkert
309397Sandreas.hansson@arm.com
319397Sandreas.hansson@arm.comImport('*')
329397Sandreas.hansson@arm.com
339397Sandreas.hansson@arm.comif env['CP_ANNOTATE']:
349397Sandreas.hansson@arm.com    SimObject('CPA.py')
359397Sandreas.hansson@arm.com    Source('cp_annotate.cc')
369397Sandreas.hansson@arm.comSource('atomicio.cc')
379397Sandreas.hansson@arm.comSource('bigint.cc')
389397Sandreas.hansson@arm.comSource('bitmap.cc')
399397Sandreas.hansson@arm.comSource('callback.cc')
409397Sandreas.hansson@arm.comSource('circlebuf.cc')
419397Sandreas.hansson@arm.comSource('cprintf.cc')
429397Sandreas.hansson@arm.comSource('debug.cc')
439397Sandreas.hansson@arm.comif env['USE_FENV']:
4411247Sradhika.jagtap@ARM.com    Source('fenv.c')
459398Sandreas.hansson@arm.comSource('hostinfo.cc')
4610695SAli.Saidi@ARM.comSource('inet.cc')
479397Sandreas.hansson@arm.comSource('inifile.cc')
4811807Snikos.nikoleris@arm.comSource('intmath.cc')
4911807Snikos.nikoleris@arm.comSource('match.cc')
5011807Snikos.nikoleris@arm.comSource('misc.cc')
5111807Snikos.nikoleris@arm.comSource('output.cc')
5211807Snikos.nikoleris@arm.comSource('pollevent.cc')
53Source('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('userinfo.cc')
63
64Source('loader/aout_object.cc')
65Source('loader/ecoff_object.cc')
66Source('loader/elf_object.cc')
67Source('loader/hex_file.cc')
68Source('loader/object_file.cc')
69Source('loader/raw_object.cc')
70Source('loader/symtab.cc')
71
72Source('stats/text.cc')
73
74DebugFlag('Annotate', "State machine annotation debugging")
75DebugFlag('AnnotateQ', "State machine annotation queue debugging")
76DebugFlag('AnnotateVerbose', "Dump all state machine annotation details")
77DebugFlag('GDBAcc', "Remote debugger accesses")
78DebugFlag('GDBExtra', "Dump extra information on reads and writes")
79DebugFlag('GDBMisc', "Breakpoints, traps, watchpoints, etc.")
80DebugFlag('GDBRead', "Reads to the remote address space")
81DebugFlag('GDBRecv', "Messages received from the remote application")
82DebugFlag('GDBSend', "Messages sent to the remote application")
83DebugFlag('GDBWrite', "Writes to the remote address space")
84DebugFlag('SQL', "SQL queries sent to the server")
85DebugFlag('StatEvents', "Statistics event tracking")
86
87CompoundFlag('GDBAll',
88    [ 'GDBMisc', 'GDBAcc', 'GDBRead', 'GDBWrite', 'GDBSend', 'GDBRecv',
89      'GDBExtra' ],
90    desc="All Remote debugging flags")
91CompoundFlag('AnnotateAll', ['Annotate', 'AnnotateQ', 'AnnotateVerbose'],
92    desc="All Annotation flags")
93
94