SConscript 494 字节
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]

L
liukangcc 已提交
11
if rtconfig.PLATFORM == 'armcc' or rtconfig.PLATFORM == 'armclang':
12 13 14 15 16 17 18 19 20
    src += Glob('*_rvds.S')

if rtconfig.PLATFORM == 'gcc':
    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')