SConscript 1.1 KB

1234567891011121314151617181920212223242526272829303132333435
  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. SConscript('thread/SConscript')
  26. Return('objs')