1import rtconfig
2Import('RTT_ROOT')
3from building import *
4
5# get current directory
6cwd = GetCurrentDir()
7path = [cwd]
8src = []
9
10if GetDepend('RTT_POSIX_TESTCASE_STDLIB_H'):
11    src += Glob('./definitions/*.c')
12
13if GetDepend('STDLIB_H_ATOI'):
14    src += Glob('./functions/atoi_tc.c')
15
16if GetDepend('STDLIB_H_ATOL'):
17    src += Glob('./functions/atol_tc.c')
18
19if GetDepend('STDLIB_H_QSORT'):
20    src += Glob('./functions/qsort_tc.c')
21
22if GetDepend('STDLIB_H_STRTOL'):
23    src += Glob('./functions/strtol_tc.c')
24
25group = DefineGroup('rtt_posix_testcase', src, depend = ['RTT_POSIX_TESTCASE_STDLIB_H'], CPPPATH = path)
26
27Return('group')
28