SConscript 405 B

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