SConscript revision 14209
12315SN/A# -*- mode:python -*-
22332SN/A
32315SN/A# Copyright (c) 2006 The Regents of The University of Michigan
42315SN/A# All rights reserved.
52315SN/A#
62315SN/A# Redistribution and use in source and binary forms, with or without
72315SN/A# modification, are permitted provided that the following conditions are
82315SN/A# met: redistributions of source code must retain the above copyright
92315SN/A# notice, this list of conditions and the following disclaimer;
102315SN/A# redistributions in binary form must reproduce the above copyright
112315SN/A# notice, this list of conditions and the following disclaimer in the
122315SN/A# documentation and/or other materials provided with the distribution;
132315SN/A# neither the name of the copyright holders nor the names of its
142315SN/A# contributors may be used to endorse or promote products derived from
152315SN/A# this software without specific prior written permission.
162315SN/A#
172315SN/A# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
182315SN/A# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
192315SN/A# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
202315SN/A# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
212315SN/A# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
222315SN/A# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
232315SN/A# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
242315SN/A# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
252315SN/A# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
262315SN/A# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
272689SN/A# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
282689SN/A#
292315SN/A# Authors: Nathan Binkert
302315SN/A
312315SN/AImport('*')
322315SN/A
332315SN/Aif env['CP_ANNOTATE']:
342315SN/A    SimObject('CPA.py')
356658Snate@binkert.org    Source('cp_annotate.cc')
362315SN/ASimObject('Graphics.py')
372315SN/ASource('atomicio.cc')
382683SN/ASource('bitfield.cc')
392680SN/ASource('imgwriter.cc')
402315SN/ASource('bmpwriter.cc')
412315SN/ASource('callback.cc')
422315SN/ASource('cprintf.cc', add_tags='gtest lib')
432315SN/AGTest('cprintf.test', 'cprintf.test.cc')
442315SN/ASource('debug.cc')
452315SN/Aif env['USE_FENV']:
462315SN/A    Source('fenv.c')
472315SN/Aif env['USE_PNG']:
482315SN/A    Source('pngwriter.cc')
492315SN/ASource('fiber.cc')
502315SN/AGTest('fiber.test', 'fiber.test.cc', 'fiber.cc')
512315SN/AGTest('coroutine.test', 'coroutine.test.cc', 'fiber.cc')
522315SN/ASource('framebuffer.cc')
532315SN/ASource('hostinfo.cc')
542732SN/ASource('inet.cc')
552315SN/ASource('inifile.cc')
562315SN/AGTest('inifile.test', 'inifile.test.cc', 'inifile.cc', 'str.cc')
572315SN/ASource('intmath.cc')
582332SN/ASource('logging.cc')
592332SN/ASource('match.cc')
602332SN/ASource('output.cc')
612332SN/ASource('pixel.cc')
622332SN/AGTest('pixel.test', 'pixel.test.cc', 'pixel.cc')
632315SN/ASource('pollevent.cc')
642315SN/ASource('random.cc')
652315SN/Aif env['TARGET_ISA'] != 'null':
662315SN/A    Source('remote_gdb.cc')
672315SN/ASource('socket.cc')
682315SN/ASource('statistics.cc')
692315SN/ASource('str.cc')
702315SN/ASource('time.cc')
712315SN/ASource('trace.cc')
722315SN/AGTest('trie.test', 'trie.test.cc')
732315SN/ASource('types.cc')
742315SN/A
752315SN/ASource('loader/aout_object.cc')
762315SN/ASource('loader/dtb_object.cc')
772315SN/ASource('loader/ecoff_object.cc')
782315SN/ASource('loader/elf_object.cc')
792315SN/ASource('loader/hex_file.cc')
802315SN/ASource('loader/object_file.cc')
812315SN/ASource('loader/raw_object.cc')
822315SN/ASource('loader/symtab.cc')
832315SN/A
842315SN/ASource('stats/group.cc')
852315SN/ASource('stats/text.cc')
862315SN/Aif env['USE_HDF5']:
872315SN/A    Source('stats/hdf5.cc')
882315SN/A
892315SN/AGTest('addr_range.test', 'addr_range.test.cc')
902315SN/AGTest('addr_range_map.test', 'addr_range_map.test.cc')
912315SN/AGTest('bitunion.test', 'bitunion.test.cc')
922315SN/AGTest('circlebuf.test', 'circlebuf.test.cc')
932315SN/AGTest('circular_queue.test', 'circular_queue.test.cc')
942315SN/AGTest('sat_counter.test', 'sat_counter.test.cc')
952315SN/A
962354SN/ADebugFlag('Annotate', "State machine annotation debugging")
972354SN/ADebugFlag('AnnotateQ', "State machine annotation queue debugging")
982332SN/ADebugFlag('AnnotateVerbose', "Dump all state machine annotation details")
992332SN/ADebugFlag('GDBAcc', "Remote debugger accesses")
1002332SN/ADebugFlag('GDBExtra', "Dump extra information on reads and writes")
1012315SN/ADebugFlag('GDBMisc', "Breakpoints, traps, watchpoints, etc.")
1022315SN/ADebugFlag('GDBRead', "Reads to the remote address space")
1032315SN/ADebugFlag('GDBRecv', "Messages received from the remote application")
1042315SN/ADebugFlag('GDBSend', "Messages sent to the remote application")
1052315SN/ADebugFlag('GDBWrite', "Writes to the remote address space")
1062679SN/ADebugFlag('SQL', "SQL queries sent to the server")
1072315SN/ADebugFlag('Stats', "Statistics management")
1082315SN/ADebugFlag('StatEvents', "Statistics event tracking")
1092315SN/A
1102315SN/ACompoundFlag('GDBAll',
1112315SN/A    [ 'GDBMisc', 'GDBAcc', 'GDBRead', 'GDBWrite', 'GDBSend', 'GDBRecv',
1122683SN/A      'GDBExtra' ],
1132315SN/A    desc="All Remote debugging flags")
1142683SN/ACompoundFlag('AnnotateAll', ['Annotate', 'AnnotateQ', 'AnnotateVerbose'],
1152315SN/A    desc="All Annotation flags")
1162315SN/A
1172332SN/A