SConscript revision 6899
19651SAndreas.Sandberg@ARM.com# -*- mode:python -*- 29651SAndreas.Sandberg@ARM.com 39651SAndreas.Sandberg@ARM.com# Copyright (c) 2006 The Regents of The University of Michigan 49651SAndreas.Sandberg@ARM.com# Copyright (c) 2009 Advanced Micro Devices, Inc. 59651SAndreas.Sandberg@ARM.com# All rights reserved. 69651SAndreas.Sandberg@ARM.com# 79651SAndreas.Sandberg@ARM.com# Redistribution and use in source and binary forms, with or without 89651SAndreas.Sandberg@ARM.com# modification, are permitted provided that the following conditions are 99651SAndreas.Sandberg@ARM.com# met: redistributions of source code must retain the above copyright 109651SAndreas.Sandberg@ARM.com# notice, this list of conditions and the following disclaimer; 119651SAndreas.Sandberg@ARM.com# redistributions in binary form must reproduce the above copyright 129651SAndreas.Sandberg@ARM.com# notice, this list of conditions and the following disclaimer in the 139651SAndreas.Sandberg@ARM.com# documentation and/or other materials provided with the distribution; 149651SAndreas.Sandberg@ARM.com# neither the name of the copyright holders nor the names of its 159651SAndreas.Sandberg@ARM.com# contributors may be used to endorse or promote products derived from 169651SAndreas.Sandberg@ARM.com# this software without specific prior written permission. 179651SAndreas.Sandberg@ARM.com# 189651SAndreas.Sandberg@ARM.com# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 199651SAndreas.Sandberg@ARM.com# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 209651SAndreas.Sandberg@ARM.com# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 219651SAndreas.Sandberg@ARM.com# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 229651SAndreas.Sandberg@ARM.com# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 239651SAndreas.Sandberg@ARM.com# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 249651SAndreas.Sandberg@ARM.com# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 259651SAndreas.Sandberg@ARM.com# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 269651SAndreas.Sandberg@ARM.com# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 279651SAndreas.Sandberg@ARM.com# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 289651SAndreas.Sandberg@ARM.com# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 299651SAndreas.Sandberg@ARM.com# 309651SAndreas.Sandberg@ARM.com 319651SAndreas.Sandberg@ARM.comImport('*') 329651SAndreas.Sandberg@ARM.com 339651SAndreas.Sandberg@ARM.com# 349651SAndreas.Sandberg@ARM.com# Currently the ruby testser relies on Ruby specific objects (SubBlock, etc.) 359651SAndreas.Sandberg@ARM.com# When this dependency is removed, the ruby tester should be compiled 369651SAndreas.Sandberg@ARM.com# independently from Ruby 379651SAndreas.Sandberg@ARM.com# 389651SAndreas.Sandberg@ARM.comif not env['RUBY']: 399651SAndreas.Sandberg@ARM.com Return() 409651SAndreas.Sandberg@ARM.com 419651SAndreas.Sandberg@ARM.comSimObject('RubyTester.py') 429651SAndreas.Sandberg@ARM.com 439651SAndreas.Sandberg@ARM.comSource('RubyTester.cc') 449651SAndreas.Sandberg@ARM.comSource('Check.cc') 459651SAndreas.Sandberg@ARM.comSource('CheckTable.cc') 469651SAndreas.Sandberg@ARM.com 479651SAndreas.Sandberg@ARM.comTraceFlag('RubyTest') 489651SAndreas.Sandberg@ARM.com