1
2from building import *
3import rtconfig
4
5cwd     = GetCurrentDir()
6
7src = []
8
9if GetDepend(['BSP_USING_RW007']):
10    src += Glob('drv_rw007.c')
11
12CPPPATH = [cwd]
13LOCAL_CFLAGS = ''
14
15if rtconfig.PLATFORM in ['gcc', 'armclang']:
16    LOCAL_CFLAGS += ' -std=c99'
17elif rtconfig.PLATFORM in ['armcc']:
18    LOCAL_CFLAGS += ' --c99'
19
20group = DefineGroup('Drivers', src, depend = [], CPPPATH = CPPPATH, LOCAL_CFLAGS = LOCAL_CFLAGS)
21
22Return('group')
23