SConscript 442 B

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