Add directory and SConscript for Espruino.

This commit is contained in:
Bernard Xiong 2014-02-06 15:49:47 +08:00
parent 8778e39c9f
commit be2ff57198
1 changed files with 19 additions and 0 deletions

19
components/external/espruino/SConscript vendored Normal file
View File

@ -0,0 +1,19 @@
from building import *
import os
cwd = GetCurrentDir()
# source files
src = Split('''
''')
ESPRUINO_SRC_PATH = cwd + '/src'
if GetDepend('RT_USING_JS') and not os.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')