SConscript 755 B

12345678910111213141516171819202122232425262728293031
  1. from building import *
  2. cwd = GetCurrentDir()
  3. path = [cwd + '/inc']
  4. src = Glob('src/*.c')
  5. if GetDepend(['PPP_DEVICE_SAMPLE']):
  6. src += Glob('samples/ppp_sample.c')
  7. # Air720
  8. if GetDepend(['PPP_DEVICE_USING_AIR720']):
  9. src += Glob('class/ppp_device_air720.c')
  10. # EC20
  11. if GetDepend(['PPP_DEVICE_USING_EC20']):
  12. src += Glob('class/ppp_device_ec20.c')
  13. # M6312
  14. if GetDepend(['PPP_DEVICE_USING_M6312']):
  15. src += Glob('class/ppp_device_m6312.c')
  16. # SIM800
  17. if GetDepend(['PPP_DEVICE_USING_SIM800']):
  18. src += Glob('class/ppp_device_sim800.c')
  19. # ML305
  20. if GetDepend(['PPP_DEVICE_USING_ML305']):
  21. src += Glob('class/ppp_device_ml305.c')
  22. group = DefineGroup('ppp_device', src, depend = ['PKG_USING_PPP_DEVICE'], CPPPATH = path)
  23. Return('group')