SConscript 479 B

123456789101112131415161718
  1. from building import *
  2. import os
  3. cwd = GetCurrentDir()
  4. CPPPATH = [cwd]
  5. src = Glob('*.c')
  6. if GetDepend(['PKG_USING_RTDUINO']) and not GetDepend(['RTDUINO_NO_SETUP_LOOP']):
  7. src += ['arduino_main.cpp']
  8. group = DefineGroup('Applications', src, depend = [''], CPPPATH = CPPPATH)
  9. list = os.listdir(cwd)
  10. for item in list:
  11. if os.path.isfile(os.path.join(cwd, item, 'SConscript')):
  12. group = group + SConscript(os.path.join(item, 'SConscript'))
  13. Return('group')