Update SConscript

This commit is contained in:
Bernard Xiong 2014-02-25 09:29:09 +08:00
parent 3345c3f15f
commit 213f47e380
1 changed files with 3 additions and 8 deletions

View File

@ -1,12 +1,7 @@
import rtconfig
Import('RTT_ROOT')
from building import *
path = [RTT_ROOT + r'/components/external/Espruino']
path = path + [RTT_ROOT + r'/components/external/Espruino/src/']
path = path + [RTT_ROOT + r'/components/external/Espruino/gen/']
path = path + [RTT_ROOT + r'/components/external/Espruino/libs/']
path = path + [RTT_ROOT + r'/components/external/Espruino/targets/rtthread/']
cwd = GetCurrentDir()
path = [cwd + '/src', cwd + '/gen', cwd + '/libs', cwd + '/targets/rtthread']
src = Split("""
src/jsdevices.c
@ -51,7 +46,7 @@ libs/jswrap_math.c
"""
)
src += gen + target + libs
src = src + gen + target + libs
group = DefineGroup('Espruino', src, depend = ['RT_USING_JS', 'RT_USING_NEWLIB'], CPPPATH = path)