SConscript revision 13482
12929Sktlim@umich.edu# -*- mode:python -*-
22929Sktlim@umich.edu
32932Sktlim@umich.edu# Copyright (c) 2006 The Regents of The University of Michigan
42929Sktlim@umich.edu# All rights reserved.
52929Sktlim@umich.edu#
62929Sktlim@umich.edu# Redistribution and use in source and binary forms, with or without
72929Sktlim@umich.edu# modification, are permitted provided that the following conditions are
82929Sktlim@umich.edu# met: redistributions of source code must retain the above copyright
92929Sktlim@umich.edu# notice, this list of conditions and the following disclaimer;
102929Sktlim@umich.edu# redistributions in binary form must reproduce the above copyright
112929Sktlim@umich.edu# notice, this list of conditions and the following disclaimer in the
122929Sktlim@umich.edu# documentation and/or other materials provided with the distribution;
132929Sktlim@umich.edu# neither the name of the copyright holders nor the names of its
142929Sktlim@umich.edu# contributors may be used to endorse or promote products derived from
152929Sktlim@umich.edu# this software without specific prior written permission.
162929Sktlim@umich.edu#
172929Sktlim@umich.edu# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
182929Sktlim@umich.edu# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
192929Sktlim@umich.edu# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
202929Sktlim@umich.edu# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
212929Sktlim@umich.edu# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
222929Sktlim@umich.edu# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
232929Sktlim@umich.edu# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
242929Sktlim@umich.edu# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
252929Sktlim@umich.edu# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
262929Sktlim@umich.edu# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
272929Sktlim@umich.edu# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
282932Sktlim@umich.edu#
292932Sktlim@umich.edu# Authors: Nathan Binkert
302932Sktlim@umich.edu
312929Sktlim@umich.eduImport('*')
326007Ssteve.reinhardt@amd.com
337735SAli.Saidi@ARM.comif env['CP_ANNOTATE']:
342929Sktlim@umich.edu    SimObject('CPA.py')
352929Sktlim@umich.edu    Source('cp_annotate.cc')
362929Sktlim@umich.eduSimObject('Graphics.py')
372929Sktlim@umich.eduSource('atomicio.cc')
382929Sktlim@umich.eduSource('bitfield.cc')
392929Sktlim@umich.eduSource('imgwriter.cc')
402929Sktlim@umich.eduSource('bmpwriter.cc')
418947Sandreas.hansson@arm.comSource('callback.cc')
428947Sandreas.hansson@arm.comSource('cprintf.cc', add_tags='gtest lib')
438947Sandreas.hansson@arm.comGTest('cprintf.test', 'cprintf.test.cc')
442929Sktlim@umich.eduSource('debug.cc')
452929Sktlim@umich.eduif env['USE_FENV']:
462929Sktlim@umich.edu    Source('fenv.c')
472929Sktlim@umich.eduif env['USE_PNG']:
482929Sktlim@umich.edu    Source('pngwriter.cc')
492929Sktlim@umich.eduSource('fiber.cc')
506007Ssteve.reinhardt@amd.comGTest('fiber.test', 'fiber.test.cc', 'fiber.cc')
516007Ssteve.reinhardt@amd.comGTest('coroutine.test', 'coroutine.test.cc', 'fiber.cc')
526007Ssteve.reinhardt@amd.comSource('framebuffer.cc')
536007Ssteve.reinhardt@amd.comSource('hostinfo.cc')
546007Ssteve.reinhardt@amd.comSource('inet.cc')
556007Ssteve.reinhardt@amd.comSource('inifile.cc')
566007Ssteve.reinhardt@amd.comGTest('inifile.test', 'inifile.test.cc', 'inifile.cc', 'str.cc')
576007Ssteve.reinhardt@amd.comSource('intmath.cc')
586007Ssteve.reinhardt@amd.comSource('logging.cc')
596007Ssteve.reinhardt@amd.comSource('match.cc')
606007Ssteve.reinhardt@amd.comSource('output.cc')
616007Ssteve.reinhardt@amd.comSource('pixel.cc')
626007Ssteve.reinhardt@amd.comGTest('pixel.test', 'pixel.test.cc', 'pixel.cc')
636007Ssteve.reinhardt@amd.comSource('pollevent.cc')
646007Ssteve.reinhardt@amd.comSource('random.cc')
656007Ssteve.reinhardt@amd.comif env['TARGET_ISA'] != 'null':
669435SAndreas.Sandberg@ARM.com    Source('remote_gdb.cc')
679435SAndreas.Sandberg@ARM.comSource('socket.cc')
689435SAndreas.Sandberg@ARM.comSource('statistics.cc')
696007Ssteve.reinhardt@amd.comSource('str.cc')
706007Ssteve.reinhardt@amd.comSource('time.cc')
716007Ssteve.reinhardt@amd.comSource('trace.cc')
726007Ssteve.reinhardt@amd.comGTest('trie.test', 'trie.test.cc')
736007Ssteve.reinhardt@amd.comSource('types.cc')
746007Ssteve.reinhardt@amd.com
756007Ssteve.reinhardt@amd.comSource('loader/aout_object.cc')
766007Ssteve.reinhardt@amd.comSource('loader/dtb_object.cc')
776007Ssteve.reinhardt@amd.comSource('loader/ecoff_object.cc')
786007Ssteve.reinhardt@amd.comSource('loader/elf_object.cc')
792929Sktlim@umich.eduSource('loader/hex_file.cc')
802929Sktlim@umich.eduSource('loader/object_file.cc')
812929Sktlim@umich.eduSource('loader/raw_object.cc')
826007Ssteve.reinhardt@amd.comSource('loader/symtab.cc')
836007Ssteve.reinhardt@amd.com
846007Ssteve.reinhardt@amd.comSource('stats/text.cc')
859781Sandreas.hansson@arm.com
866007Ssteve.reinhardt@amd.comGTest('addr_range.test', 'addr_range.test.cc')
876007Ssteve.reinhardt@amd.comGTest('addr_range_map.test', 'addr_range_map.test.cc')
882929Sktlim@umich.eduGTest('bitunion.test', 'bitunion.test.cc')
892929Sktlim@umich.eduGTest('circlebuf.test', 'circlebuf.test.cc')
902929Sktlim@umich.eduGTest('circular_queue.test', 'circular_queue.test.cc')
912929Sktlim@umich.edu
922929Sktlim@umich.eduDebugFlag('Annotate', "State machine annotation debugging")
936011Ssteve.reinhardt@amd.comDebugFlag('AnnotateQ', "State machine annotation queue debugging")
946007Ssteve.reinhardt@amd.comDebugFlag('AnnotateVerbose', "Dump all state machine annotation details")
956007Ssteve.reinhardt@amd.comDebugFlag('GDBAcc', "Remote debugger accesses")
966007Ssteve.reinhardt@amd.comDebugFlag('GDBExtra', "Dump extra information on reads and writes")
976007Ssteve.reinhardt@amd.comDebugFlag('GDBMisc', "Breakpoints, traps, watchpoints, etc.")
986007Ssteve.reinhardt@amd.comDebugFlag('GDBRead', "Reads to the remote address space")
996007Ssteve.reinhardt@amd.comDebugFlag('GDBRecv', "Messages received from the remote application")
1006007Ssteve.reinhardt@amd.comDebugFlag('GDBSend', "Messages sent to the remote application")
1016007Ssteve.reinhardt@amd.comDebugFlag('GDBWrite', "Writes to the remote address space")
1026007Ssteve.reinhardt@amd.comDebugFlag('SQL', "SQL queries sent to the server")
1036007Ssteve.reinhardt@amd.comDebugFlag('StatEvents', "Statistics event tracking")
1046007Ssteve.reinhardt@amd.com
1056007Ssteve.reinhardt@amd.comCompoundFlag('GDBAll',
1066007Ssteve.reinhardt@amd.com    [ 'GDBMisc', 'GDBAcc', 'GDBRead', 'GDBWrite', 'GDBSend', 'GDBRecv',
1076007Ssteve.reinhardt@amd.com      'GDBExtra' ],
1089781Sandreas.hansson@arm.com    desc="All Remote debugging flags")
1099781Sandreas.hansson@arm.comCompoundFlag('AnnotateAll', ['Annotate', 'AnnotateQ', 'AnnotateVerbose'],
1109781Sandreas.hansson@arm.com    desc="All Annotation flags")
1119781Sandreas.hansson@arm.com
1127735SAli.Saidi@ARM.com