blob: 5996ccf7cc29a64ae3e0e959d6f51eb75b63bad8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
# RT-Thread building script for component
from building import *
cwd = GetCurrentDir()
src = Glob('*.c')
CPPPATH = [cwd]
group = DefineGroup('Sysctl_clock', src, depend = [''], CPPPATH = CPPPATH)
objs = [group]
file_list = os.listdir(cwd)
for item in file_list:
if os.path.isfile(os.path.join(cwd, item, 'SConscript')):
objs = objs + SConscript(os.path.join(item, 'SConscript'))
Return('objs')
|