SConscript 717 B

123456789101112131415161718192021222324252627
  1. from building import *
  2. import rtconfig
  3. # get current directory
  4. cwd = GetCurrentDir()
  5. # The set of source files associated with this SConscript file.
  6. src = Glob('py/*.c')
  7. src += Glob('lib/mp-readline/*.c')
  8. src += Glob('lib/utils/*.c')
  9. src += Glob('extmod/*.c')
  10. src += Glob('port/*.c')
  11. src += Glob('lib/netutils/*.c')
  12. path = [cwd + '/']
  13. path += [cwd + '/port']
  14. path += [cwd + '/lib/netutils']
  15. LOCAL_CCFLAGS = ''
  16. if rtconfig.CROSS_TOOL == 'gcc':
  17. LOCAL_CCFLAGS += ' -std=c99'
  18. elif rtconfig.CROSS_TOOL == 'keil':
  19. LOCAL_CCFLAGS += ' --c99'
  20. group = DefineGroup('MicroPython', src, depend = ['PKG_USING_MICROPYTHON'], CPPPATH = path, LOCAL_CCFLAGS = LOCAL_CCFLAGS)
  21. Return('group')