SConscript revision 13482
12817Sksewell@umich.edu# -*- mode:python -*-
22817Sksewell@umich.edu
32817Sksewell@umich.edu# Copyright (c) 2006 The Regents of The University of Michigan
42817Sksewell@umich.edu# All rights reserved.
52817Sksewell@umich.edu#
62817Sksewell@umich.edu# Redistribution and use in source and binary forms, with or without
72817Sksewell@umich.edu# modification, are permitted provided that the following conditions are
82817Sksewell@umich.edu# met: redistributions of source code must retain the above copyright
92817Sksewell@umich.edu# notice, this list of conditions and the following disclaimer;
102817Sksewell@umich.edu# redistributions in binary form must reproduce the above copyright
112817Sksewell@umich.edu# notice, this list of conditions and the following disclaimer in the
122817Sksewell@umich.edu# documentation and/or other materials provided with the distribution;
132817Sksewell@umich.edu# neither the name of the copyright holders nor the names of its
142817Sksewell@umich.edu# contributors may be used to endorse or promote products derived from
152817Sksewell@umich.edu# this software without specific prior written permission.
162817Sksewell@umich.edu#
172817Sksewell@umich.edu# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
182817Sksewell@umich.edu# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
192817Sksewell@umich.edu# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
202817Sksewell@umich.edu# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
212817Sksewell@umich.edu# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
222817Sksewell@umich.edu# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
232817Sksewell@umich.edu# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
242817Sksewell@umich.edu# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
252817Sksewell@umich.edu# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
262817Sksewell@umich.edu# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
272817Sksewell@umich.edu# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
282817Sksewell@umich.edu#
294202Sbinkertn@umich.edu# Authors: Nathan Binkert
302817Sksewell@umich.edu
312817Sksewell@umich.eduImport('*')
322817Sksewell@umich.edu
334202Sbinkertn@umich.eduif env['CP_ANNOTATE']:
342817Sksewell@umich.edu    SimObject('CPA.py')
354202Sbinkertn@umich.edu    Source('cp_annotate.cc')
364486Sbinkertn@umich.eduSimObject('Graphics.py')
374486Sbinkertn@umich.eduSource('atomicio.cc')
384486Sbinkertn@umich.eduSource('bitfield.cc')
394486Sbinkertn@umich.eduSource('imgwriter.cc')
404202Sbinkertn@umich.eduSource('bmpwriter.cc')
414202Sbinkertn@umich.eduSource('callback.cc')
424202Sbinkertn@umich.eduSource('cprintf.cc', add_tags='gtest lib')
439341SAndreas.Sandberg@arm.comGTest('cprintf.test', 'cprintf.test.cc')
444202Sbinkertn@umich.eduSource('debug.cc')
455597Sgblack@eecs.umich.eduif env['USE_FENV']:
464202Sbinkertn@umich.edu    Source('fenv.c')
474202Sbinkertn@umich.eduif env['USE_PNG']:
484202Sbinkertn@umich.edu    Source('pngwriter.cc')
494202Sbinkertn@umich.eduSource('fiber.cc')
504202Sbinkertn@umich.eduGTest('fiber.test', 'fiber.test.cc', 'fiber.cc')
514202Sbinkertn@umich.eduGTest('coroutine.test', 'coroutine.test.cc', 'fiber.cc')
524202Sbinkertn@umich.eduSource('framebuffer.cc')
534202Sbinkertn@umich.eduSource('hostinfo.cc')
549919Ssteve.reinhardt@amd.comSource('inet.cc')
554202Sbinkertn@umich.eduSource('inifile.cc')
564202Sbinkertn@umich.eduGTest('inifile.test', 'inifile.test.cc', 'inifile.cc', 'str.cc')
574202Sbinkertn@umich.eduSource('intmath.cc')
584202Sbinkertn@umich.eduSource('logging.cc')
594202Sbinkertn@umich.eduSource('match.cc')
605597Sgblack@eecs.umich.eduSource('output.cc')
612817Sksewell@umich.eduSource('pixel.cc')
6210426Smitch.hayenga@arm.comGTest('pixel.test', 'pixel.test.cc', 'pixel.cc')
6310426Smitch.hayenga@arm.comSource('pollevent.cc')
6410426Smitch.hayenga@arm.comSource('random.cc')
658335Snate@binkert.orgif env['TARGET_ISA'] != 'null':
668335Snate@binkert.org    Source('remote_gdb.cc')
678335Snate@binkert.orgSource('socket.cc')
688335Snate@binkert.orgSource('statistics.cc')
698335Snate@binkert.orgSource('str.cc')
708335Snate@binkert.orgSource('time.cc')
718335Snate@binkert.orgSource('trace.cc')
728335Snate@binkert.orgGTest('trie.test', 'trie.test.cc')
738335Snate@binkert.orgSource('types.cc')
745192Ssaidi@eecs.umich.edu
755192Ssaidi@eecs.umich.eduSource('loader/aout_object.cc')
765192Ssaidi@eecs.umich.eduSource('loader/dtb_object.cc')
775192Ssaidi@eecs.umich.eduSource('loader/ecoff_object.cc')
785192Ssaidi@eecs.umich.eduSource('loader/elf_object.cc')
798887Sgeoffrey.blake@arm.comSource('loader/hex_file.cc')
809340SAndreas.Sandberg@arm.comSource('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('addr_range_map.test', 'addr_range_map.test.cc')
88GTest('bitunion.test', 'bitunion.test.cc')
89GTest('circlebuf.test', 'circlebuf.test.cc')
90GTest('circular_queue.test', 'circular_queue.test.cc')
91
92DebugFlag('Annotate', "State machine annotation debugging")
93DebugFlag('AnnotateQ', "State machine annotation queue debugging")
94DebugFlag('AnnotateVerbose', "Dump all state machine annotation details")
95DebugFlag('GDBAcc', "Remote debugger accesses")
96DebugFlag('GDBExtra', "Dump extra information on reads and writes")
97DebugFlag('GDBMisc', "Breakpoints, traps, watchpoints, etc.")
98DebugFlag('GDBRead', "Reads to the remote address space")
99DebugFlag('GDBRecv', "Messages received from the remote application")
100DebugFlag('GDBSend', "Messages sent to the remote application")
101DebugFlag('GDBWrite', "Writes to the remote address space")
102DebugFlag('SQL', "SQL queries sent to the server")
103DebugFlag('StatEvents', "Statistics event tracking")
104
105CompoundFlag('GDBAll',
106    [ 'GDBMisc', 'GDBAcc', 'GDBRead', 'GDBWrite', 'GDBSend', 'GDBRecv',
107      'GDBExtra' ],
108    desc="All Remote debugging flags")
109CompoundFlag('AnnotateAll', ['Annotate', 'AnnotateQ', 'AnnotateVerbose'],
110    desc="All Annotation flags")
111
112