SConscript 353 B

1234567891011121314151617
  1. # for module compiling
  2. import os
  3. Import('env')
  4. from building import *
  5. cwd = GetCurrentDir()
  6. objs = []
  7. list = os.listdir(cwd)
  8. env.Append(CPPDEFINES = ['STM32G030xx'])
  9. for d in list:
  10. path = os.path.join(cwd, d)
  11. if os.path.isfile(os.path.join(path, 'SConscript')):
  12. objs = objs + SConscript(os.path.join(d, 'SConscript'))
  13. Return('objs')