SConscript revision 13454
16882SBrad.Beckmann@amd.com# -*- mode:python -*-
26882SBrad.Beckmann@amd.com
36882SBrad.Beckmann@amd.com# Copyright (c) 2006 The Regents of The University of Michigan
46882SBrad.Beckmann@amd.com# All rights reserved.
56882SBrad.Beckmann@amd.com#
66882SBrad.Beckmann@amd.com# Redistribution and use in source and binary forms, with or without
76882SBrad.Beckmann@amd.com# modification, are permitted provided that the following conditions are
86882SBrad.Beckmann@amd.com# met: redistributions of source code must retain the above copyright
96882SBrad.Beckmann@amd.com# notice, this list of conditions and the following disclaimer;
106882SBrad.Beckmann@amd.com# redistributions in binary form must reproduce the above copyright
116882SBrad.Beckmann@amd.com# notice, this list of conditions and the following disclaimer in the
126882SBrad.Beckmann@amd.com# documentation and/or other materials provided with the distribution;
136882SBrad.Beckmann@amd.com# neither the name of the copyright holders nor the names of its
146882SBrad.Beckmann@amd.com# contributors may be used to endorse or promote products derived from
156882SBrad.Beckmann@amd.com# this software without specific prior written permission.
166882SBrad.Beckmann@amd.com#
176882SBrad.Beckmann@amd.com# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
186882SBrad.Beckmann@amd.com# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
196882SBrad.Beckmann@amd.com# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
206882SBrad.Beckmann@amd.com# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
216882SBrad.Beckmann@amd.com# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
226882SBrad.Beckmann@amd.com# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
236882SBrad.Beckmann@amd.com# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
246882SBrad.Beckmann@amd.com# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
256882SBrad.Beckmann@amd.com# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
266882SBrad.Beckmann@amd.com# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
276882SBrad.Beckmann@amd.com# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
286882SBrad.Beckmann@amd.com#
297039Snate@binkert.org# Authors: Nathan Binkert
307039Snate@binkert.org
316882SBrad.Beckmann@amd.comImport('*')
327039Snate@binkert.org
336882SBrad.Beckmann@amd.comif env['CP_ANNOTATE']:
346882SBrad.Beckmann@amd.com    SimObject('CPA.py')
356882SBrad.Beckmann@amd.com    Source('cp_annotate.cc')
366882SBrad.Beckmann@amd.comSimObject('Graphics.py')
376882SBrad.Beckmann@amd.comSource('atomicio.cc')
387039Snate@binkert.orgSource('bitfield.cc')
397039Snate@binkert.orgSource('imgwriter.cc')
407039Snate@binkert.orgSource('bmpwriter.cc')
417039Snate@binkert.orgSource('callback.cc')
427039Snate@binkert.orgSource('cprintf.cc', add_tags='gtest lib')
436882SBrad.Beckmann@amd.comGTest('cprintftest', 'cprintftest.cc')
447039Snate@binkert.orgSource('debug.cc')
457039Snate@binkert.orgif env['USE_FENV']:
467039Snate@binkert.org    Source('fenv.c')
476882SBrad.Beckmann@amd.comif env['USE_PNG']:
487039Snate@binkert.org    Source('pngwriter.cc')
496882SBrad.Beckmann@amd.comSource('fiber.cc')
506882SBrad.Beckmann@amd.comGTest('fibertest', 'fibertest.cc', 'fiber.cc')
517039Snate@binkert.orgGTest('coroutinetest', 'coroutinetest.cc', 'fiber.cc')
527039Snate@binkert.orgSource('framebuffer.cc')
536882SBrad.Beckmann@amd.comSource('hostinfo.cc')
547039Snate@binkert.orgSource('inet.cc')
557039Snate@binkert.orgSource('inifile.cc')
567039Snate@binkert.orgGTest('inifiletest', 'inifiletest.cc', 'inifile.cc', 'str.cc')
576882SBrad.Beckmann@amd.comSource('intmath.cc')
586882SBrad.Beckmann@amd.comSource('logging.cc')
597039Snate@binkert.orgSource('match.cc')
606882SBrad.Beckmann@amd.comSource('output.cc')
61Source('pixel.cc')
62GTest('pixeltest', 'pixeltest.cc', 'pixel.cc')
63Source('pollevent.cc')
64Source('random.cc')
65if env['TARGET_ISA'] != 'null':
66    Source('remote_gdb.cc')
67Source('socket.cc')
68Source('statistics.cc')
69Source('str.cc')
70Source('time.cc')
71Source('trace.cc')
72GTest('trietest', 'trietest.cc')
73Source('types.cc')
74
75Source('loader/aout_object.cc')
76Source('loader/dtb_object.cc')
77Source('loader/ecoff_object.cc')
78Source('loader/elf_object.cc')
79Source('loader/hex_file.cc')
80Source('loader/object_file.cc')
81Source('loader/raw_object.cc')
82Source('loader/symtab.cc')
83
84Source('stats/text.cc')
85
86GTest('addr_range_test', 'addr_range_test.cc')
87GTest('AddrRangeMapTest', 'addr_range_map_test.cc')
88GTest('bituniontest', 'bituniontest.cc')
89GTest('CircleBufTest', 'circlebuftest.cc')
90
91DebugFlag('Annotate', "State machine annotation debugging")
92DebugFlag('AnnotateQ', "State machine annotation queue debugging")
93DebugFlag('AnnotateVerbose', "Dump all state machine annotation details")
94DebugFlag('GDBAcc', "Remote debugger accesses")
95DebugFlag('GDBExtra', "Dump extra information on reads and writes")
96DebugFlag('GDBMisc', "Breakpoints, traps, watchpoints, etc.")
97DebugFlag('GDBRead', "Reads to the remote address space")
98DebugFlag('GDBRecv', "Messages received from the remote application")
99DebugFlag('GDBSend', "Messages sent to the remote application")
100DebugFlag('GDBWrite', "Writes to the remote address space")
101DebugFlag('SQL', "SQL queries sent to the server")
102DebugFlag('StatEvents', "Statistics event tracking")
103
104CompoundFlag('GDBAll',
105    [ 'GDBMisc', 'GDBAcc', 'GDBRead', 'GDBWrite', 'GDBSend', 'GDBRecv',
106      'GDBExtra' ],
107    desc="All Remote debugging flags")
108CompoundFlag('AnnotateAll', ['Annotate', 'AnnotateQ', 'AnnotateVerbose'],
109    desc="All Annotation flags")
110
111