2
0

SConscript 438 B

1234567891011121314151617181920
  1. from building import *
  2. Import('rtconfig')
  3. src = []
  4. cwd = GetCurrentDir()
  5. # add sgm706 src files.
  6. if GetDepend('PKG_USING_SGM706'):
  7. src += Glob('src/sgm706.c')
  8. if GetDepend('PKG_USING_SGM706_SAMPLE'):
  9. src += Glob('examples/sgm706_sample.c')
  10. # add sgm706 include path.
  11. path = [cwd + '/inc']
  12. # add src and include to group.
  13. group = DefineGroup('sgm706', src, depend = ['PKG_USING_SGM706'], CPPPATH = path)
  14. Return('group')