SConscript revision 9666:74aca4cb081e
12SN/A# -*- mode:python -*- 212680Sgiacomo.travaglini@arm.com 38703Sandreas.hansson@arm.com# Copyright (c) 2012 ARM Limited 48703Sandreas.hansson@arm.com# All rights reserved. 58703Sandreas.hansson@arm.com# 68703Sandreas.hansson@arm.com# The license below extends only to copyright in the software and shall 78703Sandreas.hansson@arm.com# not be construed as granting a license to any other intellectual 88703Sandreas.hansson@arm.com# property including but not limited to intellectual property relating 98703Sandreas.hansson@arm.com# to a hardware implementation of the functionality of the software 108703Sandreas.hansson@arm.com# licensed hereunder. You may use the software subject to the license 118703Sandreas.hansson@arm.com# terms below provided that you ensure that this notice is replicated 128703Sandreas.hansson@arm.com# unmodified and in its entirety in all distributions of the software, 138703Sandreas.hansson@arm.com# modified or unmodified, in source code or in binary form. 141762SN/A# 157897Shestness@cs.utexas.edu# Redistribution and use in source and binary forms, with or without 162SN/A# modification, are permitted provided that the following conditions are 172SN/A# met: redistributions of source code must retain the above copyright 182SN/A# notice, this list of conditions and the following disclaimer; 192SN/A# redistributions in binary form must reproduce the above copyright 202SN/A# notice, this list of conditions and the following disclaimer in the 212SN/A# documentation and/or other materials provided with the distribution; 222SN/A# neither the name of the copyright holders nor the names of its 232SN/A# contributors may be used to endorse or promote products derived from 242SN/A# this software without specific prior written permission. 252SN/A# 262SN/A# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 272SN/A# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 282SN/A# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 292SN/A# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 302SN/A# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 312SN/A# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 322SN/A# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 332SN/A# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 342SN/A# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 352SN/A# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 362SN/A# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 372SN/A# 382SN/A# Authors: Andreas Hansson 392SN/A 402665Ssaidi@eecs.umich.eduImport('*') 412665Ssaidi@eecs.umich.edu 422665Ssaidi@eecs.umich.edu# Only build the traffic generator if we have support for protobuf as the 432665Ssaidi@eecs.umich.edu# tracing relies on it 447897Shestness@cs.utexas.eduif env['HAVE_PROTOBUF']: 452SN/A SimObject('TrafficGen.py') 462SN/A 472SN/A Source('generators.cc') 482SN/A Source('traffic_gen.cc') 492SN/A 502SN/A DebugFlag('TrafficGen') 5111911SBrandon.Potter@amd.com