SConscript 463 B

123456789101112131415161718
  1. from building import *
  2. cwd = GetCurrentDir()
  3. src = Glob('*.c')
  4. path = [cwd + '/inc']
  5. libcwd = str(Dir('#'))
  6. libinspath = libcwd + '/libraries/lib'
  7. group = DefineGroup('Libraries', src, depend = [''], CPPPATH = path, LIBINSPATH = libinspath)
  8. list = os.listdir(cwd)
  9. for d in list:
  10. path = os.path.join(cwd, d)
  11. if os.path.isfile(os.path.join(path, 'SConscript')):
  12. group = group + SConscript(os.path.join(d, 'SConscript'))
  13. Return('group')