SConscript 559 B

123456789101112131415161718
  1. # for network related component
  2. import os
  3. Import('RTT_ROOT')
  4. from building import *
  5. objs = []
  6. list = os.listdir(os.path.join(RTT_ROOT, 'components', 'net'))
  7. # the default version of LWIP is 1.4.1
  8. if not GetDepend('RT_USING_LWIP132') and not GetDepend('RT_USING_LWIP140') and not GetDepend('RT_USING_LWIP_HEAD'):
  9. AddDepend('RT_USING_LWIP141')
  10. for d in list:
  11. path = os.path.join(RTT_ROOT, 'components', 'net', d)
  12. if os.path.isfile(os.path.join(path, 'SConscript')):
  13. objs = objs + SConscript(os.path.join(d, 'SConscript'))
  14. Return('objs')