diff options
| author | 梁永祥 <[email protected]> | 2018-07-19 21:06:57 +0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2018-07-19 21:06:57 +0800 |
| commit | f489bfe522a1b307636ce2a47fed3b67b0567610 (patch) | |
| tree | ec480f651d02006df80ed7922bfb463ae6653db8 /components/net/sal_socket/SConscript | |
| parent | 9868dffc2fb2585379913e8af5bbbda229b7255d (diff) | |
| parent | 50b633ed1e490ea92307ff16aaf0947ded007c18 (diff) | |
Merge branch 'master' into lwip-debug
Diffstat (limited to 'components/net/sal_socket/SConscript')
| -rw-r--r-- | components/net/sal_socket/SConscript | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/components/net/sal_socket/SConscript b/components/net/sal_socket/SConscript new file mode 100644 index 0000000000..c1cdafab72 --- /dev/null +++ b/components/net/sal_socket/SConscript @@ -0,0 +1,31 @@ +# RT-Thread building script for component + +from building import * + +cwd = GetCurrentDir() + +src = Glob('src/*.c') +src += Glob('socket/*.c') + +CPPPATH = [cwd + '/include'] +CPPPATH += [cwd + '/include/dfs_net'] +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_POSIX'): + src += Glob('dfs_net/*.c') + + if not GetDepend('HAVE_SYS_SELECT_H'): + CPPPATH += [cwd + '/include/dfs_net/sys_select'] + + 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') |
