SConscript revision 9402
16691Stjones1@inf.ed.ac.uk# -*- mode:python -*-
26691Stjones1@inf.ed.ac.uk
36691Stjones1@inf.ed.ac.uk# Copyright (c) 2012 ARM Limited
46691Stjones1@inf.ed.ac.uk# All rights reserved.
56691Stjones1@inf.ed.ac.uk#
66691Stjones1@inf.ed.ac.uk# The license below extends only to copyright in the software and shall
76691Stjones1@inf.ed.ac.uk# not be construed as granting a license to any other intellectual
86691Stjones1@inf.ed.ac.uk# property including but not limited to intellectual property relating
96691Stjones1@inf.ed.ac.uk# to a hardware implementation of the functionality of the software
106691Stjones1@inf.ed.ac.uk# licensed hereunder.  You may use the software subject to the license
116691Stjones1@inf.ed.ac.uk# terms below provided that you ensure that this notice is replicated
126691Stjones1@inf.ed.ac.uk# unmodified and in its entirety in all distributions of the software,
136691Stjones1@inf.ed.ac.uk# modified or unmodified, in source code or in binary form.
146691Stjones1@inf.ed.ac.uk#
156691Stjones1@inf.ed.ac.uk# Redistribution and use in source and binary forms, with or without
166691Stjones1@inf.ed.ac.uk# modification, are permitted provided that the following conditions are
176691Stjones1@inf.ed.ac.uk# met: redistributions of source code must retain the above copyright
186691Stjones1@inf.ed.ac.uk# notice, this list of conditions and the following disclaimer;
196691Stjones1@inf.ed.ac.uk# redistributions in binary form must reproduce the above copyright
206691Stjones1@inf.ed.ac.uk# notice, this list of conditions and the following disclaimer in the
216691Stjones1@inf.ed.ac.uk# documentation and/or other materials provided with the distribution;
226691Stjones1@inf.ed.ac.uk# neither the name of the copyright holders nor the names of its
236691Stjones1@inf.ed.ac.uk# contributors may be used to endorse or promote products derived from
246691Stjones1@inf.ed.ac.uk# this software without specific prior written permission.
256691Stjones1@inf.ed.ac.uk#
266691Stjones1@inf.ed.ac.uk# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
276691Stjones1@inf.ed.ac.uk# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
286691Stjones1@inf.ed.ac.uk# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
296691Stjones1@inf.ed.ac.uk# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
306691Stjones1@inf.ed.ac.uk# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
316691Stjones1@inf.ed.ac.uk# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
326691Stjones1@inf.ed.ac.uk# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
336691Stjones1@inf.ed.ac.uk# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
346691Stjones1@inf.ed.ac.uk# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
356691Stjones1@inf.ed.ac.uk# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
366691Stjones1@inf.ed.ac.uk# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
379022Sgblack@eecs.umich.edu#
386691Stjones1@inf.ed.ac.uk# Authors: Andreas Hansson
396691Stjones1@inf.ed.ac.uk
406691Stjones1@inf.ed.ac.ukImport('*')
416691Stjones1@inf.ed.ac.uk
426691Stjones1@inf.ed.ac.uk# Only build the traffic generator if we have support for protobuf as the
436691Stjones1@inf.ed.ac.uk# tracing relies on it
448745Sgblack@eecs.umich.eduif env['HAVE_PROTOBUF']:
458772Sgblack@eecs.umich.edu    SimObject('TrafficGen.py')
468772Sgblack@eecs.umich.edu
479384SAndreas.Sandberg@arm.com    Source('traffic_gen.cc')
486691Stjones1@inf.ed.ac.uk
498772Sgblack@eecs.umich.edu    DebugFlag('TrafficGen')
508792Sgblack@eecs.umich.edu