SConscript 495 B

1234567891011121314151617181920
  1. from building import *
  2. import rtconfig
  3. cwd = GetCurrentDir()
  4. src = Glob('src/*.c')
  5. CPPPATH = [cwd + '/inc']
  6. LOCAL_CCFLAGS = ''
  7. if GetDepend(['FAL_USING_SFUD_PORT']):
  8. src += Glob('samples/porting/fal_flash_sfud_port.c')
  9. if rtconfig.CROSS_TOOL == 'gcc':
  10. LOCAL_CCFLAGS += ' -std=c99'
  11. elif rtconfig.CROSS_TOOL == 'keil':
  12. LOCAL_CCFLAGS += ' --c99'
  13. group = DefineGroup('fal', src, depend = ['PKG_USING_FAL'], CPPPATH = CPPPATH, LOCAL_CCFLAGS = LOCAL_CCFLAGS)
  14. Return('group')