SConscript 470 B

123456789101112131415161718192021
  1. # RT-Thread building script for component
  2. from building import *
  3. cwd = GetCurrentDir()
  4. objs = []
  5. list = os.listdir(cwd)
  6. for d in list:
  7. path = os.path.join(cwd, d)
  8. if os.path.isfile(os.path.join(path, 'SConscript')):
  9. objs = objs + SConscript(os.path.join(d, 'SConscript'))
  10. src = Glob('*.c') + Glob('*.cpp')
  11. CPPPATH = [cwd, str(Dir('#'))]
  12. group = DefineGroup('Applications', src, depend = [''], CPPPATH = CPPPATH)
  13. objs = objs + group
  14. Return('objs')