SConscript 487 B

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