diff --git a/bsp/nuvoton_m487/applications/SConscript b/bsp/nuvoton_m487/applications/SConscript index 01eb940dfb..9ffdbcd0f9 100644 --- a/bsp/nuvoton_m487/applications/SConscript +++ b/bsp/nuvoton_m487/applications/SConscript @@ -1,9 +1,9 @@ -Import('RTT_ROOT') -Import('rtconfig') +# RT-Thread building script for component + from building import * -cwd = os.path.join(str(Dir('#')), 'applications') -src = Glob('*.c') +cwd = GetCurrentDir() +src = Glob('*.c') + Glob('*.cpp') CPPPATH = [cwd, str(Dir('#'))] group = DefineGroup('Applications', src, depend = [''], CPPPATH = CPPPATH)