2020-03-14 16:18:57 +08:00
|
|
|
|
|
|
|
from building import *
|
|
|
|
import rtconfig
|
|
|
|
|
|
|
|
cwd = GetCurrentDir()
|
|
|
|
|
|
|
|
src = []
|
|
|
|
|
|
|
|
src += Glob('*.c')
|
|
|
|
CPPPATH = [cwd]
|
|
|
|
LOCAL_CCFLAGS = ''
|
|
|
|
|
2022-01-20 12:24:47 +08:00
|
|
|
if rtconfig.PLATFORM == 'gcc':
|
|
|
|
LOCAL_CCFLAGS += ' -std=c99'
|
|
|
|
elif rtconfig.PLATFORM == 'armcc':
|
|
|
|
LOCAL_CCFLAGS += ' --c99'
|
|
|
|
elif rtconfig.PLATFORM == 'armclang':
|
2020-03-14 16:18:57 +08:00
|
|
|
LOCAL_CCFLAGS += ' -std=c99'
|
|
|
|
|
2020-11-30 15:45:58 +08:00
|
|
|
group = DefineGroup('FAL', src, depend = ['PKG_USING_FAL'], CPPPATH = CPPPATH, LOCAL_CCFLAGS = LOCAL_CCFLAGS)
|
2020-03-14 16:18:57 +08:00
|
|
|
|
|
|
|
Return('group')
|