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