SConscript 537 B

123456789101112131415161718192021
  1. from building import *
  2. import rtconfig
  3. # get current directory
  4. cwd = GetCurrentDir()
  5. # The set of source files associated with this SConscript file.
  6. src = Glob('src/*.c')
  7. src += Glob('src/i2c_utils.cpp')
  8. src += Glob('src/i2c_tools.cpp')
  9. if GetDepend('I2C_TOOLS_USE_SW_I2C'):
  10. src += Glob('src/SoftwareI2C.cpp')
  11. path = [cwd + '/']
  12. path += [cwd + '/src']
  13. LOCAL_CCFLAGS = ''
  14. group = DefineGroup('i2c-tools', src, depend = ['PKG_USING_I2C_TOOLS'], CPPPATH = path, LOCAL_CCFLAGS = LOCAL_CCFLAGS)
  15. Return('group')