SConscript 1.0 KB

12345678910111213141516171819202122232425262728293031323334
  1. # for module compile
  2. Import('env')
  3. Import('rtconfig')
  4. # build each components
  5. objs = ''
  6. if rtconfig.CROSS_TOOL == 'gcc':
  7. if 'RT_USING_NEWLIB' in dir(rtconfig) and rtconfig.RT_USING_NEWLIB:
  8. objs = objs + SConscript('libc/newlib/SConscript')
  9. else:
  10. rtconfig.RT_USING_MINILIBC = True
  11. objs = objs + SConscript('libc/minilibc/SConscript')
  12. if 'RT_USING_FINSH' in dir(rtconfig) and rtconfig.RT_USING_FINSH:
  13. objs = objs + SConscript('finsh/SConscript')
  14. if 'RT_USING_DFS' in dir(rtconfig) and rtconfig.RT_USING_DFS:
  15. objs = objs + SConscript('dfs/SConscript')
  16. if 'RT_USING_LWIP' in dir(rtconfig) and rtconfig.RT_USING_LWIP:
  17. objs = objs + SConscript('net/lwip/SConscript')
  18. if 'RT_USING_MODBUS' in dir(rtconfig) and rtconfig.RT_USING_MODBUS:
  19. objs = objs + SConscript('net/freemodbus/SConscript')
  20. if 'RT_USING_RTGUI' in dir(rtconfig) and rtconfig.RT_USING_RTGUI:
  21. objs = objs + SConscript('rtgui/SConscript')
  22. # build each modules
  23. if rtconfig.CROSS_TOOL == 'gcc':
  24. SConscript('hello/SConscript')
  25. Return('objs')