4
0
mirror of https://github.com/RT-Thread/rt-thread.git synced 2025-02-21 01:07:18 +08:00

[DeviceDriver] Remove dataqueue.c/pipe.c comnpile if the heap is not enable.

This commit is contained in:
Bernard Xiong 2015-05-05 10:17:08 +08:00
parent 1c7f33c151
commit 8cd254b08f

View File

@ -3,6 +3,11 @@ from building import *
cwd = GetCurrentDir()
src = Glob('*.c')
CPPPATH = [cwd + '/../include']
if not 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')