SConscript 666 B

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