rt-thread/bsp/rockchip/common/drivers/SConscript

18 lines
410 B
Python
Raw Normal View History

Import('RTT_ROOT')
Import('rtconfig')
from building import *
cwd = GetCurrentDir()
2023-01-09 10:14:23 +08:00
src = Glob('*.c')
CPPPATH = [cwd]
group = DefineGroup('CommonDrivers', src, depend = [''], CPPPATH = CPPPATH)
list = os.listdir(cwd)
for d in list:
path = os.path.join(cwd, d)
if os.path.isfile(os.path.join(path, 'SConscript')):
group = group + SConscript(os.path.join(d, 'SConscript'))
Return('group')