SConscript 567 B

123456789101112131415161718192021
  1. # RT-Thread building script for bridge
  2. import os
  3. from building import *
  4. cwd = GetCurrentDir()
  5. src = []
  6. CPPPATH = [ cwd + '/include',
  7. cwd + '/include/rtgui',
  8. cwd + '/include/rtgui/widgets']
  9. objs = DefineGroup('GuiEngine', src, depend = ['PKG_USING_GUIENGINE'], CPPPATH = CPPPATH)
  10. list = os.listdir(cwd)
  11. if GetDepend('PKG_USING_GUIENGINE'):
  12. for d in list:
  13. path = os.path.join(cwd, d)
  14. if os.path.isfile(os.path.join(path, 'SConscript')):
  15. objs = objs + SConscript(os.path.join(d, 'SConscript'))
  16. Return('objs')