SConscript 631 B

123456789101112131415161718192021222324252627
  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_STDLIB_H'):
  9. src += Glob('./definitions/*.c')
  10. if GetDepend('STDLIB_H_ATOI'):
  11. src += Glob('./functions/atoi_tc.c')
  12. if GetDepend('STDLIB_H_ATOL'):
  13. src += Glob('./functions/atol_tc.c')
  14. if GetDepend('STDLIB_H_QSORT'):
  15. src += Glob('./functions/qsort_tc.c')
  16. if GetDepend('STDLIB_H_STRTOL'):
  17. src += Glob('./functions/strtol_tc.c')
  18. group = DefineGroup('rtt_posix_testcase', src, depend = ['RTT_POSIX_TESTCASE_STDLIB_H'], CPPPATH = path)
  19. Return('group')