SConscript 431 B

1234567891011121314151617
  1. from building import *
  2. import os
  3. Import('rtconfig')
  4. cwd = GetCurrentDir()
  5. src = ['cxx_crt_init.c', 'cxx_crt.cpp']
  6. CPPPATH = [cwd]
  7. group = DefineGroup('CPP', src, depend=['RT_USING_CPLUSPLUS'], CPPPATH=CPPPATH)
  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')