SConscript 526 B

12345678910111213141516171819202122
  1. from building import *
  2. cwd = GetCurrentDir()
  3. path = [cwd + '/inc']
  4. src = Glob('src/*.c')
  5. src += Glob('samples/ppp_sample.c')
  6. # Air720
  7. if GetDepend(['PPP_DEVICE_USING_AIR720']):
  8. src += Glob('class/ppp_device_air720.c')
  9. # M6312
  10. if GetDepend(['PPP_DEVICE_USING_M6312']):
  11. src += Glob('class/ppp_device_m6312.c')
  12. # SIM800
  13. if GetDepend(['PPP_DEVICE_USING_SIM800']):
  14. src += Glob('class/ppp_device_sim800.c')
  15. group = DefineGroup('ppp_device', src, depend = ['PKG_USING_PPP_DEVICE'], CPPPATH = path)
  16. Return('group')