2020-10-16 11:38:52 +08:00
|
|
|
# RT-Thread building script for component
|
|
|
|
|
|
|
|
from building import *
|
|
|
|
|
|
|
|
Import('rtconfig')
|
|
|
|
|
|
|
|
cwd = GetCurrentDir()
|
|
|
|
src = Glob('*.c') + Glob('*.cpp')
|
|
|
|
CPPPATH = [cwd]
|
|
|
|
|
|
|
|
if rtconfig.PLATFORM == 'gcc':
|
|
|
|
src += Glob('*_init.S')
|
|
|
|
src += Glob('*_gcc.S')
|
|
|
|
|
2020-11-20 13:38:11 +08:00
|
|
|
group = DefineGroup('Libcpu', src, depend = [''], CPPPATH = CPPPATH)
|
2020-10-16 11:38:52 +08:00
|
|
|
|
|
|
|
Return('group')
|