SConscript 339 B

1234567891011121314151617
  1. from building import *
  2. Import('rtconfig')
  3. src = []
  4. cwd = GetCurrentDir()
  5. # add ds3231 src files.
  6. if GetDepend('PKG_USING_DS3231'):
  7. src += Glob('ds3231.c')
  8. # add ds3231 include path.
  9. path = [cwd]
  10. # add src and include to group.
  11. group = DefineGroup('ds3231', src, depend = ['PKG_USING_DS3231'], CPPPATH = path)
  12. Return('group')