SConscript 467 B

123456789101112131415161718192021222324
  1. from building import *
  2. cwd = GetCurrentDir()
  3. src = Glob('*.c')
  4. CPPPATH = [cwd]
  5. if GetDepend('RT_USING_RTGUI') == False:
  6. SrcRemove(src, 'touch.c')
  7. group = DefineGroup('Drivers', src, depend = [''], CPPPATH = CPPPATH)
  8. objs = []
  9. list = os.listdir(cwd)
  10. for d in list:
  11. path = os.path.join(cwd, d)
  12. if os.path.isfile(os.path.join(path, 'SConscript')):
  13. objs = objs + SConscript(os.path.join(d, 'SConscript'))
  14. group = group + objs
  15. Return('group')