SConstruct 303 B

123456789101112131415161718
  1. env = DefaultEnvironment()
  2. def ParseOptions():
  3. AddOption('--mode',
  4. dest='mode',
  5. type='string',
  6. nargs=1,
  7. action='store',
  8. default='dbg',
  9. help='build in dbg or opt mode')
  10. env['mode'] = GetOption('mode')
  11. ParseOptions()
  12. Export('env')
  13. SConscript('src/SConscript' % x, build_dir=target_dir)