SConscript 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116
  1. import rtconfig
  2. Import('RTT_ROOT')
  3. from building import *
  4. # get current directory
  5. cwd = GetCurrentDir()
  6. path = [cwd]
  7. src = []
  8. if GetDepend('RTT_POSIX_TESTCASE_STDIO_H'):
  9. src += Glob('./definitions/*.c')
  10. if GetDepend('STDIO_H_CLEARERR'):
  11. src += Glob('./functions/clearerr.c')
  12. if GetDepend('STDIO_H_FCLOSE'):
  13. src += Glob('./functions/fclose.c')
  14. if GetDepend('STDIO_H_FDOPEN'):
  15. src += Glob('./functions/fdopen_tc.c')
  16. if GetDepend('STDIO_H_FEOF'):
  17. src += Glob('./functions/feof.c')
  18. if GetDepend('STDIO_H_FERROR'):
  19. src += Glob('./functions/ferror.c')
  20. if GetDepend('STDIO_H_FFLUSH'):
  21. src += Glob('./functions/fflush.c')
  22. if GetDepend('STDIO_H_FGETC'):
  23. src += Glob('./functions/fgetc.c')
  24. if GetDepend('STDIO_H_FGETS'):
  25. src += Glob('./functions/fgets.c')
  26. if GetDepend('STDIO_H_FILENO'):
  27. src += Glob('./functions/fileno.c')
  28. if GetDepend('STDIO_H_FOPEN'):
  29. src += Glob('./functions/fopen.c')
  30. if GetDepend('STDIO_H_FPRINTF'):
  31. src += Glob('./functions/fprintf.c')
  32. if GetDepend('STDIO_H_FPUTC'):
  33. src += Glob('./functions/fputc.c')
  34. if GetDepend('STDIO_H_FPUTS'):
  35. src += Glob('./functions/fputs.c')
  36. if GetDepend('STDIO_H_FREAD'):
  37. src += Glob('./functions/fread.c')
  38. if GetDepend('STDIO_H_FSCANF'):
  39. src += Glob('./functions/fscanf.c')
  40. if GetDepend('STDIO_H_FSEEK'):
  41. src += Glob('./functions/fseek.c')
  42. if GetDepend('STDIO_H_FTELL'):
  43. src += Glob('./functions/ftell.c')
  44. if GetDepend('STDIO_H_FWRITE'):
  45. src += Glob('./functions/fwrite.c')
  46. if GetDepend('STDIO_H_PERROR'):
  47. src += Glob('./functions/perror.c')
  48. if GetDepend('STDIO_H_PRINTF'):
  49. src += Glob('./functions/printf.c')
  50. if GetDepend('STDIO_H_PUTC'):
  51. src += Glob('./functions/puts.c')
  52. if GetDepend('STDIO_H_REMOVE'):
  53. src += Glob('./functions/remove.c')
  54. if GetDepend('STDIO_H_RENAME'):
  55. src += Glob('./functions/rename.c')
  56. if GetDepend('STDIO_H_REWIND'):
  57. src += Glob('./functions/rewind.c')
  58. if GetDepend('STDIO_H_SETBUF'):
  59. src += Glob('./functions/setbuf.c')
  60. if GetDepend('STDIO_H_SETVBUF'):
  61. src += Glob('./functions/setvbuf.c')
  62. if GetDepend('STDIO_H_SNPRINTF'):
  63. src += Glob('./functions/snprintf.c')
  64. if GetDepend('STDIO_H_SPRINTF'):
  65. src += Glob('./functions/sprintf.c')
  66. if GetDepend('STDIO_H_SSCANF'):
  67. src += Glob('./functions/sscanf.c')
  68. if GetDepend('STDIO_H_VFPRINTF'):
  69. src += Glob('./functions/vfprintf.c')
  70. if GetDepend('STDIO_H_VPRINTF'):
  71. src += Glob('./functions/vprintf.c')
  72. if GetDepend('STDIO_H_VSNPRINTF'):
  73. src += Glob('./functions/vsnprintf.c')
  74. if GetDepend('STDIO_H_VSPRINTF'):
  75. src += Glob('./functions/vsprintf.c')
  76. group = DefineGroup('rtt_posix_testcase', src, depend = ['RTT_POSIX_TESTCASE_STDIO_H'], CPPPATH = path)
  77. Return('group')