2021-10-27 18:51:05 +08:00
|
|
|
|
|
|
|
from building import *
|
|
|
|
import rtconfig
|
|
|
|
|
|
|
|
cwd = GetCurrentDir()
|
|
|
|
|
|
|
|
src = []
|
|
|
|
|
|
|
|
src += Glob('*.c')
|
|
|
|
CPPPATH = [cwd]
|
|
|
|
LOCAL_CCFLAGS = ''
|
|
|
|
|
2021-11-04 20:31:55 +08:00
|
|
|
if rtconfig.PLATFORM == 'gcc':
|
2021-10-27 18:51:05 +08:00
|
|
|
LOCAL_CCFLAGS += ' -std=c99'
|
2021-11-04 20:31:55 +08:00
|
|
|
elif rtconfig.PLATFORM == 'armcc':
|
2021-10-27 18:51:05 +08:00
|
|
|
LOCAL_CCFLAGS += ' --c99'
|
2021-11-04 20:31:55 +08:00
|
|
|
elif rtconfig.PLATFORM == 'armclang':
|
|
|
|
LOCAL_CCFLAGS += ' -std=c99'
|
2021-10-27 18:51:05 +08:00
|
|
|
|
|
|
|
group = DefineGroup('FAL', src, depend = ['PKG_USING_FAL'], CPPPATH = CPPPATH, LOCAL_CCFLAGS = LOCAL_CCFLAGS)
|
|
|
|
|
|
|
|
Return('group')
|