#===============================================================================
#
# MPROC Libs
#
# GENERAL DESCRIPTION
#    build script
#
# Copyright (c) 2009-2014 by QUALCOMM Technologies, Incorporated.
# All Rights Reserved.
# QUALCOMM Proprietary/GTDR
#
#-------------------------------------------------------------------------------
#
#  $Header: //components/rel/core.slpi/1.0/mproc/build/SConscript#4 $
#  $DateTime: 2014/10/31 11:06:13 $
#  $Author: pwbldsvc $
#  $Change: 6870687 $
#                      EDIT HISTORY FOR FILE
#
#  This section contains comments describing changes made to the module.
#  Notice that changes are listed in reverse chronological order.
#
# when       who     what, where, why
# --------   ---     ---------------------------------------------------------
#
#===============================================================================
Import('env')
import os
env = env.Clone()

if env.has_key('BUILD_BOOT_CHAIN'):
  # Publish Protected API, accessible only within MPROC.
  env.PublishProtectedApi('SMEM_INTERNAL', [
    "${INC_ROOT}/core/mproc/smem/src",
  ])

#-------------------------------------------------------------------------------
# Convert warnings to errors 
#-------------------------------------------------------------------------------
env.Append(CFLAGS = " -Werror")


#-------------------------------------------------------------------------------
# Load sub scripts
#-------------------------------------------------------------------------------
env.LoadSoftwareUnits()
env.LoadImageUnits()
