SConscript revision 14205
14762Snate@binkert.org# -*- mode:python -*- 24762Snate@binkert.org 34762Snate@binkert.org# Copyright (c) 2006 The Regents of The University of Michigan 44762Snate@binkert.org# All rights reserved. 54762Snate@binkert.org# 64762Snate@binkert.org# Redistribution and use in source and binary forms, with or without 74762Snate@binkert.org# modification, are permitted provided that the following conditions are 84762Snate@binkert.org# met: redistributions of source code must retain the above copyright 94762Snate@binkert.org# notice, this list of conditions and the following disclaimer; 104762Snate@binkert.org# redistributions in binary form must reproduce the above copyright 114762Snate@binkert.org# notice, this list of conditions and the following disclaimer in the 124762Snate@binkert.org# documentation and/or other materials provided with the distribution; 134762Snate@binkert.org# neither the name of the copyright holders nor the names of its 144762Snate@binkert.org# contributors may be used to endorse or promote products derived from 154762Snate@binkert.org# this software without specific prior written permission. 164762Snate@binkert.org# 174762Snate@binkert.org# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 184762Snate@binkert.org# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 194762Snate@binkert.org# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 204762Snate@binkert.org# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 214762Snate@binkert.org# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 224762Snate@binkert.org# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 234762Snate@binkert.org# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 244762Snate@binkert.org# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 254762Snate@binkert.org# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 264762Snate@binkert.org# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 274762Snate@binkert.org# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 284762Snate@binkert.org# 294762Snate@binkert.org# Authors: Nathan Binkert 304762Snate@binkert.org 314762Snate@binkert.orgImport('*') 324762Snate@binkert.org 334762Snate@binkert.orgif env['CP_ANNOTATE']: 344762Snate@binkert.org 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('cprintf.test', '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('fiber.test', 'fiber.test.cc', 'fiber.cc') 51GTest('coroutine.test', 'coroutine.test.cc', 'fiber.cc') 52Source('framebuffer.cc') 53Source('hostinfo.cc') 54Source('inet.cc') 55Source('inifile.cc') 56GTest('inifile.test', 'inifile.test.cc', 'inifile.cc', 'str.cc') 57Source('intmath.cc') 58Source('logging.cc') 59Source('match.cc') 60Source('output.cc') 61Source('pixel.cc') 62GTest('pixel.test', '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('trie.test', '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/group.cc') 85Source('stats/text.cc') 86 87GTest('addr_range.test', 'addr_range.test.cc') 88GTest('addr_range_map.test', 'addr_range_map.test.cc') 89GTest('bitunion.test', 'bitunion.test.cc') 90GTest('circlebuf.test', 'circlebuf.test.cc') 91GTest('circular_queue.test', 'circular_queue.test.cc') 92GTest('sat_counter.test', 'sat_counter.test.cc') 93 94DebugFlag('Annotate', "State machine annotation debugging") 95DebugFlag('AnnotateQ', "State machine annotation queue debugging") 96DebugFlag('AnnotateVerbose', "Dump all state machine annotation details") 97DebugFlag('GDBAcc', "Remote debugger accesses") 98DebugFlag('GDBExtra', "Dump extra information on reads and writes") 99DebugFlag('GDBMisc', "Breakpoints, traps, watchpoints, etc.") 100DebugFlag('GDBRead', "Reads to the remote address space") 101DebugFlag('GDBRecv', "Messages received from the remote application") 102DebugFlag('GDBSend', "Messages sent to the remote application") 103DebugFlag('GDBWrite', "Writes to the remote address space") 104DebugFlag('SQL', "SQL queries sent to the server") 105DebugFlag('Stats', "Statistics management") 106DebugFlag('StatEvents', "Statistics event tracking") 107 108CompoundFlag('GDBAll', 109 [ 'GDBMisc', 'GDBAcc', 'GDBRead', 'GDBWrite', 'GDBSend', 'GDBRecv', 110 'GDBExtra' ], 111 desc="All Remote debugging flags") 112CompoundFlag('AnnotateAll', ['Annotate', 'AnnotateQ', 'AnnotateVerbose'], 113 desc="All Annotation flags") 114 115