SConscript 697 B

12345678910111213141516171819202122
  1. # for module compiling
  2. import os
  3. Import('remove_components')
  4. from building import *
  5. objs = []
  6. cwd = GetCurrentDir()
  7. list = os.listdir(cwd)
  8. # In some old bsp folder, Only define RT_USING_LWIP but not define which of LWIP stack.
  9. # For this reason, the default lwip stack will be set LWIP2.0.3.
  10. if not GetDepend('RT_USING_LWIP141') and not GetDepend('RT_USING_LWIP202') and not GetDepend('RT_USING_LWIP203') and not GetDepend('RT_USING_LWIP212'):
  11. AddDepend('RT_USING_LWIP203')
  12. for item in list:
  13. if item in remove_components:
  14. continue
  15. if os.path.isfile(os.path.join(cwd, item, 'SConscript')):
  16. objs = objs + SConscript(os.path.join(item, 'SConscript'))
  17. Return('objs')