SConscript revision 13576
14484Sbinkertn@umich.edu# -*- mode:python -*-
24484Sbinkertn@umich.edu
34484Sbinkertn@umich.edu# Copyright (c) 2006 The Regents of The University of Michigan
44484Sbinkertn@umich.edu# All rights reserved.
54484Sbinkertn@umich.edu#
64484Sbinkertn@umich.edu# Redistribution and use in source and binary forms, with or without
74484Sbinkertn@umich.edu# modification, are permitted provided that the following conditions are
84484Sbinkertn@umich.edu# met: redistributions of source code must retain the above copyright
94484Sbinkertn@umich.edu# notice, this list of conditions and the following disclaimer;
104484Sbinkertn@umich.edu# redistributions in binary form must reproduce the above copyright
114484Sbinkertn@umich.edu# notice, this list of conditions and the following disclaimer in the
124484Sbinkertn@umich.edu# documentation and/or other materials provided with the distribution;
134484Sbinkertn@umich.edu# neither the name of the copyright holders nor the names of its
144484Sbinkertn@umich.edu# contributors may be used to endorse or promote products derived from
154484Sbinkertn@umich.edu# this software without specific prior written permission.
164484Sbinkertn@umich.edu#
174484Sbinkertn@umich.edu# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
184484Sbinkertn@umich.edu# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
194484Sbinkertn@umich.edu# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
204484Sbinkertn@umich.edu# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
214484Sbinkertn@umich.edu# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
224484Sbinkertn@umich.edu# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
234484Sbinkertn@umich.edu# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
244484Sbinkertn@umich.edu# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
254484Sbinkertn@umich.edu# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
264484Sbinkertn@umich.edu# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
274484Sbinkertn@umich.edu# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
284484Sbinkertn@umich.edu#
294484Sbinkertn@umich.edu# Authors: Nathan Binkert
304484Sbinkertn@umich.edu
314494Ssaidi@eecs.umich.eduImport('*')
324484Sbinkertn@umich.edu
336121Snate@binkert.orgif env['CP_ANNOTATE']:
344484Sbinkertn@umich.edu    SimObject('CPA.py')
358946Sandreas.hansson@arm.com    Source('cp_annotate.cc')
368946Sandreas.hansson@arm.comSimObject('Graphics.py')
374484Sbinkertn@umich.eduSource('atomicio.cc')
384484Sbinkertn@umich.eduSource('bitfield.cc')
394484Sbinkertn@umich.eduSource('imgwriter.cc')
404781Snate@binkert.orgSource('bmpwriter.cc')
414484Sbinkertn@umich.eduSource('callback.cc')
424484Sbinkertn@umich.eduSource('cprintf.cc', add_tags='gtest lib')
434484Sbinkertn@umich.eduGTest('cprintf.test', 'cprintf.test.cc')
444484Sbinkertn@umich.eduSource('debug.cc')
458349Sgblack@eecs.umich.eduif env['USE_FENV']:
468349Sgblack@eecs.umich.edu    Source('fenv.c')
474484Sbinkertn@umich.eduif env['USE_PNG']:
484484Sbinkertn@umich.edu    Source('pngwriter.cc')
494484Sbinkertn@umich.eduSource('fiber.cc')
504484Sbinkertn@umich.eduGTest('fiber.test', 'fiber.test.cc', 'fiber.cc')
514484Sbinkertn@umich.eduGTest('coroutine.test', 'coroutine.test.cc', 'fiber.cc')
524484Sbinkertn@umich.eduSource('framebuffer.cc')
534484Sbinkertn@umich.eduSource('hostinfo.cc')
544484Sbinkertn@umich.eduSource('inet.cc')
554484Sbinkertn@umich.eduSource('inifile.cc')
564484Sbinkertn@umich.eduGTest('inifile.test', 'inifile.test.cc', 'inifile.cc', 'str.cc')
574484Sbinkertn@umich.eduSource('intmath.cc')
584484Sbinkertn@umich.eduSource('logging.cc')
594484Sbinkertn@umich.eduSource('match.cc')
604484Sbinkertn@umich.eduSource('output.cc')
614484Sbinkertn@umich.eduSource('pixel.cc')
624484Sbinkertn@umich.eduGTest('pixel.test', 'pixel.test.cc', 'pixel.cc')
634484Sbinkertn@umich.eduSource('pollevent.cc')
644484Sbinkertn@umich.eduSource('random.cc')
654484Sbinkertn@umich.eduif env['TARGET_ISA'] != 'null':
664484Sbinkertn@umich.edu    Source('remote_gdb.cc')
674484Sbinkertn@umich.eduSource('socket.cc')
684484Sbinkertn@umich.eduSource('statistics.cc')
694484Sbinkertn@umich.eduSource('str.cc')
704484Sbinkertn@umich.eduSource('time.cc')
714484Sbinkertn@umich.eduSource('trace.cc')
724484Sbinkertn@umich.eduGTest('trie.test', 'trie.test.cc')
734484Sbinkertn@umich.eduSource('types.cc')
744484Sbinkertn@umich.edu
754484Sbinkertn@umich.eduSource('loader/aout_object.cc')
764484Sbinkertn@umich.eduSource('loader/dtb_object.cc')
774484Sbinkertn@umich.eduSource('loader/ecoff_object.cc')
784484Sbinkertn@umich.eduSource('loader/elf_object.cc')
794484Sbinkertn@umich.eduSource('loader/hex_file.cc')
804484Sbinkertn@umich.eduSource('loader/object_file.cc')
814484Sbinkertn@umich.eduSource('loader/raw_object.cc')
824484Sbinkertn@umich.eduSource('loader/symtab.cc')
834484Sbinkertn@umich.edu
844484Sbinkertn@umich.eduSource('stats/text.cc')
854484Sbinkertn@umich.edu
864484Sbinkertn@umich.eduGTest('addr_range.test', 'addr_range.test.cc')
874484Sbinkertn@umich.eduGTest('addr_range_map.test', 'addr_range_map.test.cc')
884484Sbinkertn@umich.eduGTest('bitunion.test', 'bitunion.test.cc')
894484Sbinkertn@umich.eduGTest('circlebuf.test', 'circlebuf.test.cc')
904484Sbinkertn@umich.eduGTest('circular_queue.test', 'circular_queue.test.cc')
914484Sbinkertn@umich.edu
924484Sbinkertn@umich.eduDebugFlag('Annotate', "State machine annotation debugging")
934484Sbinkertn@umich.eduDebugFlag('AnnotateQ', "State machine annotation queue debugging")
946121Snate@binkert.orgDebugFlag('AnnotateVerbose', "Dump all state machine annotation details")
956121Snate@binkert.orgDebugFlag('GDBAcc', "Remote debugger accesses")
969420Sandreas.hansson@arm.comDebugFlag('GDBExtra', "Dump extra information on reads and writes")
978946Sandreas.hansson@arm.comDebugFlag('GDBMisc', "Breakpoints, traps, watchpoints, etc.")
988946Sandreas.hansson@arm.comDebugFlag('GDBRead', "Reads to the remote address space")
998946Sandreas.hansson@arm.comDebugFlag('GDBRecv', "Messages received from the remote application")
1008737Skoansin.tan@gmail.comDebugFlag('GDBSend', "Messages sent to the remote application")
1018737Skoansin.tan@gmail.comDebugFlag('GDBWrite', "Writes to the remote address space")
1029388Sandreas.hansson@arm.comDebugFlag('SQL', "SQL queries sent to the server")
1039388Sandreas.hansson@arm.comDebugFlag('StatEvents', "Statistics event tracking")
1049388Sandreas.hansson@arm.com
1059388Sandreas.hansson@arm.comCompoundFlag('GDBAll',
1069388Sandreas.hansson@arm.com    [ 'GDBMisc', 'GDBAcc', 'GDBRead', 'GDBWrite', 'GDBSend', 'GDBRecv',
1075765Snate@binkert.org      'GDBExtra' ],
1085397Ssaidi@eecs.umich.edu    desc="All Remote debugging flags")
1095274Ssaidi@eecs.umich.eduCompoundFlag('AnnotateAll', ['Annotate', 'AnnotateQ', 'AnnotateVerbose'],
1104494Ssaidi@eecs.umich.edu    desc="All Annotation flags")
1114504Ssaidi@eecs.umich.edu
1124494Ssaidi@eecs.umich.edu