SConscript 440 B

1234567891011121314151617
  1. from building import *
  2. cwd = GetCurrentDir()
  3. src = Glob('*.c')
  4. list = os.listdir(cwd)
  5. CPPPATH = [cwd + '/../inc' , cwd + '/libfdt']
  6. objs = []
  7. group = DefineGroup('FDT', src, depend = ['RT_USING_FDT'], CPPPATH = CPPPATH)
  8. for d in list:
  9. path = os.path.join(cwd, d)
  10. if os.path.isfile(os.path.join(path, 'SConscript')):
  11. objs = objs + SConscript(os.path.join(d, 'SConscript'))
  12. objs = objs + group
  13. Return('objs')