1Import('RTT_ROOT') 2from building import * 3 4cwd = GetCurrentDir() 5src = Split(""" 6i2c_core.c 7i2c_dev.c 8""") 9 10if GetDepend('RT_USING_I2C_BITOPS'): 11 src = src + ['i2c-bit-ops.c'] 12 13# The set of source files associated with this SConscript file. 14path = [cwd + '/../include'] 15 16group = DefineGroup('DeviceDrivers', src, depend = ['RT_USING_I2C'], CPPPATH = path) 17 18Return('group') 19