wscript 433 B

123456789101112131415161718
  1. #! /usr/bin/env python
  2. def options(ctx):
  3. ctx.load('compiler_c')
  4. def configure(ctx):
  5. ctx.load('compiler_c')
  6. ctx.load('objcopy')
  7. def build(ctx):
  8. ctx(features = 'c cprogram objcopy',
  9. source = 'main.c',
  10. target = 'app',
  11. # objcopy_bfdname='srec',
  12. # objcopy_target = 'alternative-name',
  13. # objcopy_install_path = '${PREFIX}/some_dir',
  14. # objcopy_flags = '--strip-all'
  15. )