SConscript 482 字节
Newer Older
mysterywolf's avatar
mysterywolf 已提交
1
import os
2 3 4
from building import *

cwd     = GetCurrentDir()
B
Bernard Xiong 已提交
5
CPPPATH = [cwd]
mysterywolf's avatar
mysterywolf 已提交
6
src     = ['main.c']
7

8 9 10
if GetDepend(['PKG_USING_RTDUINO']) and not GetDepend(['RTDUINO_NO_SETUP_LOOP']):
    src += ['arduino_main.cpp']
    
11 12
group = DefineGroup('Applications', src, depend = [''], CPPPATH = CPPPATH)

mysterywolf's avatar
mysterywolf 已提交
13 14 15 16 17
list = os.listdir(cwd)
for item in list:
    if os.path.isfile(os.path.join(cwd, item, 'SConscript')):
        group = group + SConscript(os.path.join(item, 'SConscript'))

18
Return('group')