2019-08-21 22:26:25 +08:00
|
|
|
# RT-Thread building script for component
|
|
|
|
|
|
|
|
Import('rtconfig')
|
|
|
|
Import('RTT_ROOT')
|
|
|
|
from building import *
|
|
|
|
|
|
|
|
cwd = GetCurrentDir()
|
|
|
|
|
|
|
|
src = Glob('GD32VF103_standard_peripheral/Source/*.c')
|
|
|
|
src += Glob('n22/env_Eclipse/*.c')
|
|
|
|
src += ['GD32VF103_standard_peripheral/system_gd32vf103.c',
|
|
|
|
'n22/drivers/n22_func.c',
|
|
|
|
'n22/env_Eclipse/start.S',
|
|
|
|
'n22/env_Eclipse/entry.S']
|
|
|
|
|
|
|
|
CPPPATH = [ cwd + '/GD32VF103_standard_peripheral/Include',
|
|
|
|
cwd + '/GD32VF103_standard_peripheral',
|
2021-10-26 12:51:32 +08:00
|
|
|
cwd + '/n22/drivers']
|
2019-08-21 22:26:25 +08:00
|
|
|
|
2021-10-26 12:51:32 +08:00
|
|
|
group = DefineGroup('Libraries', src, depend = [''], CPPPATH = CPPPATH)
|
2019-08-21 22:26:25 +08:00
|
|
|
|
|
|
|
Return('group')
|