SConscript 755 B

12345678910111213141516171819202122232425262728
  1. from building import *
  2. src = []
  3. cwd = GetCurrentDir()
  4. include_path = [cwd]
  5. # add network samples.
  6. if GetDepend('NETWORK_SAMPLES_USING_TCP_CLIENT'):
  7. src += ['tcpclient_sample.c']
  8. if GetDepend('NETWORK_SAMPLES_USING_TCP_SERVER'):
  9. src += ['tcpserver_sample.c']
  10. if GetDepend('NETWORK_SAMPLES_USING_UDP_CLIENT'):
  11. src += ['udpclient_sample.c']
  12. if GetDepend('NETWORK_SAMPLES_USING_UDP_SERVER'):
  13. src += ['udpserver_sample.c']
  14. if GetDepend('NETWORK_SAMPLES_USING_TCP_CLIENT_SELECT'):
  15. src += ['tcpclient_select_sample.c']
  16. if GetDepend('NETWORK_SAMPLES_USING_HTTP_CLIENT'):
  17. src += ['httpclient_sample.c']
  18. group = DefineGroup('network-samples', src, depend = ['PKG_USING_NETWORK_SAMPLES'], CPPPATH = include_path)
  19. Return('group')