SConscript 465 B

12345678910111213141516171819202122
  1. from building import *
  2. import rtconfig
  3. cwd = GetCurrentDir()
  4. src = []
  5. src += Glob('*.c')
  6. CPPPATH = [cwd]
  7. LOCAL_CCFLAGS = ''
  8. if rtconfig.PLATFORM == 'gcc':
  9. LOCAL_CCFLAGS += ' -std=c99'
  10. elif rtconfig.PLATFORM == 'armcc':
  11. LOCAL_CCFLAGS += ' --c99'
  12. elif rtconfig.PLATFORM == 'armclang':
  13. LOCAL_CCFLAGS += ' -std=c99'
  14. group = DefineGroup('FAL', src, depend = ['PKG_USING_FAL'], CPPPATH = CPPPATH, LOCAL_CCFLAGS = LOCAL_CCFLAGS)
  15. Return('group')