SConscript 956 B

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