SConscript revision 12222
12086SN/A# Copyright (c) 2011 Gabe Black
22086SN/A# All rights reserved.
32086SN/A#
42086SN/A# Redistribution and use in source and binary forms, with or without
52086SN/A# modification, are permitted provided that the following conditions are
62086SN/A# met: redistributions of source code must retain the above copyright
72086SN/A# notice, this list of conditions and the following disclaimer;
82086SN/A# redistributions in binary form must reproduce the above copyright
92086SN/A# notice, this list of conditions and the following disclaimer in the
102086SN/A# documentation and/or other materials provided with the distribution;
112086SN/A# neither the name of the copyright holders nor the names of its
122086SN/A# contributors may be used to endorse or promote products derived from
132086SN/A# this software without specific prior written permission.
142086SN/A#
152086SN/A# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
162086SN/A# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
172086SN/A# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
182086SN/A# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
192086SN/A# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
202086SN/A# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
212086SN/A# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
222086SN/A# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
232086SN/A# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
242086SN/A# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
252086SN/A# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
262086SN/A#
272086SN/A# Authors: Gabe Black
282665Ssaidi@eecs.umich.edu
292665Ssaidi@eecs.umich.eduimport os
302665Ssaidi@eecs.umich.edu
312086SN/AImport('env', 'arch')
322086SN/A
332086SN/Aenv.Append(CPPPATH=Dir('.'))
342086SN/A
352086SN/Asources = [os.path.join('base', 'statetrace.cc'),
362086SN/A           os.path.join('base', 'tracechild.cc'),
372086SN/A           os.path.join('arch', arch, 'tracechild.cc')]
382086SN/Aobjects = [env.Object(source) for source in sources]
392086SN/Aenv.Program('statetrace', objects)
402086SN/A