[DeviceDriver] Remove dataqueue/pipe if not enable RT_USING_HEAP

This commit is contained in:
Bernard Xiong 2015-03-31 06:17:49 +00:00
parent 5af7abd8c2
commit 40db28cfec
1 changed files with 5 additions and 0 deletions

View File

@ -3,6 +3,11 @@ from building import *
cwd = GetCurrentDir()
src = Glob('*.c')
CPPPATH = [cwd + '/../include']
if GetDepend('RT_USING_HEAP'):
SrcRemove(src, 'dataqueue.c')
SrcRemove(src, 'pipe.c')
group = DefineGroup('DeviceDrivers', src, depend = ['RT_USING_DEVICE_IPC'], CPPPATH = CPPPATH)
Return('group')