diff options
| author | chenyong <[email protected]> | 2018-07-25 17:31:05 +0800 |
|---|---|---|
| committer | chenyong <[email protected]> | 2018-07-25 17:35:20 +0800 |
| commit | 8b887e76e929904a365dff64c1507afc47b93e3f (patch) | |
| tree | 9e6c345eab5f71bf0d8506416b28600ef07192ef /components/net/at/SConscript | |
| parent | 2316dc3f0f3d49333335bfb107ecc68bbb1843d5 (diff) | |
[net][at] Add AT commands component
Diffstat (limited to 'components/net/at/SConscript')
| -rw-r--r-- | components/net/at/SConscript | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/components/net/at/SConscript b/components/net/at/SConscript new file mode 100644 index 0000000000..2a25aaeb42 --- /dev/null +++ b/components/net/at/SConscript @@ -0,0 +1,26 @@ +from building import * + +cwd = GetCurrentDir() +path = [cwd + '/include'] + +src = Split(''' +src/at_cli.c +src/at_utils.c +''') + +if GetDepend(['AT_USING_SERVER']): + src += Split(''' + src/at_server.c + src/at_base_cmd.c + ''') + +if GetDepend(['AT_USING_CLIENT']): + src += Glob('src/at_client.c') + +if GetDepend(['AT_USING_SOCKET']): + src += Glob('at_socket/*.c') + path += [cwd + '/at_socket'] + +group = DefineGroup('AT', src, depend = ['RT_USING_AT'], CPPPATH = path) + +Return('group') |
