SConscript 618 B

1234567891011121314151617181920212223242526
  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. # EC20
  10. if GetDepend(['PPP_DEVICE_USING_EC20']):
  11. src += Glob('class/ppp_device_ec20.c')
  12. # M6312
  13. if GetDepend(['PPP_DEVICE_USING_M6312']):
  14. src += Glob('class/ppp_device_m6312.c')
  15. # SIM800
  16. if GetDepend(['PPP_DEVICE_USING_SIM800']):
  17. src += Glob('class/ppp_device_sim800.c')
  18. group = DefineGroup('ppp_device', src, depend = ['PKG_USING_PPP_DEVICE'], CPPPATH = path)
  19. Return('group')