SConscript 475 字节
Newer Older
1 2 3 4 5 6 7 8 9 10
# RT-Thread building script for component

from building import *

Import('rtconfig')

cwd     = GetCurrentDir()
src     = Glob('*.c') + Glob('*.cpp')
CPPPATH = [cwd]

11
if rtconfig.PLATFORM in ['armcc', 'armclang']:
12 13
    src += Glob('*_rvds.S')

14
if rtconfig.PLATFORM in ['gcc']:
15 16 17 18 19 20
    src += Glob('*_init.S')
    src += Glob('*_gcc.S')

if rtconfig.PLATFORM == 'iar':
    src += Glob('*_iar.S')

Nameless-Y's avatar
Nameless-Y 已提交
21
group = DefineGroup('CPU', src, depend = [''], CPPPATH = CPPPATH)
22 23

Return('group')