# RT-Thread building script for componentImport('rtconfig')Import('RTT_ROOT')frombuildingimport*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',cwd+'/n22/drivers',cwd+'/n22/stubs']CPPDEFINES=[]group=DefineGroup('Libraries',src,depend=[''],CPPPATH=CPPPATH,CPPDEFINES=CPPDEFINES)Return('group')