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