SConscript revision 13465:dee578a46d87
1# -*- mode:python -*- 2 3# Copyright (c) 2006 The Regents of The University of Michigan 4# All rights reserved. 5# 6# Redistribution and use in source and binary forms, with or without 7# modification, are permitted provided that the following conditions are 8# met: redistributions of source code must retain the above copyright 9# notice, this list of conditions and the following disclaimer; 10# redistributions in binary form must reproduce the above copyright 11# notice, this list of conditions and the following disclaimer in the 12# documentation and/or other materials provided with the distribution; 13# neither the name of the copyright holders nor the names of its 14# contributors may be used to endorse or promote products derived from 15# this software without specific prior written permission. 16# 17# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 18# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 19# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 20# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 21# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 22# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 23# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 24# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 25# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 26# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 27# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 28# 29# Authors: Nathan Binkert 30 31Import('*') 32 33if env['CP_ANNOTATE']: 34 SimObject('CPA.py') 35 Source('cp_annotate.cc') 36SimObject('Graphics.py') 37Source('atomicio.cc') 38Source('bitfield.cc') 39Source('imgwriter.cc') 40Source('bmpwriter.cc') 41Source('callback.cc') 42Source('cprintf.cc', add_tags='gtest lib') 43GTest('cprintftest', 'cprintf.test.cc') 44Source('debug.cc') 45if env['USE_FENV']: 46 Source('fenv.c') 47if env['USE_PNG']: 48 Source('pngwriter.cc') 49Source('fiber.cc') 50GTest('fibertest', 'fiber.test.cc', 'fiber.cc') 51GTest('coroutinetest', 'coroutine.test.cc', 'fiber.cc') 52Source('framebuffer.cc') 53Source('hostinfo.cc') 54Source('inet.cc') 55Source('inifile.cc') 56GTest('inifiletest', 'inifile.test.cc', 'inifile.cc', 'str.cc') 57Source('intmath.cc') 58Source('logging.cc') 59Source('match.cc') 60Source('output.cc') 61Source('pixel.cc') 62GTest('pixeltest', 'pixel.test.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', 'trie.test.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', 'bitunion.test.cc') 89GTest('CircleBufTest', 'circlebuf.test.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