diff options
Diffstat (limited to 'components/net/sal/SConscript')
| -rw-r--r-- | components/net/sal/SConscript | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/components/net/sal/SConscript b/components/net/sal/SConscript new file mode 100644 index 0000000000..3903dce89a --- /dev/null +++ b/components/net/sal/SConscript @@ -0,0 +1,35 @@ +# RT-Thread building script for component + +from building import * + +cwd = GetCurrentDir() + +src = Glob('src/*.c') +src += Glob('socket/net_netdb.c') + +CPPPATH = [cwd + '/include'] +CPPPATH += [cwd + '/include/socket'] + +if GetDepend('SAL_USING_LWIP'): + src += Glob('impl/af_inet_lwip.c') + +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_SOCKET_H'): + CPPPATH += [cwd + '/include/socket/sys_socket'] + +group = DefineGroup('SAL', src, depend = ['RT_USING_SAL'], CPPPATH = CPPPATH) + +Return('group') |
