1
0

SConscript 372 B

123456789101112131415161718
  1. # for module compiling
  2. import os
  3. Import('RTT_ROOT')
  4. Import('env')
  5. from building import *
  6. cwd = GetCurrentDir()
  7. objs = []
  8. list = os.listdir(cwd)
  9. env.Append(CPPDEFINES = ['STM32F103xE'])
  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')