SConscript revision 10915
112047Schristian.menard@tu-dresden.de# -*- mode:python -*- 212047Schristian.menard@tu-dresden.de 312047Schristian.menard@tu-dresden.de# Copyright (c) 2015 ARM Limited 412047Schristian.menard@tu-dresden.de# All rights reserved. 512047Schristian.menard@tu-dresden.de# 612047Schristian.menard@tu-dresden.de# The license below extends only to copyright in the software and shall 712047Schristian.menard@tu-dresden.de# not be construed as granting a license to any other intellectual 812047Schristian.menard@tu-dresden.de# property including but not limited to intellectual property relating 912047Schristian.menard@tu-dresden.de# to a hardware implementation of the functionality of the software 1012047Schristian.menard@tu-dresden.de# licensed hereunder. You may use the software subject to the license 1112047Schristian.menard@tu-dresden.de# terms below provided that you ensure that this notice is replicated 1212047Schristian.menard@tu-dresden.de# unmodified and in its entirety in all distributions of the software, 1312047Schristian.menard@tu-dresden.de# modified or unmodified, in source code or in binary form. 1412047Schristian.menard@tu-dresden.de# 1512047Schristian.menard@tu-dresden.de# Redistribution and use in source and binary forms, with or without 1612047Schristian.menard@tu-dresden.de# modification, are permitted provided that the following conditions are 1712047Schristian.menard@tu-dresden.de# met: redistributions of source code must retain the above copyright 1812047Schristian.menard@tu-dresden.de# notice, this list of conditions and the following disclaimer; 1912047Schristian.menard@tu-dresden.de# redistributions in binary form must reproduce the above copyright 2012047Schristian.menard@tu-dresden.de# notice, this list of conditions and the following disclaimer in the 2112047Schristian.menard@tu-dresden.de# documentation and/or other materials provided with the distribution; 2212047Schristian.menard@tu-dresden.de# neither the name of the copyright holders nor the names of its 2312047Schristian.menard@tu-dresden.de# contributors may be used to endorse or promote products derived from 2412047Schristian.menard@tu-dresden.de# this software without specific prior written permission. 2512047Schristian.menard@tu-dresden.de# 2612047Schristian.menard@tu-dresden.de# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 2712047Schristian.menard@tu-dresden.de# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 2812047Schristian.menard@tu-dresden.de# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 2912047Schristian.menard@tu-dresden.de# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 3012047Schristian.menard@tu-dresden.de# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 3112047Schristian.menard@tu-dresden.de# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 3212047Schristian.menard@tu-dresden.de# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 3312047Schristian.menard@tu-dresden.de# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 3412047Schristian.menard@tu-dresden.de# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 3512047Schristian.menard@tu-dresden.de# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 3612047Schristian.menard@tu-dresden.de# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 3712047Schristian.menard@tu-dresden.de# 3812047Schristian.menard@tu-dresden.de# Authors: Andreas Sandberg 3912047Schristian.menard@tu-dresden.de 4012047Schristian.menard@tu-dresden.deImport('main') 4112047Schristian.menard@tu-dresden.de 4212047Schristian.menard@tu-dresden.demain.Prepend(CPPPATH=Dir('./include')) 4312047Schristian.menard@tu-dresden.de 4412047Schristian.menard@tu-dresden.denomali = main.Clone() 45 46nomali_sources = [ 47 "lib/gpu.cc", 48 "lib/gpublock.cc", 49 "lib/gpucontrol.cc", 50 "lib/jobcontrol.cc", 51 "lib/jobslot.cc", 52 "lib/mali_midgard.cc", 53 "lib/mali_t6xx.cc", 54 "lib/mali_t7xx.cc", 55 "lib/mmu.cc", 56 "lib/nomali_api.cc", 57] 58 59nomali.Library('nomali', [ nomali.SharedObject(f) for f in nomali_sources ]) 60 61main.Append(LIBS=['nomali']) 62main.Prepend(LIBPATH=[Dir('.')]) 63 64