SConscript revision 10915:71ace17ccb3d
113531Sjairo.balart@metempsy.com# -*- mode:python -*-
214258Sgiacomo.travaglini@arm.com
314258Sgiacomo.travaglini@arm.com# Copyright (c) 2015 ARM Limited
414258Sgiacomo.travaglini@arm.com# All rights reserved.
514258Sgiacomo.travaglini@arm.com#
614258Sgiacomo.travaglini@arm.com# The license below extends only to copyright in the software and shall
714258Sgiacomo.travaglini@arm.com# not be construed as granting a license to any other intellectual
814258Sgiacomo.travaglini@arm.com# property including but not limited to intellectual property relating
914258Sgiacomo.travaglini@arm.com# to a hardware implementation of the functionality of the software
1014258Sgiacomo.travaglini@arm.com# licensed hereunder.  You may use the software subject to the license
1114258Sgiacomo.travaglini@arm.com# terms below provided that you ensure that this notice is replicated
1214258Sgiacomo.travaglini@arm.com# unmodified and in its entirety in all distributions of the software,
1314258Sgiacomo.travaglini@arm.com# modified or unmodified, in source code or in binary form.
1413531Sjairo.balart@metempsy.com#
1513531Sjairo.balart@metempsy.com# Redistribution and use in source and binary forms, with or without
1613531Sjairo.balart@metempsy.com# modification, are permitted provided that the following conditions are
1713531Sjairo.balart@metempsy.com# met: redistributions of source code must retain the above copyright
1813531Sjairo.balart@metempsy.com# notice, this list of conditions and the following disclaimer;
1913531Sjairo.balart@metempsy.com# redistributions in binary form must reproduce the above copyright
2013531Sjairo.balart@metempsy.com# notice, this list of conditions and the following disclaimer in the
2113531Sjairo.balart@metempsy.com# documentation and/or other materials provided with the distribution;
2213531Sjairo.balart@metempsy.com# neither the name of the copyright holders nor the names of its
2313531Sjairo.balart@metempsy.com# contributors may be used to endorse or promote products derived from
2413531Sjairo.balart@metempsy.com# this software without specific prior written permission.
2513531Sjairo.balart@metempsy.com#
2613531Sjairo.balart@metempsy.com# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
2713531Sjairo.balart@metempsy.com# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
2813531Sjairo.balart@metempsy.com# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
2913531Sjairo.balart@metempsy.com# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
3013531Sjairo.balart@metempsy.com# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
3113531Sjairo.balart@metempsy.com# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
3213531Sjairo.balart@metempsy.com# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
3313531Sjairo.balart@metempsy.com# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
3413531Sjairo.balart@metempsy.com# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
3513531Sjairo.balart@metempsy.com# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
3613531Sjairo.balart@metempsy.com# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
3713531Sjairo.balart@metempsy.com#
3813531Sjairo.balart@metempsy.com# Authors: Andreas Sandberg
3913531Sjairo.balart@metempsy.com
4013531Sjairo.balart@metempsy.comImport('main')
4113531Sjairo.balart@metempsy.com
4213531Sjairo.balart@metempsy.commain.Prepend(CPPPATH=Dir('./include'))
4313531Sjairo.balart@metempsy.com
4413531Sjairo.balart@metempsy.comnomali = main.Clone()
4513531Sjairo.balart@metempsy.com
4613531Sjairo.balart@metempsy.comnomali_sources = [
4713531Sjairo.balart@metempsy.com    "lib/gpu.cc",
4813531Sjairo.balart@metempsy.com    "lib/gpublock.cc",
4913531Sjairo.balart@metempsy.com    "lib/gpucontrol.cc",
5013756Sjairo.balart@metempsy.com    "lib/jobcontrol.cc",
5113531Sjairo.balart@metempsy.com    "lib/jobslot.cc",
5213996Sgiacomo.travaglini@arm.com    "lib/mali_midgard.cc",
5313531Sjairo.balart@metempsy.com    "lib/mali_t6xx.cc",
5413531Sjairo.balart@metempsy.com    "lib/mali_t7xx.cc",
5513531Sjairo.balart@metempsy.com    "lib/mmu.cc",
5613531Sjairo.balart@metempsy.com    "lib/nomali_api.cc",
5713531Sjairo.balart@metempsy.com]
5813531Sjairo.balart@metempsy.com
5913531Sjairo.balart@metempsy.comnomali.Library('nomali', [  nomali.SharedObject(f) for f in nomali_sources ])
6013996Sgiacomo.travaglini@arm.com
6113531Sjairo.balart@metempsy.commain.Append(LIBS=['nomali'])
6213531Sjairo.balart@metempsy.commain.Prepend(LIBPATH=[Dir('.')])
6313531Sjairo.balart@metempsy.com
6413531Sjairo.balart@metempsy.com