from building import *

cwd = GetCurrentDir()
include_path = [cwd]

src = Glob('*.c')

import esconfig
if esconfig.CROSS_TOOL == 'keil':
    group = DefineGroup('USBLib', src, depend = [''], CPPPATH = include_path, CPPDEFINES = ['ES32F0271'])
elif esconfig.CROSS_TOOL == 'iar':
    group = DefineGroup('USBLib', src, depend = [''], CPPPATH = include_path, CPPDEFINES = ['ES32F0271', 'ewarm'])

Return('group')
