rt-thread/components/external/espruino/SConscript

54 lines
873 B
Python
Raw Normal View History

from building import *
2014-02-25 01:47:49 +08:00
2014-02-25 09:29:09 +08:00
cwd = GetCurrentDir()
2014-02-25 13:43:59 +08:00
path = [cwd, cwd + '/src', cwd + '/gen', cwd + '/libs', cwd + '/targets/rtthread']
2014-02-25 01:47:49 +08:00
src = Split("""
src/jsdevices.c
src/jslex.c
src/jswrap_array.c
src/jswrap_json.c
src/jswrap_process.c
src/jsutils.c
src/jswrap_interactive.c
src/jswrap_onewire.c
src/jswrap_string.c
src/jsparse.c
src/jswrap_arraybuffer.c
src/jswrap_modules.c
src/jswrap_serial.c
src/jsinteractive.c
src/jsvar.c
src/jswrap_io.c
src/jswrap_pin.c
src/jspin.c
src/jswrap_functions.c
src/jswrap_object.c
src/jswrap_spi_i2c.c
"""
)
gen = Split("""
gen/jspininfo.c
gen/jswrapper.c
"""
)
target = Split("""
targets/rtthread/espruino.c
targets/rtthread/jshardware.c
"""
)
libs = Split(
"""
libs/jswrap_math.c
"""
)
2014-02-25 09:29:09 +08:00
src = src + gen + target + libs
2014-02-25 01:47:49 +08:00
group = DefineGroup('Espruino', src, depend = ['RT_USING_JS', 'RT_USING_NEWLIB'], CPPPATH = path)
Return('group')