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