1import rtconfig 2Import('RTT_ROOT') 3from building import * 4 5# get current directory 6cwd = GetCurrentDir() 7path = [cwd] 8src = [] 9 10if GetDepend('RTT_POSIX_TESTCASE_STDIO_H'): 11 src += Glob('./definitions/*.c') 12 13 14if GetDepend('STDIO_H_CLEARERR'): 15 src += Glob('./functions/clearerr_tc.c') 16 17if GetDepend('STDIO_H_FCLOSE'): 18 src += Glob('./functions/fclose_tc.c') 19 20if GetDepend('STDIO_H_FDOPEN'): 21 src += Glob('./functions/fdopen_tc.c') 22 23if GetDepend('STDIO_H_FEOF'): 24 src += Glob('./functions/feof_tc.c') 25 26if GetDepend('STDIO_H_FERROR'): 27 src += Glob('./functions/ferror_tc.c') 28 29if GetDepend('STDIO_H_FFLUSH'): 30 src += Glob('./functions/fflush_tc.c') 31 32if GetDepend('STDIO_H_FGETC'): 33 src += Glob('./functions/fgetc_tc.c') 34 35if GetDepend('STDIO_H_FGETS'): 36 src += Glob('./functions/fgets_tc.c') 37 38if GetDepend('STDIO_H_FILENO'): 39 src += Glob('./functions/fileno_tc.c') 40 41if GetDepend('STDIO_H_FOPEN'): 42 src += Glob('./functions/fopen_tc.c') 43 44if GetDepend('STDIO_H_FPRINTF'): 45 src += Glob('./functions/fprintf_tc.c') 46 47if GetDepend('STDIO_H_FPUTC'): 48 src += Glob('./functions/fputc_tc.c') 49 50if GetDepend('STDIO_H_FPUTS'): 51 src += Glob('./functions/fputs_tc.c') 52 53if GetDepend('STDIO_H_FREAD'): 54 src += Glob('./functions/fread_tc.c') 55 56if GetDepend('STDIO_H_FSCANF'): 57 src += Glob('./functions/fscanf_tc.c') 58 59if GetDepend('STDIO_H_FSEEK'): 60 src += Glob('./functions/fseek_tc.c') 61 62if GetDepend('STDIO_H_FTELL'): 63 src += Glob('./functions/ftell_tc.c') 64 65if GetDepend('STDIO_H_FWRITE'): 66 src += Glob('./functions/fwrite_tc.c') 67 68 69if GetDepend('STDIO_H_PERROR'): 70 src += Glob('./functions/perror_tc.c') 71 72if GetDepend('STDIO_H_PRINTF'): 73 src += Glob('./functions/printf_tc.c') 74 75if GetDepend('STDIO_H_PUTC'): 76 src += Glob('./functions/putc_tc.c') 77 78if GetDepend('STDIO_H_PUTCHAR'): 79 src += Glob('./functions/putchar_tc.c') 80 81if GetDepend('STDIO_H_PUTS'): 82 src += Glob('./functions/puts_tc.c') 83 84if GetDepend('STDIO_H_REMOVE'): 85 src += Glob('./functions/remove_tc.c') 86 87if GetDepend('STDIO_H_RENAME'): 88 src += Glob('./functions/rename_tc.c') 89 90if GetDepend('STDIO_H_REWIND'): 91 src += Glob('./functions/rewind_tc.c') 92 93if GetDepend('STDIO_H_SETBUF'): 94 src += Glob('./functions/setbuf_tc.c') 95 96if GetDepend('STDIO_H_SETVBUF'): 97 src += Glob('./functions/setvbuf_tc.c') 98 99if GetDepend('STDIO_H_SNPRINTF'): 100 src += Glob('./functions/snprintf_tc.c') 101 102if GetDepend('STDIO_H_SPRINTF'): 103 src += Glob('./functions/sprintf_tc.c') 104 105if GetDepend('STDIO_H_SSCANF'): 106 src += Glob('./functions/sscanf_tc.c') 107 108if GetDepend('STDIO_H_VFPRINTF'): 109 src += Glob('./functions/vfprintf_tc.c') 110 111if GetDepend('STDIO_H_VPRINTF'): 112 src += Glob('./functions/vprintf_tc.c') 113 114if GetDepend('STDIO_H_VSNPRINTF'): 115 src += Glob('./functions/vsnprintf_tc.c') 116 117if GetDepend('STDIO_H_VSPRINTF'): 118 src += Glob('./functions/vsprintf_tc.c') 119 120group = DefineGroup('rtt_posix_testcase', src, depend = ['RTT_POSIX_TESTCASE_STDIO_H'], CPPPATH = path) 121 122Return('group') 123