2023-02-22 18:22:33 +08:00
|
|
|
import os
|
2022-11-24 16:08:56 +08:00
|
|
|
from building import *
|
|
|
|
|
2023-03-01 17:26:25 +08:00
|
|
|
src = []
|
2023-02-22 18:22:33 +08:00
|
|
|
objs = []
|
|
|
|
cwd = GetCurrentDir()
|
2023-03-01 17:26:25 +08:00
|
|
|
CPPPATH = [cwd]
|
|
|
|
|
|
|
|
objs = DefineGroup('Drivers', src, depend = [''], CPPPATH = CPPPATH)
|
2022-11-24 16:08:56 +08:00
|
|
|
|
2023-02-22 18:22:33 +08:00
|
|
|
list = os.listdir(cwd)
|
|
|
|
for item in list:
|
|
|
|
if os.path.isfile(os.path.join(cwd, item, 'SConscript')):
|
|
|
|
objs = objs + SConscript(os.path.join(item, 'SConscript'))
|
2022-11-24 16:08:56 +08:00
|
|
|
|
2023-02-22 18:22:33 +08:00
|
|
|
Return('objs')
|