SConscript 402 B

123456789101112131415161718
  1. from building import *
  2. cwd = GetCurrentDir()
  3. path = [cwd + '/inc']
  4. path += [cwd + '/inc/gsm']
  5. src = Glob('src/*.c')
  6. src += Glob('sample/cmux_sample_gsm.c')
  7. if GetDepend(['CMUX_USING_GSM']):
  8. src += Glob('src/gsm/*.c')
  9. if GetDepend(['PKG_USING_PPP_DEVICE']):
  10. SrcRemove(src, "src/gsm/cmux_chat.c")
  11. group = DefineGroup('cmux', src, depend = ['PKG_USING_CMUX'], CPPPATH = path)
  12. Return('group')