SConscript 335 B

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