Przeglądaj źródła

rename file with sample suffix

luo jiao 7 lat temu
rodzic
commit
143b3b089b

+ 6 - 6
SConscript

@@ -8,27 +8,27 @@ CPPPATH = []
 
 # add network samples.
 if GetDepend('NETWORK_SAMPLES_USING_TCP_CLIENT'):
-    src += ['tcpclient/tcpclient.c']
+    src += Glob('tcpclient/*.c')
     CPPPATH += [cwd + '/tcpclient']
 
 if GetDepend('NETWORK_SAMPLES_USING_TCP_SERVER'):
-    src += ['tcpserver/tcpserver.c']
+    src += Glob('tcpserver/*.c')
     CPPPATH += [cwd + '/tcpserver']
 
 if GetDepend('NETWORK_SAMPLES_USING_UDP_CLIENT'):
-    src += ['udpclient/udpclient.c']
+    src += Glob('udpclient/*.c')
     CPPPATH += [cwd + '/udpclient']
 
 if GetDepend('NETWORK_SAMPLES_USING_UDP_SERVER'):
-    src += ['udpserver/udpserver.c']
+    src += Glob('udpserver/*.c')
     CPPPATH += [cwd + '/udpserver']
 
 if GetDepend('NETWORK_SAMPLES_USING_TCP_CLIENT_SELECT'):
-    src += ['tcpclient_select/tcpclient_select.c']
+    src += Glob('tcpclient_select/*.c')
     CPPPATH += [cwd + '/tcpclient_select']
 
 if GetDepend('NETWORK_SAMPLES_USING_HTTP_CLIENT'):
-    src += ['httpclient/httpclient.c']
+    src += Glob('httpclient/*.c')
     CPPPATH += [cwd + '/httpclient']
 
 group = DefineGroup('network-samples', src, depend = ['PKG_USING_NETWORK_SAMPLES'], CPPPATH = CPPPATH)

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


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


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


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


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


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