summaryrefslogtreecommitdiff
path: root/examples/utest/testcases/posix/stdlib_h/SConscript
blob: 54130ca46f0a72d24e77a30bec442a80476ef1ea (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
27
import rtconfig
Import('RTT_ROOT')
from building import *

# get current directory
cwd = GetCurrentDir()
path = [cwd]
src = []

if GetDepend('RTT_POSIX_TESTCASE_STDLIB_H'):
    src += Glob('./definitions/*.c')

if GetDepend('STDLIB_H_ATOI'):
    src += Glob('./functions/atoi_tc.c')

if GetDepend('STDLIB_H_ATOL'):
    src += Glob('./functions/atol_tc.c')

if GetDepend('STDLIB_H_QSORT'):
    src += Glob('./functions/qsort_tc.c')

if GetDepend('STDLIB_H_STRTOL'):
    src += Glob('./functions/strtol_tc.c')

group = DefineGroup('rtt_posix_testcase', src, depend = ['RTT_POSIX_TESTCASE_STDLIB_H'], CPPPATH = path)

Return('group')