1from building import * 2 3cwd = GetCurrentDir() 4src = Glob('*.c') 5path = [cwd] 6 7if GetDepend('ULOG_BACKEND_USING_CONSOLE'): 8 src += ['backend/console_be.c'] 9 10if GetDepend('ULOG_BACKEND_USING_FILE'): 11 path += [cwd + '/backend'] 12 src += ['backend/file_be.c'] 13 14if GetDepend('ULOG_USING_SYSLOG'): 15 path += [cwd + '/syslog'] 16 src += Glob('syslog/*.c') 17 18group = DefineGroup('Utilities', src, depend = ['RT_USING_ULOG'], CPPPATH = path) 19 20Return('group') 21