SConscript 485 B

12345678910111213141516171819202122
  1. from building import *
  2. objs = []
  3. if not GetDepend(['RT_USING_OFW']):
  4. Return('objs')
  5. cwd = GetCurrentDir()
  6. list = os.listdir(cwd)
  7. CPPPATH = [cwd, cwd + '/../include']
  8. src = Glob('*.c')
  9. group = DefineGroup('DeviceDrivers', src, depend = [''], CPPPATH = CPPPATH)
  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. objs = objs + group
  15. Return('objs')