SConscript 595 B

12345678910111213141516171819
  1. from building import *
  2. import os
  3. cwd = GetCurrentDir()
  4. # source files
  5. src = Split('''
  6. ''')
  7. ESPRUINO_SRC_PATH = cwd + '/src'
  8. if GetDepend('RT_USING_JS') and not os.path.exists(ESPRUINO_SRC_PATH):
  9. print '================ERROR============================'
  10. print 'Please get espruino source files and put them under espruino folder'
  11. print '================================================='
  12. exit(0)
  13. CPPPATH = [cwd + '/src', cwd + '/gen', cwd + '/libs', cwd + '/targets/rtthread']
  14. group = DefineGroup('Espruino', src, depend = ['RT_USING_JS'], CPPPATH = CPPPATH)
  15. Return('group')