SConscript 533 B

12345678910111213141516171819
  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. group = DefineGroup('MicroPython', src, depend = ['PKG_USING_MICROPYTHON'], CPPPATH = path, LOCAL_CCFLAGS = LOCAL_CCFLAGS)
  14. Return('group')