SConscript 672 B

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