提交 d1c353f6 编写于 作者: mysterywolf's avatar mysterywolf 提交者: mysterywolf

[kernel] 优化Sconscript脚本

上级 6b9bdc12
from building import *
import rtconfig
cwd = GetCurrentDir()
src = Glob('src/*.c')
......
Import('RTT_ROOT')
Import('rtconfig')
from building import *
import os
src = Glob('*.c')
cwd = GetCurrentDir()
CPPPATH = [RTT_ROOT + '/include']
inc = [os.path.join(cwd, '..', 'include')]
if GetDepend('RT_USING_SMALL_MEM') == False:
SrcRemove(src, ['mem.c'])
......@@ -27,8 +27,6 @@ if GetDepend('RT_USING_DEVICE') == False:
if GetDepend('RT_USING_SMP') == False:
SrcRemove(src, ['cpu.c'])
CPPDEFINES = ['__RTTHREAD__']
group = DefineGroup('Kernel', src, depend = [''], CPPPATH = CPPPATH, CPPDEFINES = CPPDEFINES)
group = DefineGroup('Kernel', src, depend = [''], CPPPATH = inc, CPPDEFINES = ['__RTTHREAD__'])
Return('group')
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册