37 lines
716 B
Python
37 lines
716 B
Python
Import('rtconfig')
|
|
from building import *
|
|
|
|
cwd = GetCurrentDir()
|
|
src = Split('''
|
|
''')
|
|
|
|
if GetDepend(['UTEST_MEMHEAP_TC']):
|
|
src += ['memheap_tc.c']
|
|
|
|
if GetDepend(['UTEST_IRQ_TC']):
|
|
src += ['irq_tc.c']
|
|
|
|
if GetDepend(['UTEST_SEMAPHORE_TC']):
|
|
src += ['semaphore_tc.c']
|
|
|
|
if GetDepend(['UTEST_EVENT_TC']):
|
|
src += ['event_tc.c']
|
|
|
|
if GetDepend(['UTEST_TIMER_TC']):
|
|
src += ['timer_tc.c']
|
|
|
|
if GetDepend(['UTEST_MESSAGEQUEUE_TC']):
|
|
src += ['messagequeue_tc.c']
|
|
|
|
if GetDepend(['UTEST_SIGNAL_TC']):
|
|
src += ['signal_tc.c']
|
|
|
|
if GetDepend(['UTEST_MUTEX_TC']):
|
|
src += ['mutex_tc.c']
|
|
|
|
CPPPATH = [cwd]
|
|
|
|
group = DefineGroup('utestcases', src, depend = [], CPPPATH = CPPPATH)
|
|
|
|
Return('group')
|