summaryrefslogtreecommitdiff
path: root/components/net/sal_socket/SConscript
diff options
context:
space:
mode:
authoryangjie11 <[email protected]>2018-11-28 19:02:11 +0800
committerGitHub <[email protected]>2018-11-28 19:02:11 +0800
commit1a7f95f92b84b0a3acd6243cb2a658b4f9b6f1ac (patch)
tree3b90c3e4b7ced83ce239ae8df020926eaf74d7de /components/net/sal_socket/SConscript
parent4a43d3cdae1b731dcf51d3531048c51fd4142516 (diff)
parentd4469fe7d83d08913d096dc6d75a750dd854c0cc (diff)
Merge pull request #1 from RT-Thread/master
test
Diffstat (limited to 'components/net/sal_socket/SConscript')
-rw-r--r--components/net/sal_socket/SConscript11
1 files changed, 9 insertions, 2 deletions
diff --git a/components/net/sal_socket/SConscript b/components/net/sal_socket/SConscript
index 76becca09f..cc7634f7d9 100644
--- a/components/net/sal_socket/SConscript
+++ b/components/net/sal_socket/SConscript
@@ -5,10 +5,9 @@ from building import *
cwd = GetCurrentDir()
src = Glob('src/*.c')
-src += Glob('socket/*.c')
+src += Glob('socket/net_netdb.c')
CPPPATH = [cwd + '/include']
-CPPPATH += [cwd + '/include/dfs_net']
CPPPATH += [cwd + '/include/socket']
if GetDepend('SAL_USING_LWIP'):
@@ -17,7 +16,15 @@ if GetDepend('SAL_USING_LWIP'):
if GetDepend('SAL_USING_AT'):
src += Glob('impl/af_inet_at.c')
+if GetDepend('SAL_USING_LWIP') or GetDepend('SAL_USING_AT'):
+ CPPPATH += [cwd + '/impl']
+
+if GetDepend('SAL_USING_TLS'):
+ src += Glob('impl/proto_mbedtls.c')
+
if GetDepend('SAL_USING_POSIX'):
+ CPPPATH += [cwd + '/include/dfs_net']
+ src += Glob('socket/net_sockets.c')
src += Glob('dfs_net/*.c')
if not GetDepend('HAVE_SYS_SELECT_H'):