SConscript 666 B

12345678910111213141516171819202122232425
  1. # RT-Thread building script for component
  2. import os
  3. import shutil
  4. from building import *
  5. cwd = GetCurrentDir()
  6. src = Glob('*.c') + Glob('*.cpp')
  7. CPPPATH = [cwd]
  8. CPPDEFINES = ['LFS_CONFIG=lfs_config.h']
  9. #delate non-used files
  10. # try:
  11. # shutil.rmtree(os.path.join(cwd,'.github'))
  12. # shutil.rmtree(os.path.join(cwd,'bd'))
  13. # shutil.rmtree(os.path.join(cwd,'scripts'))
  14. # shutil.rmtree(os.path.join(cwd,'tests'))
  15. # os.remove(os.path.join(cwd,'Makefile'))
  16. # except:
  17. # pass
  18. group = DefineGroup('littlefs', src, depend = ['PKG_USING_LITTLEFS', 'RT_USING_DFS'], CPPPATH = CPPPATH, CPPDEFINES = CPPDEFINES)
  19. Return('group')