SConscript 971 字节
Newer Older
F
FuChao 已提交
1 2 3 4 5 6 7 8 9 10
import rtconfig
from building import *

# get current directory
cwd = GetCurrentDir()

# The set of source files associated with this SConscript file.

src = Glob('VangoV85xx_standard_peripheral/Source/*.c')
src += [cwd + '/CMSIS/Vango/V85xx/Source/system_target.c']
11 12 13
src += [cwd + '/CMSIS/Vango/V85xx/Source/lib_CodeRAM.c']
src += [cwd + '/CMSIS/Vango/V85xx/Source/lib_cortex.c']
src += [cwd + '/CMSIS/Vango/V85xx/Source/lib_LoadNVR.c']
F
FuChao 已提交
14 15 16 17

#add for startup script
if rtconfig.CROSS_TOOL == 'gcc':
    src += [cwd + '/CMSIS/Vango/V85xx/Source/GCC/startup_target.S']
18
if rtconfig.CROSS_TOOL == 'keil':
19
    src += [cwd + '/CMSIS/Vango/V85xx/Source/Keil5/startup_target.S']
F
FuChao 已提交
20 21 22 23 24 25 26 27 28 29 30

path = [
    cwd + '/CMSIS/Vango/V85xx/Include',
    cwd + '/CMSIS',
    cwd + '/VangoV85xx_standard_peripheral/Include',]

CPPDEFINES = ['USE_STDPERIPH_DRIVER', 'V85xx','USE_TARGET_DRIVER']

group = DefineGroup('Vango_Lib', src, depend = [''], CPPPATH = path, CPPDEFINES = CPPDEFINES)

Return('group')