diff options
| author | Meco Man <[email protected]> | 2022-05-15 19:17:24 -0400 |
|---|---|---|
| committer | guo <[email protected]> | 2022-05-16 10:02:22 +0800 |
| commit | 7fc707d99c1372020d81e838ca09b14f7bd0b17e (patch) | |
| tree | 7fdd809b952d602093c8a6d593ac02c3607c3259 /components/net/sal/SConscript | |
| parent | b793b6427a9093663a89cbca786c52d17c077266 (diff) | |
[sal][kconfig] 重新梳理sal的依赖关系
Diffstat (limited to 'components/net/sal/SConscript')
| -rw-r--r-- | components/net/sal/SConscript | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/components/net/sal/SConscript b/components/net/sal/SConscript index 25788e0bed..2b8164df64 100644 --- a/components/net/sal/SConscript +++ b/components/net/sal/SConscript @@ -5,30 +5,30 @@ from building import * cwd = GetCurrentDir() src = Glob('src/*.c') -src += Glob('socket/net_netdb.c') +src += ['socket/net_netdb.c'] CPPPATH = [cwd + '/include'] CPPPATH += [cwd + '/include/socket'] +if GetDepend('SAL_USING_LWIP') or GetDepend('SAL_USING_AT'): + CPPPATH += [cwd + '/docking'] + if GetDepend('SAL_USING_LWIP'): - src += Glob('docking/af_inet_lwip.c') + src += ['docking/af_inet_lwip.c'] if GetDepend('SAL_USING_AT'): - src += Glob('docking/af_inet_at.c') - -if GetDepend('SAL_USING_LWIP') or GetDepend('SAL_USING_AT'): - CPPPATH += [cwd + '/docking'] + src += ['docking/af_inet_at.c'] if GetDepend('SAL_USING_WINSOCK'): - src += Glob('docking/af_inet_winsock.c') + src += ['docking/af_inet_winsock.c'] if GetDepend('SAL_USING_TLS'): - src += Glob('docking/proto_mbedtls.c') + src += ['docking/proto_mbedtls.c'] if GetDepend('SAL_USING_POSIX'): CPPPATH += [cwd + '/include/dfs_net'] - src += Glob('socket/net_sockets.c') - src += Glob('dfs_net/*.c') + src += ['socket/net_sockets.c'] + src += ['dfs_net/*.c'] if not GetDepend('HAVE_SYS_SOCKET_H'): CPPPATH += [cwd + '/include/socket/sys_socket'] |
