SConscript 361 B

123456789101112131415
  1. # for module compiling
  2. import os
  3. from building import *
  4. objs = []
  5. cwd = GetCurrentDir()
  6. list = os.listdir(cwd)
  7. if GetDepend('PKG_USING_TENSORFLOWLITEMICRO'):
  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')