summaryrefslogtreecommitdiff
path: root/components/net/at/SConscript
blob: 81df9738b8bb8bb8d964e20eb514e818cd1d2e42 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
from building import *

cwd = GetCurrentDir()
path = [cwd + '/include']

src = Glob('src/at_utils.c')

if GetDepend(['AT_USING_CLI']):
    src += Glob('src/at_cli.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')