SConscript 438 字节
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12

from building import *
import rtconfig

cwd     = GetCurrentDir()

src = []

if GetDepend(['BSP_USING_RW007']):
    src += Glob('drv_rw007.c')

CPPPATH = [cwd]
13
LOCAL_CFLAGS = ''
14

15
if rtconfig.PLATFORM in ['gcc', 'armclang']:
16
    LOCAL_CFLAGS += ' -std=c99'
17
elif rtconfig.PLATFORM in ['armcc']:
18
    LOCAL_CFLAGS += ' --c99'
19

20
group = DefineGroup('Drivers', src, depend = [], CPPPATH = CPPPATH, LOCAL_CFLAGS = LOCAL_CFLAGS)
21 22

Return('group')