SConscript 424 B

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