1import rtconfig 2Import('RTT_ROOT') 3from building import * 4 5# get current directory 6cwd = GetCurrentDir() 7path = [cwd] 8src = [] 9 10if GetDepend('RTT_POSIX_TESTCASE_DIRENT_H'): 11 src += Glob('./definitions/*.c') 12 13if GetDepend('DIRENT_H_OPENDIR_READDIR_CLOSEDIR'): 14 src += Glob('./functions/open_read_close_dir_tc.c') 15 16 17group = DefineGroup('rtt_posix_testcase', src, depend = ['RTT_POSIX_TESTCASE_DIRENT_H'], CPPPATH = path) 18 19Return('group') 20