SConscript 974 字节
Newer Older
1 2 3 4
Import('rtconfig')
from building import *

cwd     = GetCurrentDir()
5 6
src     = []
CPPPATH = [cwd]
7 8 9 10

if GetDepend(['UTEST_MEMHEAP_TC']):
    src += ['memheap_tc.c']

11 12 13 14 15 16
if GetDepend(['UTEST_SMALL_MEM_TC']):
    src += ['mem_tc.c']

if GetDepend(['UTEST_SLAB_TC']):
    src += ['slab_tc.c']

Thomas_Fly's avatar
Thomas_Fly 已提交
17 18 19
if GetDepend(['UTEST_IRQ_TC']):
    src += ['irq_tc.c']
    
20 21 22
if GetDepend(['UTEST_SEMAPHORE_TC']):
    src += ['semaphore_tc.c']

L
liukangcc 已提交
23 24 25
if GetDepend(['UTEST_EVENT_TC']):
    src += ['event_tc.c']

T
tyustli 已提交
26 27 28
if GetDepend(['UTEST_TIMER_TC']):
    src += ['timer_tc.c']

29 30 31
if GetDepend(['UTEST_MESSAGEQUEUE_TC']):
    src += ['messagequeue_tc.c']

G
guozhanxin 已提交
32 33 34
if GetDepend(['UTEST_SIGNAL_TC']):
    src += ['signal_tc.c']

T
tyustli 已提交
35 36 37
if GetDepend(['UTEST_MUTEX_TC']):
    src += ['mutex_tc.c']

L
liukangcc 已提交
38 39 40
if GetDepend(['UTEST_MAILBOX_TC']):
    src += ['mailbox_tc.c']

M
mazhiyuan 已提交
41 42 43
if GetDepend(['UTEST_THREAD_TC']):
    src += ['thread_tc.c']

44
group = DefineGroup('utestcases', src, depend = ['RT_USING_UTESTCASES'], CPPPATH = CPPPATH)
45 46

Return('group')