2018-07-25 17:31:05 +08:00
|
|
|
from building import *
|
|
|
|
|
|
|
|
cwd = GetCurrentDir()
|
|
|
|
path = [cwd + '/include']
|
|
|
|
|
2018-11-13 09:51:18 +08:00
|
|
|
src = Glob('src/at_utils.c')
|
|
|
|
|
|
|
|
if GetDepend(['AT_USING_CLI']):
|
|
|
|
src += Glob('src/at_cli.c')
|
2018-07-25 17:31:05 +08:00
|
|
|
|
|
|
|
if GetDepend(['AT_USING_SERVER']):
|
|
|
|
src += Split('''
|
|
|
|
src/at_server.c
|
|
|
|
src/at_base_cmd.c
|
|
|
|
''')
|
2022-02-23 23:56:43 +08:00
|
|
|
|
2018-07-25 17:31:05 +08:00
|
|
|
if GetDepend(['AT_USING_CLIENT']):
|
|
|
|
src += Glob('src/at_client.c')
|
2022-02-23 23:56:43 +08:00
|
|
|
|
2018-07-25 17:31:05 +08:00
|
|
|
if GetDepend(['AT_USING_SOCKET']):
|
|
|
|
src += Glob('at_socket/*.c')
|
2022-02-23 23:56:43 +08:00
|
|
|
path += [cwd + '/at_socket']
|
2018-07-25 17:31:05 +08:00
|
|
|
|
|
|
|
group = DefineGroup('AT', src, depend = ['RT_USING_AT'], CPPPATH = path)
|
|
|
|
|
|
|
|
Return('group')
|