#===============================================================================
#
# DAL Libs
#
# GENERAL DESCRIPTION
#    build script
#
# Copyright (c) 2009-2017 by QUALCOMM Technologies, Incorporated.
# All Rights Reserved.
# QUALCOMM Proprietary/GTDR
#
#-------------------------------------------------------------------------------
#
#  $Header: //components/rel/core.qdsp6/5.1/dal/build/SConscript#1 $
#  $DateTime: 2019/11/13 11:21:35 $
#  $Author: pwbldsvc $
#  $Change: 21373441 $
#                      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
# --------   ---     ---------------------------------------------------------
# 11/15/17   jlg     SCons file cleanup
# 01/30/15   aa      Added FEATURE DEFINE for DALHWIO
# 03/24/10   wd      Merged with SCMM/7x30/9x00/etc qcore tip.
#
#===============================================================================
Import('env')

env = env.Clone()
dal_root = '${BUILD_ROOT}/core/dal'
env.Replace(DAL_ROOT = dal_root)

#env.Append(CCFLAGS = " -fno-strict-aliasing -save-temps")
env.Append(CCFLAGS = " -fno-strict-aliasing")

env.Append(CFLAGS = "-Werror ") 

# Uncomment this line to enable testing for Device configuration
#env.Replace(DEVCFG_BOOT_TEST = 'yes')

if 'DEVCFG_BOOT_TEST' in env:
   env.Append(CPPDEFINES = ["DEVCFG_BOOT_TEST"]) 

if 'USES_DEVCFG_STRICT_XML' in env:
    env.Append(CPPDEFINES = ["DEVCFG_STRICT_XML"])

env.Append(CPPPATH = '${DEVCFG_ROOT}/service/inc')
env.LoadSoftwareUnits()
