SConscript 440 B

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