SConscript 1022 B

123456789101112131415161718192021222324252627282930313233343536
  1. from building import *
  2. Import('rtconfig')
  3. src = []
  4. cwd = GetCurrentDir()
  5. group = []
  6. CPPPATH = []
  7. # add network samples.
  8. if GetDepend('NETWORK_SAMPLES_USING_TCP_CLIENT'):
  9. src += ['tcpclient/tcpclient.c']
  10. CPPPATH += [cwd + '/tcpclient']
  11. if GetDepend('NETWORK_SAMPLES_USING_TCP_SERVER'):
  12. src += ['tcpserver/tcpserver.c']
  13. CPPPATH += [cwd + '/tcpserver']
  14. if GetDepend('NETWORK_SAMPLES_USING_UDP_CLIENT'):
  15. src += ['udpclient/udpclient.c']
  16. CPPPATH += [cwd + '/udpclient']
  17. if GetDepend('NETWORK_SAMPLES_USING_UDP_SERVER'):
  18. src += ['udpserver/udpserver.c']
  19. CPPPATH += [cwd + '/udpserver']
  20. if GetDepend('NETWORK_SAMPLES_USING_TCP_CLIENT_SELECT'):
  21. src += ['tcpclient_select/tcpclient_select.c']
  22. CPPPATH += [cwd + '/tcpclient_select']
  23. if GetDepend('NETWORK_SAMPLES_USING_HTTP_CLIENT'):
  24. src += ['httpclient/httpclient.c']
  25. CPPPATH += [cwd + '/httpclient']
  26. group = DefineGroup('network-samples', src, depend = ['PKG_USING_NETWORK_SAMPLES'], CPPPATH = CPPPATH)
  27. Return('group')