-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSConscript
More file actions
31 lines (26 loc) · 772 Bytes
/
SConscript
File metadata and controls
31 lines (26 loc) · 772 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
from building import *
cwd = GetCurrentDir()
src = Glob('src/morse.c')
CPPPATH = [cwd + '/inc']
if GetDepend(['PKG_USING_MORSE_SHELL']):
src += Split("""
src/morse_shell.c
""")
if GetDepend(['PKG_USING_MORSE_SAMPLE']):
if GetDepend(['PKG_USING_MORSE_KEY_SAMPLE']):
src += Split("""
samples/key/morse-key-example.c
""")
if GetDepend(['PKG_USING_MORSE_TPAD_SAMPLE']):
CPPPATH += [cwd + '/samples/tpad']
src += Split("""
samples/tpad/tpad.c
samples/tpad/morse-tpad-example.c
""")
if GetDepend(['PKG_USING_MORSE_SLIDER_SAMPLE']):
CPPPATH += [cwd + '/samples/slider']
src += Split("""
samples/slider/morse-slider-example.c
""")
group = DefineGroup('morse', src, depend = ['PKG_USING_MORSE'], CPPPATH = CPPPATH)
Return('group')