SConscript 488 B

12345678910111213141516171819
  1. # RT-Thread building script for component
  2. Import('rtconfig')
  3. from building import *
  4. cwd = GetCurrentDir()
  5. src = Glob('src/*.c')
  6. CPPPATH = [cwd + '/inc']
  7. LOCAL_CCFLAGS = ''
  8. if rtconfig.CROSS_TOOL == 'keil':
  9. if rtconfig.PLATFORM == 'armcc':
  10. LOCAL_CCFLAGS += ' --gnu'
  11. elif rtconfig.PLATFORM == 'armclang':
  12. LOCAL_CCFLAGS += ' -std=gnu99'
  13. group = DefineGroup('lpm', src, depend = ['PKG_USING_LPM'], CPPPATH = CPPPATH, LOCAL_CCFLAGS = LOCAL_CCFLAGS)
  14. Return('group')