rt-thread/examples/utest/testcases/posix/stdlib_h/SConscript

28 lines
631 B
Python
Raw Normal View History

2022-07-04 10:20:04 +08:00
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')