SConscript revision 12376
1955SN/A# -*- mode:python -*-
2955SN/A
31762SN/A# Copyright (c) 2006 The Regents of The University of Michigan
4955SN/A# All rights reserved.
5955SN/A#
6955SN/A# Redistribution and use in source and binary forms, with or without
7955SN/A# modification, are permitted provided that the following conditions are
8955SN/A# met: redistributions of source code must retain the above copyright
9955SN/A# notice, this list of conditions and the following disclaimer;
10955SN/A# redistributions in binary form must reproduce the above copyright
11955SN/A# notice, this list of conditions and the following disclaimer in the
12955SN/A# documentation and/or other materials provided with the distribution;
13955SN/A# neither the name of the copyright holders nor the names of its
14955SN/A# contributors may be used to endorse or promote products derived from
15955SN/A# this software without specific prior written permission.
16955SN/A#
17955SN/A# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
18955SN/A# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
19955SN/A# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
20955SN/A# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
21955SN/A# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
22955SN/A# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
23955SN/A# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
24955SN/A# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
25955SN/A# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
26955SN/A# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
27955SN/A# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
28955SN/A#
29955SN/A# Authors: Nathan Binkert
30955SN/A
311608SN/AImport('*')
32955SN/A
33955SN/Aif env['CP_ANNOTATE']:
34955SN/A    SimObject('CPA.py')
35955SN/A    Source('cp_annotate.cc')
36955SN/ASimObject('Graphics.py')
37955SN/ASource('atomicio.cc')
38955SN/ASource('bitfield.cc')
39955SN/ASource('bigint.cc')
40955SN/ASource('imgwriter.cc')
41955SN/ASource('bmpwriter.cc')
42955SN/ASource('callback.cc')
43955SN/ASource('cprintf.cc', add_tags='gtest lib')
44955SN/ASource('debug.cc')
45955SN/Aif env['USE_FENV']:
462023SN/A    Source('fenv.c')
47955SN/Aif env['USE_PNG']:
48955SN/A    Source('pngwriter.cc')
49955SN/ASource('framebuffer.cc')
50955SN/ASource('hostinfo.cc')
51955SN/ASource('inet.cc')
52955SN/ASource('inifile.cc')
53955SN/ASource('intmath.cc')
54955SN/ASource('logging.cc')
55955SN/ASource('match.cc')
561031SN/ASource('output.cc')
57955SN/ASource('pixel.cc')
581388SN/ASource('pollevent.cc')
59955SN/ASource('random.cc')
60955SN/Aif env['TARGET_ISA'] != 'null':
611296SN/A    Source('remote_gdb.cc')
62955SN/ASource('socket.cc')
632609SN/ASource('statistics.cc')
64955SN/ASource('str.cc')
65955SN/ASource('time.cc')
66955SN/ASource('trace.cc')
67955SN/ASource('types.cc')
68955SN/A
69955SN/ASource('loader/aout_object.cc')
70955SN/ASource('loader/dtb_object.cc')
71955SN/ASource('loader/ecoff_object.cc')
72955SN/ASource('loader/elf_object.cc')
73955SN/ASource('loader/hex_file.cc')
74955SN/ASource('loader/object_file.cc')
75955SN/ASource('loader/raw_object.cc')
76955SN/ASource('loader/symtab.cc')
77955SN/A
78955SN/ASource('stats/text.cc')
79955SN/A
80955SN/AGTest('bituniontest', 'bituniontest.cc')
81955SN/A
822325SN/ADebugFlag('Annotate', "State machine annotation debugging")
831717SN/ADebugFlag('AnnotateQ', "State machine annotation queue debugging")
842190SN/ADebugFlag('AnnotateVerbose', "Dump all state machine annotation details")
852652Ssaidi@eecs.umich.eduDebugFlag('GDBAcc', "Remote debugger accesses")
86955SN/ADebugFlag('GDBExtra', "Dump extra information on reads and writes")
872410SN/ADebugFlag('GDBMisc', "Breakpoints, traps, watchpoints, etc.")
88955SN/ADebugFlag('GDBRead', "Reads to the remote address space")
892290SN/ADebugFlag('GDBRecv', "Messages received from the remote application")
90955SN/ADebugFlag('GDBSend', "Messages sent to the remote application")
911717SN/ADebugFlag('GDBWrite', "Writes to the remote address space")
922669Sktlim@umich.eduDebugFlag('SQL', "SQL queries sent to the server")
932669Sktlim@umich.eduDebugFlag('StatEvents', "Statistics event tracking")
942669Sktlim@umich.edu
952568SN/ACompoundFlag('GDBAll',
962568SN/A    [ 'GDBMisc', 'GDBAcc', 'GDBRead', 'GDBWrite', 'GDBSend', 'GDBRecv',
972499SN/A      'GDBExtra' ],
982462SN/A    desc="All Remote debugging flags")
992568SN/ACompoundFlag('AnnotateAll', ['Annotate', 'AnnotateQ', 'AnnotateVerbose'],
1002395SN/A    desc="All Annotation flags")
1012405SN/A
1021511SN/A