SConscript 534 B

12345678910111213141516171819202122
  1. Import('RTT_ROOT')
  2. from building import *
  3. cwd = GetCurrentDir()
  4. src = Split("""
  5. dev_i2c_core.c
  6. dev_i2c_dev.c
  7. """)
  8. if GetDepend('RT_USING_I2C_BITOPS'):
  9. src = src + ['dev_i2c_bit_ops.c']
  10. if GetDepend('RT_USING_SOFT_I2C'):
  11. src = src + ['dev_soft_i2c.c']
  12. if GetDepend(['RT_USING_DM']):
  13. src += ['dev_i2c_bus.c', 'dev_i2c_dm.c']
  14. # The set of source files associated with this SConscript file.
  15. path = [cwd + '/../include']
  16. group = DefineGroup('DeviceDrivers', src, depend = ['RT_USING_I2C'], CPPPATH = path)
  17. Return('group')