SConscript revision 13576
16145Snate@binkert.org# -*- mode:python -*- 26145Snate@binkert.org 36145Snate@binkert.org# Copyright (c) 2006 The Regents of The University of Michigan 46145Snate@binkert.org# All rights reserved. 56145Snate@binkert.org# 66145Snate@binkert.org# Redistribution and use in source and binary forms, with or without 76145Snate@binkert.org# modification, are permitted provided that the following conditions are 86145Snate@binkert.org# met: redistributions of source code must retain the above copyright 96145Snate@binkert.org# notice, this list of conditions and the following disclaimer; 106145Snate@binkert.org# redistributions in binary form must reproduce the above copyright 116145Snate@binkert.org# notice, this list of conditions and the following disclaimer in the 126145Snate@binkert.org# documentation and/or other materials provided with the distribution; 136145Snate@binkert.org# neither the name of the copyright holders nor the names of its 146145Snate@binkert.org# contributors may be used to endorse or promote products derived from 156145Snate@binkert.org# this software without specific prior written permission. 166145Snate@binkert.org# 176145Snate@binkert.org# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 186145Snate@binkert.org# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 196145Snate@binkert.org# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 206145Snate@binkert.org# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 216145Snate@binkert.org# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 226145Snate@binkert.org# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 236145Snate@binkert.org# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 246145Snate@binkert.org# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 256145Snate@binkert.org# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 266145Snate@binkert.org# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 276145Snate@binkert.org# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 286145Snate@binkert.org# 296145Snate@binkert.org# Authors: Nathan Binkert 307054Snate@binkert.org 317054Snate@binkert.orgImport('*') 327054Snate@binkert.org 337054Snate@binkert.orgif env['CP_ANNOTATE']: 347054Snate@binkert.org SimObject('CPA.py') 357054Snate@binkert.org Source('cp_annotate.cc') 366145Snate@binkert.orgSimObject('Graphics.py') 376145Snate@binkert.orgSource('atomicio.cc') 387054Snate@binkert.orgSource('bitfield.cc') 397054Snate@binkert.orgSource('imgwriter.cc') 406145Snate@binkert.orgSource('bmpwriter.cc') 416154Snate@binkert.orgSource('callback.cc') 426154Snate@binkert.orgSource('cprintf.cc', add_tags='gtest lib') 437054Snate@binkert.orgGTest('cprintf.test', 'cprintf.test.cc') 447054Snate@binkert.orgSource('debug.cc') 456154Snate@binkert.orgif env['USE_FENV']: 466285Snate@binkert.org Source('fenv.c') 476145Snate@binkert.orgif env['USE_PNG']: 486145Snate@binkert.org Source('pngwriter.cc') 496145Snate@binkert.orgSource('fiber.cc') 507054Snate@binkert.orgGTest('fiber.test', 'fiber.test.cc', 'fiber.cc') 517054Snate@binkert.orgGTest('coroutine.test', 'coroutine.test.cc', 'fiber.cc') 527054Snate@binkert.orgSource('framebuffer.cc') 537054Snate@binkert.orgSource('hostinfo.cc') 547054Snate@binkert.orgSource('inet.cc') 557054Snate@binkert.orgSource('inifile.cc') 567054Snate@binkert.orgGTest('inifile.test', 'inifile.test.cc', 'inifile.cc', 'str.cc') 576145Snate@binkert.orgSource('intmath.cc') 587054Snate@binkert.orgSource('logging.cc') 597054Snate@binkert.orgSource('match.cc') 607054Snate@binkert.orgSource('output.cc') 616145Snate@binkert.orgSource('pixel.cc') 627054Snate@binkert.orgGTest('pixel.test', 'pixel.test.cc', 'pixel.cc') 637054Snate@binkert.orgSource('pollevent.cc') 647054Snate@binkert.orgSource('random.cc') 657054Snate@binkert.orgif env['TARGET_ISA'] != 'null': 667054Snate@binkert.org Source('remote_gdb.cc') 677054Snate@binkert.orgSource('socket.cc') 687054Snate@binkert.orgSource('statistics.cc') 697054Snate@binkert.orgSource('str.cc') 707054Snate@binkert.orgSource('time.cc') 717054Snate@binkert.orgSource('trace.cc') 727054Snate@binkert.orgGTest('trie.test', 'trie.test.cc') 737054Snate@binkert.orgSource('types.cc') 746145Snate@binkert.org 757054Snate@binkert.orgSource('loader/aout_object.cc') 767054Snate@binkert.orgSource('loader/dtb_object.cc') 777054Snate@binkert.orgSource('loader/ecoff_object.cc') 787054Snate@binkert.orgSource('loader/elf_object.cc') 797054Snate@binkert.orgSource('loader/hex_file.cc') 806145Snate@binkert.orgSource('loader/object_file.cc') 817054Snate@binkert.orgSource('loader/raw_object.cc') 826145Snate@binkert.orgSource('loader/symtab.cc') 837054Snate@binkert.org 846145Snate@binkert.orgSource('stats/text.cc') 857054Snate@binkert.org 867054Snate@binkert.orgGTest('addr_range.test', 'addr_range.test.cc') 877054Snate@binkert.orgGTest('addr_range_map.test', 'addr_range_map.test.cc') 887054Snate@binkert.orgGTest('bitunion.test', 'bitunion.test.cc') 896145Snate@binkert.orgGTest('circlebuf.test', 'circlebuf.test.cc') 907054Snate@binkert.orgGTest('circular_queue.test', 'circular_queue.test.cc') 917054Snate@binkert.org 927054Snate@binkert.orgDebugFlag('Annotate', "State machine annotation debugging") 936145Snate@binkert.orgDebugFlag('AnnotateQ', "State machine annotation queue debugging") 947054Snate@binkert.orgDebugFlag('AnnotateVerbose', "Dump all state machine annotation details") 957054Snate@binkert.orgDebugFlag('GDBAcc', "Remote debugger accesses") 967054Snate@binkert.orgDebugFlag('GDBExtra', "Dump extra information on reads and writes") 977054Snate@binkert.orgDebugFlag('GDBMisc', "Breakpoints, traps, watchpoints, etc.") 987054Snate@binkert.orgDebugFlag('GDBRead', "Reads to the remote address space") 997054Snate@binkert.orgDebugFlag('GDBRecv', "Messages received from the remote application") 1007054Snate@binkert.orgDebugFlag('GDBSend', "Messages sent to the remote application") 1017054Snate@binkert.orgDebugFlag('GDBWrite', "Writes to the remote address space") 1027054Snate@binkert.orgDebugFlag('SQL', "SQL queries sent to the server") 1037054Snate@binkert.orgDebugFlag('StatEvents', "Statistics event tracking") 1046145Snate@binkert.org 1057054Snate@binkert.orgCompoundFlag('GDBAll', 1067054Snate@binkert.org [ 'GDBMisc', 'GDBAcc', 'GDBRead', 'GDBWrite', 'GDBSend', 'GDBRecv', 1077054Snate@binkert.org 'GDBExtra' ], 1086145Snate@binkert.org desc="All Remote debugging flags") 1096145Snate@binkert.orgCompoundFlag('AnnotateAll', ['Annotate', 'AnnotateQ', 'AnnotateVerbose'], 1107054Snate@binkert.org desc="All Annotation flags") 1117054Snate@binkert.org 1126145Snate@binkert.org