SConscript 476 B

123456789101112131415161718192021
  1. Import('RTT_ROOT')
  2. Import('rtconfig')
  3. from building import *
  4. cwd = GetCurrentDir()
  5. #print("cwd" + cwd)
  6. #src = Glob('modules/*.c') + Glob('rtt/*.c') + Glob('packages/lfs/*.c')
  7. CPPPATH = [cwd + "/include"]
  8. objs = []
  9. list = os.listdir(cwd)
  10. for d in list:
  11. path = os.path.join(cwd, d)
  12. if not os.path.isdir(path) :
  13. continue
  14. if os.path.isfile(os.path.join(path, 'SConscript')):
  15. objs = objs + SConscript(os.path.join(d, 'SConscript'))
  16. Return('objs')