SConscript 504 B

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