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