SConscript 514 B

1234567891011121314151617181920
  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. CPPDEFINES = ['-DDEBUG']
  8. group = DefineGroup('Libraries', src, depend = [''], CPPPATH = path, CPPDEFINES = CPPDEFINES, LIBINSPATH = libinspath)
  9. list = os.listdir(cwd)
  10. for d in list:
  11. path = os.path.join(cwd, d)
  12. if os.path.isfile(os.path.join(path, 'SConscript')):
  13. group = group + SConscript(os.path.join(d, 'SConscript'))
  14. Return('group')