SConscript 486 字节
Newer Older
mysterywolf's avatar
mysterywolf 已提交
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
from building import *
import os

src = Split('''
ipc/workqueue_legacy.c
''')

cwd = GetCurrentDir()
CPPPATH = [cwd]

if GetDepend('RT_USING_DFS'):
    dfs_cwd = os.path.join(cwd,'dfs')
    CPPPATH += [dfs_cwd]

group = DefineGroup('Legacy', src, depend = ['RT_USING_LEGACY'], CPPPATH = CPPPATH)

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'))

Return('group')