Browse Source

[BSP]更新NUVOTON M487 Sconscript

Bluebear233 6 years ago
parent
commit
d67c9fabfe
1 changed files with 4 additions and 4 deletions
  1. 4 4
      bsp/nuvoton_m487/applications/SConscript

+ 4 - 4
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)