misonyo %!s(int64=7) %!d(string=hai) anos
pai
achega
c88f19d5a0
Modificáronse 7 ficheiros con 8 adicións e 16 borrados
  1. 8 16
      SConscript
  2. 0 0
      httpclient_sample.c
  3. 0 0
      tcpclient_sample.c
  4. 0 0
      tcpclient_select_sample.c
  5. 0 0
      tcpserver_sample.c
  6. 0 0
      udpclient_sample.c
  7. 0 0
      udpserver_sample.c

+ 8 - 16
SConscript

@@ -1,36 +1,28 @@
 from building import *
-Import('rtconfig')
 
 src   = []
 cwd   = GetCurrentDir()
-group = []
-CPPPATH = []
+include_path = [cwd]
 
 # add network samples.
 if GetDepend('NETWORK_SAMPLES_USING_TCP_CLIENT'):
-    src += Glob('tcpclient/*.c')
-    CPPPATH += [cwd + '/tcpclient']
+    src += ['tcpclient_sample.c']
 
 if GetDepend('NETWORK_SAMPLES_USING_TCP_SERVER'):
-    src += Glob('tcpserver/*.c')
-    CPPPATH += [cwd + '/tcpserver']
+    src += ['tcpserver_sample.c']
 
 if GetDepend('NETWORK_SAMPLES_USING_UDP_CLIENT'):
-    src += Glob('udpclient/*.c')
-    CPPPATH += [cwd + '/udpclient']
+    src += ['udpclient_sample.c']
 
 if GetDepend('NETWORK_SAMPLES_USING_UDP_SERVER'):
-    src += Glob('udpserver/*.c')
-    CPPPATH += [cwd + '/udpserver']
+    src += ['udpserver_sample.c']
 
 if GetDepend('NETWORK_SAMPLES_USING_TCP_CLIENT_SELECT'):
-    src += Glob('tcpclient_select/*.c')
-    CPPPATH += [cwd + '/tcpclient_select']
+    src += ['tcpclient_select_sample.c']
 
 if GetDepend('NETWORK_SAMPLES_USING_HTTP_CLIENT'):
-    src += Glob('httpclient/*.c')
-    CPPPATH += [cwd + '/httpclient']
+    src += ['httpclient_sample.c']
 
-group = DefineGroup('network-samples', src, depend = ['PKG_USING_NETWORK_SAMPLES'], CPPPATH = CPPPATH)
+group = DefineGroup('network-samples', src, depend = ['PKG_USING_NETWORK_SAMPLES'], CPPPATH = include_path)
 
 Return('group')

+ 0 - 0
httpclient/httpclient_sample.c → httpclient_sample.c


+ 0 - 0
tcpclient/tcpclient_sample.c → tcpclient_sample.c


+ 0 - 0
tcpclient_select/tcpclient_select_sample.c → tcpclient_select_sample.c


+ 0 - 0
tcpserver/tcpserver_sample.c → tcpserver_sample.c


+ 0 - 0
udpclient/udpclient_sample.c → udpclient_sample.c


+ 0 - 0
udpserver/udpserver_sample.c → udpserver_sample.c