[update] SConscript for rt-thread packages

Signed-off-by: MurphyZhao <d2014zjt@163.com>
This commit is contained in:
MurphyZhao 2019-08-05 11:06:29 +08:00
parent 0fcce0be5b
commit 0d3f3d1f73

View File

@ -6,9 +6,15 @@ cwd = GetCurrentDir()
src = []
src += Glob('*.c')
src += Split('''
flexible_button.c
''')
if GetDepend(['PKG_USING_FLEXIBLE_BUTTON_DEMO']):
src += Glob("flexible_button_demo.c")
CPPPATH = [cwd]
group = DefineGroup('flex_button', src, depend = [], CPPPATH = CPPPATH)
group = DefineGroup('flex_button', src, depend = ['PKG_USING_FLEXIBLE_BUTTON'], CPPPATH = CPPPATH)
Return('group')