Skip to content

Commit 0d3f3d1

Browse files
committed
[update] SConscript for rt-thread packages
Signed-off-by: MurphyZhao <[email protected]>
1 parent 0fcce0b commit 0d3f3d1

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

SConscript

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,15 @@ cwd = GetCurrentDir()
66

77
src = []
88

9-
src += Glob('*.c')
9+
src += Split('''
10+
flexible_button.c
11+
''')
12+
13+
if GetDepend(['PKG_USING_FLEXIBLE_BUTTON_DEMO']):
14+
src += Glob("flexible_button_demo.c")
15+
1016
CPPPATH = [cwd]
1117

12-
group = DefineGroup('flex_button', src, depend = [], CPPPATH = CPPPATH)
18+
group = DefineGroup('flex_button', src, depend = ['PKG_USING_FLEXIBLE_BUTTON'], CPPPATH = CPPPATH)
1319

1420
Return('group')

0 commit comments

Comments
 (0)