SConscript revision 9537
19537Satgutier@umich.edu# -*- mode:python -*- 29537Satgutier@umich.edu 39537Satgutier@umich.edu# Copyright (c) 2013 The Regents of The University of Michigan 49537Satgutier@umich.edu# All rights reserved. 59537Satgutier@umich.edu# 69537Satgutier@umich.edu# Redistribution and use in source and binary forms, with or without 79537Satgutier@umich.edu# modification, are permitted provided that the following conditions are 89537Satgutier@umich.edu# met: redistributions of source code must retain the above copyright 99537Satgutier@umich.edu# notice, this list of conditions and the following disclaimer; 109537Satgutier@umich.edu# redistributions in binary form must reproduce the above copyright 119537Satgutier@umich.edu# notice, this list of conditions and the following disclaimer in the 129537Satgutier@umich.edu# documentation and/or other materials provided with the distribution; 139537Satgutier@umich.edu# neither the name of the copyright holders nor the names of its 149537Satgutier@umich.edu# contributors may be used to endorse or promote products derived from 159537Satgutier@umich.edu# this software without specific prior written permission. 169537Satgutier@umich.edu# 179537Satgutier@umich.edu# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 189537Satgutier@umich.edu# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 199537Satgutier@umich.edu# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 209537Satgutier@umich.edu# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 219537Satgutier@umich.edu# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 229537Satgutier@umich.edu# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 239537Satgutier@umich.edu# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 249537Satgutier@umich.edu# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 259537Satgutier@umich.edu# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 269537Satgutier@umich.edu# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 279537Satgutier@umich.edu# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 289537Satgutier@umich.edu# 299537Satgutier@umich.edu# Authors: Anthony Gutierrez 309537Satgutier@umich.edu 319537Satgutier@umich.eduImport('main') 329537Satgutier@umich.edu 339537Satgutier@umich.edufdt_files = [] 349537Satgutier@umich.edu 359537Satgutier@umich.edudef FdtFile(filename): 369537Satgutier@umich.edu fdt_files.append(File(filename)) 379537Satgutier@umich.edu 389537Satgutier@umich.eduFdtFile('fdt.c') 399537Satgutier@umich.eduFdtFile('fdt_ro.c') 409537Satgutier@umich.eduFdtFile('fdt_rw.c') 419537Satgutier@umich.eduFdtFile('fdt_sw.c') 429537Satgutier@umich.eduFdtFile('fdt_wip.c') 439537Satgutier@umich.eduFdtFile('fdt_empty_tree.c') 449537Satgutier@umich.eduFdtFile('fdt_strerror.c') 459537Satgutier@umich.edu 469537Satgutier@umich.edumain.Library('fdt', [main.SharedObject(f) for f in fdt_files]) 479537Satgutier@umich.edumain.Prepend(CPPPATH=Dir('.')) 489537Satgutier@umich.edumain.Append(LIBS=['fdt']) 499537Satgutier@umich.edumain.Prepend(LIBPATH=[Dir('.')]) 50