SConscript 333 B

12345678910111213141516
  1. import os
  2. from building import *
  3. cwd = GetCurrentDir()
  4. objs = []
  5. list = os.listdir(cwd)
  6. if (GetDepend(['PKG_USING_ESP_IDF'])):
  7. Return('objs')
  8. for d in list:
  9. path = os.path.join(cwd, d)
  10. if os.path.isfile(os.path.join(path, 'SConscript')):
  11. objs = objs + SConscript(os.path.join(d, 'SConscript'))
  12. Return('objs')