SConscript 824 B

1234567891011121314151617181920212223242526272829303132
  1. from building import *
  2. src = []
  3. cwd = GetCurrentDir()
  4. include_path = [cwd]
  5. # add filesystem samples.
  6. if GetDepend('FILESYSTEM_SAMPLES_USING_READWRITE'):
  7. src += ['readwrite_sample.c']
  8. if GetDepend('FILESYSTEM_SAMPLES_USING_STAT'):
  9. src += ['stat_sample.c']
  10. if GetDepend('FILESYSTEM_SAMPLES_USING_RENAME'):
  11. src += ['rename_sample.c']
  12. if GetDepend('FILESYSTEM_SAMPLES_USING_MKDIR'):
  13. src += ['mkdir_sample.c']
  14. if GetDepend('FILESYSTEM_SAMPLES_USING_OPENDIR'):
  15. src += ['opendir_sample.c']
  16. if GetDepend('FILESYSTEM_SAMPLES_USING_READDIR'):
  17. src += ['readdir_sample.c']
  18. if GetDepend('FILESYSTEM_SAMPLES_USING_TELL_SEEK_DIR'):
  19. src += ['tell_seek_dir_sample.c']
  20. group = DefineGroup('filesystem-samples', src, depend = ['PKG_USING_FILESYSTEM_SAMPLES'], CPPPATH = include_path)
  21. Return('group')