frombuildingimport*importoscwd=GetCurrentDir()# source files src=Split('''''')ESPRUINO_SRC_PATH=cwd+'/src'ifGetDepend('RT_USING_JS')andnotos.path.exists(ESPRUINO_SRC_PATH):print'================ERROR============================'print'Please get espruino source files and put them under espruino folder'print'================================================='exit(0)CPPPATH=[cwd+'/src',cwd+'/gen',cwd+'/libs',cwd+'/targets/rtthread']group=DefineGroup('Espruino',src,depend=['RT_USING_JS'],CPPPATH=CPPPATH)Return('group')