2010-10-14 16:05:30 +08:00
|
|
|
Import('RTT_ROOT')
|
2010-11-20 20:31:00 +08:00
|
|
|
from building import *
|
2010-10-14 16:05:30 +08:00
|
|
|
|
2010-11-22 07:56:16 +08:00
|
|
|
src = Split('''
|
|
|
|
clock_time.c
|
|
|
|
pthread.c
|
|
|
|
pthread_attr.c
|
|
|
|
pthread_barrier.c
|
|
|
|
pthread_cond.c
|
|
|
|
pthread_internal.c
|
|
|
|
pthread_mutex.c
|
|
|
|
pthread_rwlock.c
|
|
|
|
pthread_spin.c
|
|
|
|
pthread_tls.c
|
|
|
|
sched.c
|
|
|
|
semaphore.c
|
|
|
|
''')
|
2010-11-20 20:31:00 +08:00
|
|
|
CPPPATH = [RTT_ROOT + '/components/pthreads']
|
|
|
|
group = DefineGroup('pthreads', src, depend = ['RT_USING_PTHREADS'], CPPPATH = CPPPATH)
|
2010-10-14 16:05:30 +08:00
|
|
|
|
2010-11-20 20:31:00 +08:00
|
|
|
Return('group')
|