15 lines
474 B
Python
15 lines
474 B
Python
from building import *
|
|
|
|
src = ['rt_vsnprintf.c']
|
|
CPPDEFINES = []
|
|
|
|
if GetDepend('RT_VSNPRINTF_FULL_REPLACING_SPRINTF'):
|
|
CPPDEFINES += ['sprintf=rt_sprintf']
|
|
if GetDepend('RT_VSNPRINTF_FULL_REPLACING_SNPRINTF'):
|
|
CPPDEFINES += ['snprintf=rt_snprintf']
|
|
if GetDepend('RT_VSNPRINTF_FULL_REPLACING_PRINTF'):
|
|
CPPDEFINES += ['printf=rt_kprintf']
|
|
|
|
group = DefineGroup('rt_kprintf', src, depend = ['PKG_USING_RT_VSNPRINTF_FULL'], CPPDEFINES = CPPDEFINES)
|
|
Return('group')
|