SConscript 817 B

123456789101112131415161718192021222324252627282930313233
  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_UNISTD_H'):
  9. src += Glob('./definitions/*.c')
  10. if GetDepend('UNISTD_H_ACCESS'):
  11. src += Glob('./functions/access_tc.c')
  12. if GetDepend('UNISTD_H_CHDIR'):
  13. src += Glob('./functions/chdir_tc.c')
  14. if GetDepend('UNISTD_H_FTRUNCATE'):
  15. src += Glob('./functions/ftruncate_tc.c')
  16. if GetDepend('UNISTD_H_ISATTY'):
  17. src += Glob('./functions/isatty_tc.c')
  18. if GetDepend('UNISTD_H_FSYNC'):
  19. src += Glob('./functions/open_read_write_fsync_close_tc.c')
  20. if GetDepend('UNISTD_H_RMDIR'):
  21. src += Glob('./functions/rmdir_tc.c')
  22. group = DefineGroup('rtt_posix_testcase', src, depend = ['RTT_POSIX_TESTCASE_UNISTD_H'], CPPPATH = path)
  23. Return('group')