SConscript 337 B

123456789101112131415
  1. from building import *
  2. cwd = GetCurrentDir()
  3. src = Glob('*.c')
  4. CPPPATH = [cwd]
  5. objs = DefineGroup('Drivers', src, depend = [''], CPPPATH = CPPPATH)
  6. for item in os.listdir(cwd):
  7. sconsfile = os.path.join(item, 'SConscript')
  8. if os.path.isfile(os.path.join(cwd, sconsfile)):
  9. objs += SConscript(sconsfile)
  10. Return('objs')