#===============================================================================
#
# SECUREMSM Libs
#
# GENERAL DESCRIPTION
#    build script
#
# Copyright (c) 2009-2009 by QUALCOMM, Incorporated.
# All Rights Reserved.
# QUALCOMM Proprietary/GTDR
#
#-------------------------------------------------------------------------------
#
#  $Header: //source/qcom/qct/core/bsp/config/msm7x30/main/latest/securemsm/build/SConscript#4 $
#  $DateTime: 2009/10/07 11:43:48 $
#  $Author: wduembeg $
#  $Change: 1047079 $
#                      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')

env = env.Clone()

env.Replace(BUILDPATH = env.subst('${BUILDPATH}/${BUILD_ID}'))

CLEAN_SOURCES = env.FindFiles("*.h", "${BUILD_ROOT}/core/securemsm/unifiedcrypto/environment/")

env.CleanPack(['CORE_QDSP6_SW'], CLEAN_SOURCES)

CLEAN_SOURCES = env.FindFiles("*.h", "${BUILD_ROOT}/core/securemsm/unifiedcrypto/core/")

env.CleanPack(['CORE_QDSP6_SW'], CLEAN_SOURCES)

CLEAN_SOURCES = env.FindFiles(['*.c', '*.h'], "${BUILD_ROOT}/core/securemsm/unifiedcrypto/securechannel/")

env.CleanPack(['CORE_QDSP6_SW'], CLEAN_SOURCES)

CLEAN_SOURCES = env.FindFiles("*", "${BUILD_ROOT}/core/securemsm/unifiedcrypto/test")
for x in env.FindFiles(['*.o', '*.lib', 'SConscript'], "${BUILD_ROOT}/core/securemsm/unifiedcrypto/test/build"):
    CLEAN_SOURCES.remove(x)
for x in env.FindFiles(['*.o', '*.lib', 'SConscript'], "${BUILD_ROOT}/core/securemsm/unifiedcrypto/test/adsp/build"):
    CLEAN_SOURCES.remove(x)
env.CleanPack(['CORE_QDSP6_SW'],
              CLEAN_SOURCES)

CLEAN_SOURCES = env.FindFiles("*.h", "${BUILD_ROOT}/core/securemsm/unifiedcrypto/shared/")

env.CleanPack(['CORE_QDSP6_SW'], CLEAN_SOURCES)              

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